|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Item - the generic type of the list items.public interface AbstractList<Item extends Widget>
Any List implementation must implement this interface for common usage.
| Method Summary | |
|---|---|
Item |
addItem(int index,
Item item)
Adds the given Item to the List (at the given position). |
Item |
addItem(Item item)
Adds the given Item to the List (at the end). |
boolean |
addItemSetsSelectedItem()
If set to true, the addItem() method sets the selected item to the added one. |
void |
addSelectionListener(ListSelectionListener<Item> l)
Adds a new ListSelectionListener. |
void |
clear()
Removes all items from the List. |
int |
getHeightByItems()
|
Item |
getItem(int index)
|
Item |
getItem(java.lang.String itemName)
|
java.util.List<Item> |
getItems()
|
int |
getItemsCount()
|
int |
getMaxHeight()
Returns the maximum height of this List in Items count units. |
int |
getSelectedIndex()
|
Item |
getSelectedItem()
|
boolean |
isScrollBarForced()
Returns the ScrollBar's forced visibility. |
boolean |
isScrollBarVisible()
Returns the ScrollBar's visibility. |
void |
removeItem(int index)
Removes the given Item from the List |
void |
removeItem(Item item)
Removes the given Item from the List |
void |
removeSelectionListener(ListSelectionListener<Item> l)
Removes a ListSelectionListener. |
int |
selectNextItem()
Sets the selected item to the following one of the currently selected item. |
int |
selectPreviousItem()
Sets the selected item to the previous one of the currently selected item. |
void |
setAddItemSetsSelectedItem(boolean b)
If set to true, the addItem() method sets the selected item to the added one. |
void |
setHeightByItems(int height)
Sets the height by items count. |
void |
setMaxHeight(int maxHeight)
Sets the maximum height of this List in Items count units. |
void |
setScrollBarForced(boolean forced)
Sets the ScrollBar's forced visibility. |
void |
setScrollBarVisible(boolean visible)
Sets the ScrollBar's visibility. |
void |
setSelectedItem(Item item)
Sets the currently selected Item. |
void |
setSelectedItem(java.lang.String itemName)
Sets the currently selected Item. |
| Method Detail |
|---|
void addSelectionListener(ListSelectionListener<Item> l)
l - the new listenervoid removeSelectionListener(ListSelectionListener<Item> l)
l - the listener to be removedvoid setSelectedItem(Item item)
item - void setSelectedItem(java.lang.String itemName)
itemName - Item getSelectedItem()
int getSelectedIndex()
int selectPreviousItem()
int selectNextItem()
void setAddItemSetsSelectedItem(boolean b)
b - boolean addItemSetsSelectedItem()
Item addItem(int index,
Item item)
index - the position to add the Item atitem - the new Item to add to the ListItem addItem(Item item)
item - the new Item to add to the Listvoid removeItem(int index)
index - the position of the Item to be removedvoid removeItem(Item item)
item - the Item to be removed from the Listvoid clear()
int getItemsCount()
java.util.List<Item> getItems()
Item getItem(int index)
index - the index to get the Item from
Item getItem(java.lang.String itemName)
itemName - the name to get the Item from
void setHeightByItems(int height)
height - the new height by items unitint getHeightByItems()
void setMaxHeight(int maxHeight)
maxHeight - the maximum height of this List or (-1) for no limitint getMaxHeight()
void setScrollBarVisible(boolean visible)
visible - the ScrollBar's possible visibilityboolean isScrollBarVisible()
void setScrollBarForced(boolean forced)
forced - the ScrollBar's forced visibilityboolean isScrollBarForced()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||