Class SelectOption
java.lang.Object
org.javalite.activeweb.freemarker.SelectOption
This class is used to pass data to the <@select/> tag.
- Author:
- Igor Polevoy: 4/12/12 1:53 PM
-
Constructor Summary
ConstructorsConstructorDescriptionSelectOption(Object value, String label)Enabled, not selected by defaultSelectOption(Object value, String label, boolean selected)Creates new instance with all properties.SelectOption(String value)Value is used for both: value and label. -
Method Summary
Modifier and TypeMethodDescriptiongetLabel()getValue()booleanbooleanvoidsetEnabled(boolean enabled)voidsetSelected(boolean selected)
-
Constructor Details
-
SelectOption
Value is used for both: value and label. Enabled, not selected by default- Parameters:
value- value and label to display (will be converted to string
-
SelectOption
Enabled, not selected by default- Parameters:
value- option value (will be converted to stringlabel- option label
-
SelectOption
Creates new instance with all properties. Enabled by default.- Parameters:
value- option value (will be converted to string)label- option labelselected- true to select, false otherwise
-
-
Method Details
-
getValue
-
getLabel
-
isEnabled
public boolean isEnabled() -
setEnabled
public void setEnabled(boolean enabled) -
isSelected
public boolean isSelected() -
setSelected
public void setSelected(boolean selected)
-