Method Summary |
|
public void | addItemToSelection(Listitem item) Selects the given item, without deselecting any other items
that are already selected.. |
public Listitem | appendItem(String label, String value) Appends an item. |
public void | clearSelection() Clears the selection. |
public int | getIndexOfItem(Listitem item) Returns the index of the specified item, or -1 if not found. |
public String | getInnerAttrs() |
public Listitem | getItemAtIndex(int index) Returns the item at the specified index. |
public int | getItemCount() Returns the number of items. |
public List | getItems() Returns a live list of all
Listitem .
By live we mean you can add or remove them directly with
the List interface. |
public String | getOuterAttrs() |
public int | getSelectedCount() Returns the number of items being selected. |
public int | getSelectedIndex() Returns the index of the selected item (-1 if no one is selected). |
public Listitem | getSelectedItem() Returns the selected item. |
public Set | getSelectedItems() Returns all selected items. |
public String | getWrap() Get the wrap policy ("on", "off", "default"). |
public boolean | insertBefore(Component newChild, Component refChild) |
public boolean | isMultiple() |
protected Object | newExtraCtrl() |
public boolean | removeChild(Component child) |
public Listitem | removeItemAt(int index) Removes the child item in the list box at the given index. |
public void | removeItemFromSelection(Listitem item) Deselects the given item without deselecting other items. |
public void | selectAll() Selects all items. |
public void | selectItem(Listitem item) Deselects all of the currently selected items and selects
the given item.
It is the same as
Listbox.setSelectedItem .
Parameters: item - the item to select. |
public void | setMultiple(boolean b) |
public void | setSelectedIndex(int jsel) Deselects all of the currently selected items and selects
the item with the given index. |
public void | setSelectedItem(Listitem item) Deselects all of the currently selected items and selects
the given item. |
public void | setWrap(String wrap) set the Listitem text wrapping policy.
Parameters: wrap - can be "on", "off", or "default". |
public void | smartUpdate(String attr, String value) |
public void | toggleItemSelection(Listitem item) If the specified item is selected, it is deselected.
If it is not selected, it is selected. |