ewe.data
Interface ISimpleList

All Superinterfaces:
IndexSelectable
All Known Subinterfaces:
IList
All Known Implementing Classes:
BasicList

public interface ISimpleList
extends IndexSelectable


Method Summary
 int countListItems()
          Count the number of list items.
 Object getListItem(int index)
          Get the Object at the list index.
 Object[] getListItems()
          Get all the list items.
 boolean itemIsVisible(int index, boolean fullyVisible)
          Checks if an item is either partially or fully visible.
 void makeItemVisible(int index)
          Make the item at the specified index fully visibile, updating the screen if necessary.
 void setListItems(Object[] items)
          Set the list items.
 void updateItems()
          Redraw the items on the screen.
 
Methods inherited from interface ewe.data.IndexSelectable
countSelectedIndexes, getSelectedIndex, getSelectedIndexes, isSelected, select, setSelectedIndexes
 

Method Detail

countListItems

public int countListItems()
Count the number of list items.


getListItems

public Object[] getListItems()
Get all the list items.


getListItem

public Object getListItem(int index)
Get the Object at the list index.


setListItems

public void setListItems(Object[] items)
Set the list items.


itemIsVisible

public boolean itemIsVisible(int index,
                             boolean fullyVisible)
Checks if an item is either partially or fully visible.

Parameters:
index - The item index.
fullyVisible - if this is true, then this method will check for full visibility, otherwise the method checks for full or partial visibility.
Returns:
true if the item is fully visible, or if the item is partially visible and fullyVisible is false.

makeItemVisible

public void makeItemVisible(int index)
Make the item at the specified index fully visibile, updating the screen if necessary.

Parameters:
index - The item index.

updateItems

public void updateItems()
Redraw the items on the screen.