| java.lang.Object org.jaffa.presentation.portlet.widgets.model.WidgetModel org.jaffa.presentation.portlet.widgets.model.DropDownModel
DropDownModel | public class DropDownModel extends WidgetModel (Code) | | Model for the DropDown widget.
|
Inner Class :public class Option implements Comparable | |
Method Summary | |
public void | addOption(String label, String value) Adds an Option to the DropDownModel. | public List | getOptions() Returns a List of DropDownModel.Option objects, for each of the option added to this model. | public String | getValue() Getter for property value. | public boolean | isMandatory() Getter for property mandatory. | public boolean | isModelChanged() See if model has changed, in the process reset the changed flag. | public void | setMandatory(boolean mandatory) Setter for property mandatory. | public void | setValue(String value) Setter for property value. |
DropDownModel | public DropDownModel(String dropdownValue)(Code) | | Creates a model initialized to the input value.
Parameters: dropdownValue - The initial value. |
addOption | public void addOption(String label, String value)(Code) | | Adds an Option to the DropDownModel.
Parameters: label - The label of the option. Parameters: value - The value of the option. |
getOptions | public List getOptions()(Code) | | Returns a List of DropDownModel.Option objects, for each of the option added to this model.
a List of DropDownModel.Option objects, for each of the option added to this model. |
getValue | public String getValue()(Code) | | Getter for property value.
Value of property value. |
isMandatory | public boolean isMandatory()(Code) | | Getter for property mandatory.
Value of property mandatory. |
isModelChanged | public boolean isModelChanged()(Code) | | See if model has changed, in the process reset the changed flag.
true if the model was changed. |
setMandatory | public void setMandatory(boolean mandatory)(Code) | | Setter for property mandatory.
Parameters: meta - New value of property mandatory. |
setValue | public void setValue(String value)(Code) | | Setter for property value.
Parameters: value - New value of property value. |
|
|