コード例 #1
0
  public Invid getSelectedInvid() {
    listHandle lh = (listHandle) getSelectedItem();

    if (lh == null) {
      return null;
    }

    if (editor != null && editor.theField != null) {
      if (!lh.toString().equals(editor.theField.getText())) {
        System.err.println(
            "JInvidChooser: " + lh.toString() + " does not equal " + editor.theField.getText());
        return null;
      }
    }

    return (Invid) lh.getObject();
  }