|
|||||||||
| 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.YogiDashBar
|
+--com.yospace.yae.midlet.simple.SimpleDashBar
The DashBar is the menu bar associated with the root window. The SimpleDashBar constitutes a bar with a 'start' button which invokes a popup list of currently active and installed Panelets. From this list, the user can request a Panelet to be started or set a currently running Panelet as the active one. The system can be exited through this list, also.
| Fields inherited from class com.yospace.yae.yogi.YogiDashBar |
dashBarExit |
| Constructor Summary | |
SimpleDashBar()
Adds a "YoGI" button to itself and builds an empty popup for active and installed Panelets to be listed in. |
|
| Method Summary | |
void |
actionPerformed(YogiComponent source)
Required by the ActionListener interface. |
int |
getActivesCount()
Gets the total number of active Panelets listed. |
int |
getInstalledsCount()
Gets the total number of installed Panelets listed. |
YogiList |
getPaneletsList()
Accessor method for the list of active and installed Panelets. |
YogiPopup |
getPopup()
Accessor method for the popup. |
YogiScrollPane |
getScrollPane()
Accessor method for the scroll pane. |
void |
init(PaneletManager paneletManager)
Initialises the dash bar by providing a reference to the Panelet manager. |
void |
propertyChanged(java.lang.Object source,
int propertyCode)
Required by the PropertyChangeListener interface. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SimpleDashBar()
| Method Detail |
public void init(PaneletManager paneletManager)
init in class YogiDashBarpaneletManager - the Panelet manager.public YogiPopup getPopup()
public YogiScrollPane getScrollPane()
public YogiList getPaneletsList()
public int getActivesCount()
public int getInstalledsCount()
public void actionPerformed(YogiComponent source)
ActionListener interface. Listens for
when the 'start' button on the dash bar has been pressed, and then shows or destroys the popup list
accordingly.actionPerformed in interface ActionListenersource - the source of the action event (in this case the button on the dash bar).
public void propertyChanged(java.lang.Object source,
int propertyCode)
PropertyChangeListener interface. Listens for
when an item in the popup list has been selected. If the selected item represents an active Panelet, that Panelet
is given focus. If the selected item represents an installed Panelet, a request is made to the Panelet manager
to start a new Panelet. If "EXIT" is selected from the list, exit
is called.
The dash bar also listens for property change events from the Panelet manager, indicating that the currently active Panelet has changed, or that a Panelet has been added or removed, or that a Panelets current state has changed. In any such situation the popup list is updated adccordingly.
propertyChanged in interface PropertyChangeListenersource - the source of the action event.propertyCode - the String identifying the property that has been changed.
|
Copyright 2002 Yospace Holdings Ltd. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||