code: public static CmsDirectEditMode valueOf(int mode) {
  
          if ((mode > 0) && (mode < MODES.length)) {
              return MODES[mode];
          }
          return FALSE;
      }
docs: Returns the mode constant for the selected direct edit int mode.<p>
  
  The possible value are:
  <ul>
  <li>0: Mode is {@link #FALSE}.
  <li>1: Mode is {@link #TRUE}.
  <li>2: Mode is {@link #AUTO}.
  <li>3: Mode is {@link #MANUAL}.
  </ul>
  
  @param mode the direct edit int mode to get the constant for
  
  @return the mode constant for the selected direct edit int mode