Exemplo n.º 1
0
  /**
   * Constructor for use if a grid field is unavailable
   *
   * @param lookup Store of selectable data
   * @param label column name (not displayed)
   * @param description description of component
   * @param mandatory whether a selection must be made
   * @param readonly whether or not the editor is read only
   * @param updateable whether the editor contents can be changed
   */
  public WTableDirEditor(
      Lookup lookup,
      String label,
      String description,
      boolean mandatory,
      boolean readonly,
      boolean updateable) {
    super(new Combobox(), label, description, mandatory, readonly, updateable);

    if (lookup == null) {
      throw new IllegalArgumentException("Lookup cannot be null");
    }

    this.lookup = lookup;
    super.setColumnName(lookup.getColumnName());
    init();
  }