Exemple #1
0
  /**
   * Construct a <code>SelectItem</code> instance with the specified property values.
   *
   * @param value Value to be delivered to the model if this item is selected by the user
   * @param label Label to be rendered for this item in the response
   * @param description Description of this item, for use in tools
   * @param disabled Flag indicating that this option is disabled
   * @exception NullPointerException if <code>value</code> or <code>label</code> is <code>null
   *     </code>
   */
  public SelectItem(Object value, String label, String description, boolean disabled) {

    super();
    setValue(value);
    setLabel(label);
    setDescription(description);
    setDisabled(disabled);
  }