com.mamarce.mhp.mf.examples.slideshow
Class SlideShowXlet

java.lang.Object
  extended by com.mamarce.mhp.mf.xlet.MXLet
      extended by com.mamarce.mhp.mf.examples.slideshow.SlideShowXlet
All Implemented Interfaces:
javax.tv.xlet.Xlet

public class SlideShowXlet
extends MXLet

SlideShowXlet is a simple com.mamarce.mhp.mf.examples.slideshow xlet that use CspFramework.

The xlet display mhp supported images (jpg, png, gif) stored in images folder. The application can be configured through a configuration file called condig.txt.

Since:
1.0
Version:
1.0
Author:
Marco Frattallone

Field Summary
static java.lang.String IMAGE_FOLDER
          Path where images to display are taken.
static java.lang.String ROOT
          Root directory for this example.
 
Constructor Summary
SlideShowXlet()
           
 
Method Summary
 void destroyXlet(boolean unconditional)
          It resize video layer and removes background image.
 void initXlet(javax.tv.xlet.XletContext xletContext)
          Initialize background, read configuration file and create a container/controller.
 void startXlet()
          Displays background and hides video.
 
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
 

Field Detail

ROOT

public static final java.lang.String ROOT
Root directory for this example.

See Also:
Constant Field Values

IMAGE_FOLDER

public static final java.lang.String IMAGE_FOLDER
Path where images to display are taken.

See Also:
Constant Field Values
Constructor Detail

SlideShowXlet

public SlideShowXlet()
Method Detail

destroyXlet

public void destroyXlet(boolean unconditional)
                 throws javax.tv.xlet.XletStateChangeException
It resize video layer and removes background image.

Specified by:
destroyXlet in interface javax.tv.xlet.Xlet
Overrides:
destroyXlet in class MXLet
Parameters:
unconditional - If unconditional is true when this method is called, requests by the Xlet to not enter the destroyed state will be ignored.
Throws:
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.
See Also:
MXLet.destroyXlet(boolean)

initXlet

public void initXlet(javax.tv.xlet.XletContext xletContext)
              throws javax.tv.xlet.XletStateChangeException
Initialize background, read configuration file and create a container/controller.

Specified by:
initXlet in interface javax.tv.xlet.Xlet
Overrides:
initXlet in class MXLet
Parameters:
xletContext - the XletContext of the Xlet.
Throws:
javax.tv.xlet.XletStateChangeException - If the Xlet cannot be initialized.
See Also:
MXLet.initXlet(javax.tv.xlet.XletContext)

startXlet

public void startXlet()
               throws javax.tv.xlet.XletStateChangeException
Displays background and hides video.

Specified by:
startXlet in interface javax.tv.xlet.Xlet
Overrides:
startXlet in class MXLet
Throws:
javax.tv.xlet.XletStateChangeException - is thrown if the Xlet cannot start providing service.
See Also:
MXLet.startXlet()