|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mamarce.mhp.mf.xlet.MXLet
public class MXLet
The starting point for every mhp application.
Constructor Summary | |
---|---|
MXLet()
In order to support interoperability between Xlets and application managers, all Xlet classes must provide a public no-argument constructor. |
Method Summary | |
---|---|
void |
addToScene(java.awt.Component component)
This method adds a new Component to the scene. |
void |
addToScene(java.awt.Component component,
int index)
This methos adds a new Component to the scene at the
position specified by index . |
void |
destroyXlet(boolean unconditional)
Signals the Xlet to terminate and enter the Destroyed state. |
MListener |
getActiveListener()
Returs the current active listener. |
MListener |
getOldListener()
Returns the previous active listener. |
javax.tv.xlet.XletContext |
getXletContext()
Returns XletContext for an xlet. |
void |
initXlet(javax.tv.xlet.XletContext ctx)
Signals the Xlet to initialize itself and enter the Paused state. |
void |
notifyDestroied()
This method signals the Xlet Mananager that has entered into the Destroyed state. |
void |
pauseXlet()
Signals the Xlet to stop providing service and enter the Paused state. |
void |
setActiveListener(MListener listener)
Sets the the active listner. |
static void |
setExitContainerEnabled(boolean enabled)
Enable/Disable an ExitContainer call to handle the pressure of the EXIT button. |
void |
startXlet()
Signals the Xlet to start providing service and enter the Active state. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MXLet()
Method Detail |
---|
public void destroyXlet(boolean unconditional) throws javax.tv.xlet.XletStateChangeException
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
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 initXlet(javax.tv.xlet.XletContext ctx) throws javax.tv.xlet.XletStateChangeException
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
ctx
- the XletContext of the Xlet.
javax.tv.xlet.XletStateChangeException
- If the Xlet cannot be initialized.Xlet.initXlet(javax.tv.xlet.XletContext)
public void pauseXlet()
pauseXlet
in interface javax.tv.xlet.Xlet
public void startXlet() throws javax.tv.xlet.XletStateChangeException
startXlet
in interface javax.tv.xlet.Xlet
javax.tv.xlet.XletStateChangeException
- is thrown if the Xlet cannot start providing service.Xlet.startXlet()
public final void addToScene(java.awt.Component component)
Component
to the scene.
component
- the Component
object to add to the scene.Component
public final void addToScene(java.awt.Component component, int index)
Component
to the scene at the
position specified by index
.
component
- the Component
object to add to the sceneindex
- indicates the position to place the component
parameterpublic final void notifyDestroied()
public final javax.tv.xlet.XletContext getXletContext()
XletContext
for an xlet.
public final void setActiveListener(MListener listener)
KeyEvent
.
listener
- this listener will recieve KeyEvent
.public final MListener getActiveListener()
public final MListener getOldListener()
public static final void setExitContainerEnabled(boolean enabled)
enabled
- enable disable exitContainer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |