|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mamarce.mhp.mf.xlet.MXLet
com.mamarce.mhp.mf.examples.example01.Example01
public class Example01
Constructor Summary | |
---|---|
Example01()
|
Method Summary | |
---|---|
void |
destroyXlet(boolean unconditional)
Signals the Xlet to terminate and enter the Destroyed state. |
void |
initXlet(javax.tv.xlet.XletContext xletContext)
Signals the Xlet to initialize itself and enter the Paused state. |
void |
manageEvent(java.awt.event.KeyEvent event)
Handles KeyEvent . |
void |
startXlet()
Signals the Xlet to start providing service and enter the Active state. |
Methods inherited from class com.mamarce.mhp.mf.xlet.MXLet |
---|
addToScene, addToScene, getActiveListener, getOldListener, getXletContext, notifyDestroied, pauseXlet, setActiveListener, setExitContainerEnabled |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Example01()
Method Detail |
---|
public void initXlet(javax.tv.xlet.XletContext xletContext) throws javax.tv.xlet.XletStateChangeException
MXLet
An XletContext is used by the Xlet to access properties associated with its runtime environment. After this method returns successfully, the Xlet is in the Paused state and should be quiescent.
Note:his method shall only be called once.
initXlet
in interface javax.tv.xlet.Xlet
initXlet
in class MXLet
xletContext
- the XletContext of the Xlet.
javax.tv.xlet.XletStateChangeException
- If the Xlet cannot be initialized.Xlet.initXlet(javax.tv.xlet.XletContext)
public void startXlet() throws javax.tv.xlet.XletStateChangeException
MXLet
startXlet
in interface javax.tv.xlet.Xlet
startXlet
in class MXLet
javax.tv.xlet.XletStateChangeException
- is thrown if the Xlet cannot start providing service.Xlet.startXlet()
public void destroyXlet(boolean unconditional) throws javax.tv.xlet.XletStateChangeException
MXLet
NOTE: The Xlet can request that it not enter the Destroyed state by throwing an XletStateChangeException. This is only a valid response if the unconditional flag is set to false. If it is true the Xlet is assumed to be in the Destroyed state regardless of how this method terminates. If it is not an unconditional request, the Xlet can signify that it wishes to stay in its current state by throwing the Exception. This request may be honored and the destroyXlet() method called again at a later time.
destroyXlet
in interface javax.tv.xlet.Xlet
destroyXlet
in class MXLet
unconditional
- If unconditional is true when this method is called, requests
by the Xlet to not enter the destroyed state will be ignored.
javax.tv.xlet.XletStateChangeException
- is thrown if the Xlet wishes to continue to execute (Not
enter the Destroyed state). This exception is ignored if
unconditional is equal to true.public void manageEvent(java.awt.event.KeyEvent event)
MListener
KeyEvent
.
manageEvent
in interface MListener
event
- KeyEvent
Object.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |