示例#1
0
  @Override
  public void _main(IWContext iwc) throws Exception {
    super._main(iwc);

    this._bundle = getBundle(iwc);
    this._iwrb = getResourceBundle(iwc);
    if (this._addForm) {
      this._form = new Form();
      this._form.setWindowToOpen(getChooserWindowClass());
      add(this._form);
      this._form.add(getChooser(iwc, this._bundle));
    } else {
      add(getChooser(iwc, this._bundle));
      this._form = getParentForm();
    }

    if (!isUseOldLogic()) { // This is needed only for new choosers
      if (isAddSaveButton()) { //	Some choosers may not need save button
        add(getSaveButton());
      }
    }
  }
示例#2
0
 /** @see UIComponentBase#setId(java.lang.String) */
 @Override
 public void setId(String id) {
   super.setId(id);
   setChooserParameter(id);
 }