| |
|
| java.lang.Object com.salmonllc.html.HtmlComponent com.salmonllc.html.HtmlFormComponent com.salmonllc.html.HtmlMultiListBox
HtmlMultiListBox | public class HtmlMultiListBox extends HtmlFormComponent (Code) | | This class is used to allow for the selection of items from multiple lists. The items in the second list and subsequent lists are dependant on the selected item in the first or prior lists.
The class can be used to allow the user to select one item from a tree or items
|
Method Summary | |
public int | addOption(int parentHandle, String key, String disp) Use this method to add new choices to the list.
Parameters: parentHandle - The items parent handle Parameters: key - The internal name of the item (must be unique) Parameters: disp - The value to be displayed on the list. | public int | addOption(int parentHandle, String key, String disp, boolean selected) Use this method to add new choices to the list.
Parameters: parentHandle - The items parent handle Parameters: key - The internal name of the item (must be unique) Parameters: disp - The value to be displayed on the list. Parameters: selected - Whether or not the item is selected. | public int | addOption(String key, String disp) Use this method to add a new option to the first list box.
Parameters: key - The internal name of the item (must be unique) Parameters: disp - The value to be displayed on the list. | public int | findOptionHandleOf(String key) This method returns the index of the option with the specified key. | public void | generateHTML(java.io.PrintWriter p, int rowNo) | public String | getFontEndTag() This method gets the end font tag for the component. | public String | getFontStartTag() This method gets the start font tag for the component. | public int | getOptionCount() This method returns the number of options in the component. | public String | getOptionKey(int handle) Use this method get the value of the key at index. | public boolean | getOptionSelected(int handle) Use this method to find out if an option is selected. | public String | getOptionValue(int handle) Use this method get the value of the option at index. | public int | getSize() This method gets the display size for the component in characters. | public boolean | processParms(Hashtable parms, int rowNo) | public void | resetOptions() This method removes all options from the component. | public void | setFontEndTag(String value) This method sets the end font tag for the component. | public void | setFontStartTag(String value) This method sets the start font tag for the component. | public void | setMinimumWidth(int chars) | public void | setNumberOfBoxes(int boxes) | public void | setOptionSelected(int handle, boolean selected) Use this method set whether an option is selected. | public void | setSize(int size) This method sets the display size for the component in characters. | public void | setTheme(String theme) This method sets the property theme for the component. |
HtmlMultiListBox | public HtmlMultiListBox(String name, com.salmonllc.html.HtmlPage p)(Code) | | Constructs a new HTMLMultiListBox component.
Parameters: name - The name of the component Parameters: p - The page the component will be placed in. |
HtmlMultiListBox | public HtmlMultiListBox(String name, String theme, com.salmonllc.html.HtmlPage p)(Code) | | Constructs a new HTMLMultiListBox component.
Parameters: name - The name of the component Parameters: theme - The theme to use for loading properties. Parameters: p - The page the component will be placed in. |
addOption | public int addOption(int parentHandle, String key, String disp)(Code) | | Use this method to add new choices to the list.
Parameters: parentHandle - The items parent handle Parameters: key - The internal name of the item (must be unique) Parameters: disp - The value to be displayed on the list. the handle of the item to return; |
addOption | public int addOption(int parentHandle, String key, String disp, boolean selected)(Code) | | Use this method to add new choices to the list.
Parameters: parentHandle - The items parent handle Parameters: key - The internal name of the item (must be unique) Parameters: disp - The value to be displayed on the list. Parameters: selected - Whether or not the item is selected. the handle of the item to return; |
addOption | public int addOption(String key, String disp)(Code) | | Use this method to add a new option to the first list box.
Parameters: key - The internal name of the item (must be unique) Parameters: disp - The value to be displayed on the list. the handle of the item (this can be used later to add children to this node). |
findOptionHandleOf | public int findOptionHandleOf(String key)(Code) | | This method returns the index of the option with the specified key.
The index of the key or -1 if not found. |
getFontEndTag | public String getFontEndTag()(Code) | | This method gets the end font tag for the component.
|
getFontStartTag | public String getFontStartTag()(Code) | | This method gets the start font tag for the component.
|
getOptionCount | public int getOptionCount()(Code) | | This method returns the number of options in the component.
|
getOptionKey | public String getOptionKey(int handle)(Code) | | Use this method get the value of the key at index.
|
getOptionSelected | public boolean getOptionSelected(int handle)(Code) | | Use this method to find out if an option is selected.
|
getOptionValue | public String getOptionValue(int handle)(Code) | | Use this method get the value of the option at index.
|
getSize | public int getSize()(Code) | | This method gets the display size for the component in characters.
|
resetOptions | public void resetOptions()(Code) | | This method removes all options from the component.
|
setFontEndTag | public void setFontEndTag(String value)(Code) | | This method sets the end font tag for the component.
|
setFontStartTag | public void setFontStartTag(String value)(Code) | | This method sets the start font tag for the component.
|
setMinimumWidth | public void setMinimumWidth(int chars)(Code) | | Sets the minimum width (in non breaking spaces) for each list box
|
setNumberOfBoxes | public void setNumberOfBoxes(int boxes)(Code) | | This method displays the number of boxes that will be displayed in the list box
|
setOptionSelected | public void setOptionSelected(int handle, boolean selected)(Code) | | Use this method set whether an option is selected.
|
setSize | public void setSize(int size)(Code) | | This method sets the display size for the component in characters.
|
setTheme | public void setTheme(String theme)(Code) | | This method sets the property theme for the component.
Parameters: theme - The theme to use. |
Methods inherited from com.salmonllc.html.HtmlFormComponent | protected void addEvent(ValueChangedEvent e)(Code)(Java Doc) public void addValueChangedListener(ValueChangedListener l)(Code)(Java Doc) protected void convertValue()(Code)(Java Doc) public boolean executeEvent(int eventType) throws Exception(Code)(Java Doc) protected int findEvent(int rowNo)(Code)(Java Doc) protected void generateAutoTabJavaScript(PrintWriter pw)(Code)(Java Doc) abstract public void generateHTML(java.io.PrintWriter p, int row) throws Exception(Code)(Java Doc) public DataStoreBuffer getBoundDataStore()(Code)(Java Doc) public int getColumnNumber()(Code)(Java Doc) protected String getDataStoreValue(int rowNo)(Code)(Java Doc) public String getDisabledFontEndTag()(Code)(Java Doc) public String getDisabledFontStartTag()(Code)(Java Doc) public String getDisplayFormat()(Code)(Java Doc) public String getDisplayFormatLocaleKey()(Code)(Java Doc) public boolean getEnabled()(Code)(Java Doc) protected ValueChangedEvent getEventAt(int index)(Code)(Java Doc) protected int getEventCount()(Code)(Java Doc) public String getJavaScriptName()(Code)(Java Doc) public String getTheme()(Code)(Java Doc) public String getValue()(Code)(Java Doc) public String getValue(int rowNo)(Code)(Java Doc) protected String getValue(int rowNo, boolean remove)(Code)(Java Doc) public boolean isEnabled()(Code)(Java Doc) public boolean isValid()(Code)(Java Doc) protected void processLocaleInfo()(Code)(Java Doc) protected void removeEvent(int index)(Code)(Java Doc) public void removeValueChangedListener(ValueChangedListener l)(Code)(Java Doc) public void reset()(Code)(Java Doc) public void setColumn(DataStoreBuffer ds, int columnNo)(Code)(Java Doc) public void setColumn(DataStoreBuffer ds, String columnName)(Code)(Java Doc) public void setDisabledFontEndTag(String tag)(Code)(Java Doc) public void setDisabledFontStartTag(String tag)(Code)(Java Doc) public void setDisplayFormat(String format)(Code)(Java Doc) public void setDisplayFormatLocaleKey(String formatLocaleKey)(Code)(Java Doc) public void setEnabled(boolean enabled)(Code)(Java Doc) public void setEnabled(boolean enabled, boolean useDisableAttribute)(Code)(Java Doc) public void setFocus()(Code)(Java Doc) public void setFocus(boolean select)(Code)(Java Doc) public void setFocus(int row, boolean select)(Code)(Java Doc) public void setFocus(int row)(Code)(Java Doc) public void setForceCase(int mode)(Code)(Java Doc) protected boolean setTempValue(String value, int rowNo, int eventNo)(Code)(Java Doc) public void setTheme(String theme)(Code)(Java Doc) public void setValue(String value)(Code)(Java Doc) public void setValue(String value, int rowNo)(Code)(Java Doc) public String toString()(Code)(Java Doc) public void updateLocale()(Code)(Java Doc) protected boolean valuesEqual(Object newValue, Object oldValue)(Code)(Java Doc) protected void writeFocusScript(java.io.PrintWriter p, int row)(Code)(Java Doc)
|
|
|
|