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.


Constructor Index

 o 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.

Method Index

 o getItem(int)
Gets the item associated with the specified index.
 o getItemCount()
Returns the number of items in the list.
 o getItems()
Returns the items in the list.
 o getSelectedItem()
gets the selected item on the list or null if no item is selected.
 o getSelectedItems()
Gets the selected items on the list.

Constructors

 o 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.

Methods

 o getItemCount
 public final int getItemCount()
Returns the number of items in the list.

Returns:
int
See Also:
getItem
 o 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
 o getItems
 public String[] getItems()
Returns the items in the list.

Returns:
String[]
See Also:
select, deselect, isIndexSelected
 o 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
 o 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