All Packages Class Hierarchy This Package Previous Next Index
Class dtai.gwt.ScrollListGadget
java.lang.Object
|
+----dtai.gwt.Gadget
|
+----dtai.gwt.ContainerGadget
|
+----dtai.gwt.PanelGadget
|
+----dtai.gwt.BorderGadget
|
+----dtai.gwt.ScrollPaneGadget
|
+----dtai.gwt.ScrollGadgetGadget
|
+----dtai.gwt.ScrollListGadget
- public abstract class ScrollListGadget
- extends ScrollGadgetGadget
A scrolling list of text items.
-
ScrollListGadget(int, boolean)
- Creates a new scrolling list prefized with the specified number
of visible lines and a boolean stating whether multiple selections
are allowed or not.
-
getItem(int)
- Gets the item associated with the specified index.
-
getItemCount()
- Returns the number of items in the list.
-
getItems()
- Returns the items in the list.
-
getSelectedItem()
- gets the selected item on the list or null if no item is selected.
-
getSelectedItems()
- Gets the selected items on the list.
ScrollListGadget
public ScrollListGadget(int rows,
boolean multipleMode)
- Creates a new scrolling list prefized with the specified number
of visible lines and a boolean stating whether multiple selections
are allowed or not.
- Parameters:
- rows - - the number of items to show.
- multipleMode - - if true then multiple selections are allowed.
getItemCount
public final int getItemCount()
- Returns the number of items in the list.
- Returns:
- int
- See Also:
- getItem
getItem
public abstract String getItem(int row)
- Gets the item associated with the specified index.
- Parameters:
- row - - the row of the item
- Returns:
- String
- See Also:
- getItemCount
getItems
public String[] getItems()
- Returns the items in the list.
- Returns:
- String[]
- See Also:
- select, deselect, isIndexSelected
getSelectedItem
public String getSelectedItem()
- gets the selected item on the list or null if no item is selected.
- Returns:
- String
- See Also:
- select, deselect, isIndexSelected
getSelectedItems
public String[] getSelectedItems()
- Gets the selected items on the list.
- Returns:
- String[]
- Overrides:
- getSelectedItems in class ScrollGadgetGadget
- See Also:
- select, deselect, isIndexSelected
All Packages Class Hierarchy This Package Previous Next Index