com.yospace.yae.midlet.standalone
Class SinglePaneletManager

java.lang.Object
  |
  +--com.yospace.yae.pm.PaneletManager
        |
        +--com.yospace.yae.midlet.standalone.SinglePaneletManager

public class SinglePaneletManager
extends PaneletManager

The stand alone panelet manager constitutes a stub extension of PaneletManager which allows for a single Panelet to be displayed with minimal functionality.


Fields inherited from class com.yospace.yae.pm.PaneletManager
appMan, PROPERTY_ACTIVE, PROPERTY_ADDED, PROPERTY_PANELET_STATE, PROPERTY_REMOVED
 
Constructor Summary
SinglePaneletManager()
           
 
Method Summary
 void add(Panelet p)
          Overrides the add method from PaneletManager in order to allow for only one Panelet at any one time.
 void exit()
          Nothing is done here.
 void remove(Panelet p)
          Removes the specified Panelet from the current set.
 void setPaneletState(Panelet thePanelet, int newState)
          Do nothing - only maximize states are used within a standalone Panelet environment.
 void start()
          Gets the first Panelet from the configuration file and starts it.
 
Methods inherited from class com.yospace.yae.pm.PaneletManager
addPropertyChangeListener, firePropertyChangeEvent, firePropertyChangeEvent, getActivePanelet, getPanelet, getPanelet, getPaneletConfig, getPaneletCount, init, removePropertyChangeListener, setActivePanelet, startPanelet, touch, updatePaneletState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SinglePaneletManager

public SinglePaneletManager()
Method Detail

add

public void add(Panelet p)
Overrides the add method from PaneletManager in order to allow for only one Panelet at any one time. Once a Panelet has been added subsequent adds will NOT add a new Panelet or override the old one.
Overrides:
add in class PaneletManager
Parameters:
p - the panelet to add.

start

public void start()
Gets the first Panelet from the configuration file and starts it. All other Panelets in the configuration file are from hereon in ignored.
Overrides:
start in class PaneletManager

remove

public void remove(Panelet p)
Removes the specified Panelet from the current set. All Panelet indices above are moved down to fill the gap. If the panelet is not in the set, then the method does nothing.
Overrides:
remove in class PaneletManager
Parameters:
p - the Panelet to be removed.

setPaneletState

public void setPaneletState(Panelet thePanelet,
                            int newState)
Do nothing - only maximize states are used within a standalone Panelet environment.
Overrides:
setPaneletState in class PaneletManager
Parameters:
thePanelet - the Panelet whose state should be set.
the - state to change the Panelet to. Ignored here.

exit

public void exit()
Nothing is done here. The YAE is terminated when the sole Panelet calls notifyDestroyed, causing it to be removed from the Panelets list.
Overrides:
exit in class PaneletManager

Copyright 2002 Yospace Holdings Ltd. All Rights Reserved.