All Packages Class Hierarchy This Package Previous Next Index
Class com.abc.templates.HtmlSelect
java.lang.Object
|
+----com.abc.templates.HtmlControl
|
+----com.abc.templates.HtmlSelect
- public class HtmlSelect
- extends HtmlControl
- implements Serializable
Object represent dopdown box on html page.
- All properties:
- <select name="Select" size="10" visible="0" mulitple
.....(additional property)>
- <option value="value1" selected>Display
Value</option> ----- please note </option> is optional you
can ommit it.
- <option value="value2" selected>Display Value
- </selected>
Control has exactly the same signature as pure html( except visible property). All
additional properties will be combined in one string. If you provide "multiple"
it means that control allows multiple selections.
addAdditionalOptions(String)
- Allows you to append additional property to chaeck box.
addOptions(String
sValue, String sDispValue, boolean bSelected)
- Adds new "option" to control.
getDisplayValue()
- Retrives "Dispaly Value" property for selected item.
getDisplayValue(int)
- retirves "Display Value" property for specific item.
getMultiple()
- return true if control allows multiple selection and false if not.
getSelected()
- retrived array of indexes of selected items.
getValue()
- retrive selected item or "" if not selected item.
getValue(int)
- retrive "Value"of specific item.
resetAllValues()
- resets all items to non selected state.
resetValue(String sValue )
- resets item with "Value" == sValue to non selected state.
setMultiple(boolean)
- set "Multiple" property.
setValue(String sValue)
- sets item with "Value" == sValue to selected state.

addAdditionalOptions
public final void addAdditionalOptions(String s)

addOptions
public final void addOptions(String sValue,
String sDispValue,
boolean bSelected)
getDisplayValue
public final String getDisplayValue()

getDisplayValue
public final String getDisplayValue(int iIndex)

getMultiple
public final boolean getMultiple()

getSelected
public int[] getSelected()

getValue
public final String getValue()
- Overrides:
- getValue in class HtmlControl

getValue
public final String getValue(int iIndex)

resetAllValues
public final void resetAllValue()

resetValue
public final void resetValue(String sValue)

setMultiple
public final void setMultiple(boolean bMultiple)

setValue
public final void setValue(String sValue)
- Overrides:
- setValue in
class HtmlControl
All Packages Class Hierarchy This Package Previous Next Index