| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jaffa.presentation.portlet.widgets.model.WidgetModel
org.jaffa.presentation.portlet.widgets.model.DropDownModel
Model for the DropDown widget.
| Nested Class Summary | |
|  class | DropDownModel.OptionAn instance of this class is created for each option added to the DropDownModel. | 
| Constructor Summary | |
| DropDownModel(String dropdownValue)Creates a model initialized to the input value. | |
| DropDownModel(String dropdownValue,
                           FieldMetaData metaObject) | |
| Method Summary | |
|  void | addOption(String label,
                   String value)Adds an Option to the DropDownModel. | 
|  List | getOptions()Returns a List of DropDownModel.Option objects, for each of the option added to this model. | 
|  String | getValue()Getter for property value. | 
|  boolean | isMandatory()Getter for property mandatory. | 
|  boolean | isModelChanged()See if model has changed, in the process reset the changed flag. | 
|  void | setMandatory(boolean mandatory)Setter for property mandatory. | 
|  void | setValue(String value)Setter for property value. | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public DropDownModel(String dropdownValue)
dropdownValue - The initial value.
public DropDownModel(String dropdownValue,
                     FieldMetaData metaObject)
| Method Detail | 
public String getValue()
public void setValue(String value)
value - New value of property value.
public void addOption(String label,
                      String value)
label - The label of the option.value - The value of the option.public List getOptions()
public boolean isModelChanged()
public boolean isMandatory()
public void setMandatory(boolean mandatory)
| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||