|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.yospace.yae.yogi.YogiComponent
|
+--com.yospace.yae.yogi.YogiSpin
A component that represents a spin selection. Data is stored in an underlying
YogiList, and is displayed one element at a time.
| Field Summary | |
protected YogiList |
list
|
static int |
PROPERTY_LIST
Constant for the list property |
static int |
PROPERTY_SELECTION
Constant for the selection property |
| Constructor Summary | |
YogiSpin()
Default constructor which creates a default YogiList to store data items. |
|
| Method Summary | |
void |
add(YogiComponent c)
Overrides the YogiComponent.add(YogiComponent)
method. |
void |
addItem(java.lang.Object item)
Convenience method for adding items to the underlying YogiList of data items. |
Rectangle |
getFocusBounds()
Finds the bounds of the focussed area by delegating to the underlying YogiList. |
java.lang.Object |
getItem(int index)
Convenience method for getting items from the underlying YogiList of data items. |
YogiList |
getList()
|
int |
getSelectedIndex()
|
void |
propertyChanged(java.lang.Object source,
int propertyCode)
Provided to implement the PropertyChangeListener interface. |
boolean |
setFocus(int y)
Convenience method allowing the spin's list to be focussed. |
void |
setList(YogiList list)
Sets the YogiList used to store the data for
the YogiSpin. |
void |
setSelectedIndex(int index)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int PROPERTY_LIST
public static final int PROPERTY_SELECTION
protected YogiList list
| Constructor Detail |
public YogiSpin()
| Method Detail |
public YogiList getList()
public int getSelectedIndex()
public void addItem(java.lang.Object item)
YogiList of data items.item - Object to add to the spin.public java.lang.Object getItem(int index)
YogiList of data items.index - the index of the required object.public void setList(YogiList list)
YogiList used to store the data for
the YogiSpin.list - the new list that will store the data for this YogiSpin.public void setSelectedIndex(int index)
public void add(YogiComponent c)
YogiComponent.add(YogiComponent)
method. If a YogiList is added, this will be
used to store the data for the YogiSpin. Otherwise, the object
will be added to the list of data for the YogiSpin.add in class YogiComponentcom.yospace.yae.yogi.YogiComponentcomp - the component to add.IllegalStateException - if the component comp already
has a parent.
public void propertyChanged(java.lang.Object source,
int propertyCode)
propertyChanged in interface PropertyChangeListenersource - the event source.propertyCode - the code of the property being changed.public boolean setFocus(int y)
y - the focus y-index.public Rectangle getFocusBounds()
YogiList.getFocusBounds in class YogiComponent
|
Copyright 2002 Yospace Holdings Ltd. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||