java.lang .Object org.tigris.scarab.util .OptionModel OptionModel public class OptionModel (Code) A model that provides for an application to present a list of possible
options. Can be used along with a velocity macro to create option tags.
#macro (option $optionModel)
$optionModel.Name
#end
author: John D. McNally version: $Id: OptionModel.java 7502 2003-03-28 00:02:24Z jon $
Method Summary public String getName () Get the name which is useful for ui.public String getValue () Get the value used by the application.public booleanisSelected () Get the value of selected.public voidsetName (String v) Set the name which is useful for ui.public voidsetSelected (boolean v) Set the value of selected.public voidsetValue (String v) Set the value used by the application.
OptionModel public OptionModel()(Code)
OptionModel public OptionModel(int value, String name, boolean selected)(Code)
getName public String getName()(Code) Get the name which is useful for ui.
value of name.
getValue public String getValue()(Code) Get the value used by the application.
value of value.
isSelected public boolean isSelected()(Code) Get the value of selected.
value of selected.
setName public void setName(String v)(Code) Set the name which is useful for ui.
Parameters: v - Value to assign to name.
setSelected public void setSelected(boolean v)(Code) Set the value of selected.
Parameters: v - Value to assign to selected.
setValue public void setValue(String v)(Code) Set the value used by the application.
Parameters: v - Value to assign to value.