|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmoka.lang.Object
moka.event.EventListener
moka.x.Component
moka.x.CaptionedComponent
moka.x.List
List class is a list selection component.
Field Summary | |
short |
index
The selected item's index. |
Vector |
items
A vector containing the items of this list. |
Fields inherited from class moka.x.Component |
enabled, height, listen, mnemonic, next, parent, prev, visible, width, x, y |
Fields inherited from interface moka.x.Captioned |
caption, font |
Constructor Summary | |
List()
Constructs a new List. |
Method Summary | |
void |
clear()
Disposes of all ressources used by this List's elements. |
void |
finalize()
Frees the memory of system ressources used by this List object. |
Object |
getSelectedItem()
Returns the item identified by the selected index. |
void |
paint()
Paints the List. |
void |
setListData(Vector data)
Use the items in the specified Vector as the data for this List. |
void |
update()
Updates the display of the list. |
void |
use()
This method is invoked by the GEM when the user interacts with the List. |
Methods inherited from class moka.x.Component |
bottom, center, checkMnemonic, clean, eventTriggered, isCursorOver, left, move, onPaint, right, setBounds, setEnabled, setHeight, setMnemonic, setVisible, setWidth, setX, setY, toFront, top |
Methods inherited from class moka.event.EventListener |
eventTriggered |
Methods inherited from class moka.lang.Object |
equals, getClassName, toString |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface moka.x.Captioned |
setCaption, setFont |
Field Detail |
public Vector items
public short index
Constructor Detail |
public List()
Method Detail |
public void paint()
paint
in class Component
public void finalize()
finalize
in class CaptionedComponent
public void use()
use
in class Component
public Object getSelectedItem()
public void update()
public void setListData(Vector data)
data
- The Vector that contain the desired objectspublic void clear()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |