code: public Display getDisplay(final TargetMode _mode)
      {
          Display ret = Field.Display.NONE;
          if (this.mode2display.containsKey(_mode)) {
              ret = this.mode2display.get(_mode);
          } else if (_mode.equals(TargetMode.CONNECT) || _mode.equals(TargetMode.VIEW)
                          || _mode.equals(TargetMode.EDIT)) {
              ret = Field.Display.READONLY;
          }
          return ret;
      }
docs: Method to get the display for the given target mode. The following
  defaults apply:
  <ul>
  <li>ModeConnect: READONLY</li>
  <li>ModeCreate: NONE</li>
  <li>ModeView: READONLY</li>
  <li>ModeEdit: READONLY</li>
  <li>ModeSearch: NONE</li>
  </ul>
  
  @param _mode target mode
  @return display for the given target mode