example.mmademo
Class SimplePlayerForm

java.lang.Object
  extended by javax.microedition.lcdui.Displayable
      extended by javax.microedition.lcdui.Screen
          extended by javax.microedition.lcdui.Form
              extended by example.mmademo.SimplePlayerForm
All Implemented Interfaces:
SimplePlayerGUI.Parent, Utils.BreadCrumbTrail, Utils.ContentHandler, Utils.Interruptable, java.lang.Runnable

public class SimplePlayerForm
extends javax.microedition.lcdui.Form
implements SimplePlayerGUI.Parent, Utils.ContentHandler, Utils.Interruptable, java.lang.Runnable

MMAPI player main window for media files, implemented as a Form


Constructor Summary
SimplePlayerForm(java.lang.String title, SimplePlayerGUI spg, Utils.BreadCrumbTrail parent)
           
SimplePlayerForm(java.lang.String title, Utils.BreadCrumbTrail parent)
           
 
Method Summary
 boolean canHandle(java.lang.String url)
           
 void close()
           
 void fullScreen(boolean value)
           
 javax.microedition.lcdui.Displayable getCurrentDisplayable()
           
 Utils.BreadCrumbTrail getParent()
           
 javax.microedition.lcdui.Displayable go(javax.microedition.lcdui.Displayable d)
           
 javax.microedition.lcdui.Displayable goBack()
           
 void handle(java.lang.String name, java.io.InputStream is, java.lang.String contentType)
           
 void handle(java.lang.String name, java.lang.String url)
           
 void pauseApp()
          Called in response to a request to pause the MIDlet.
 javax.microedition.lcdui.Displayable replaceCurrent(javax.microedition.lcdui.Displayable d)
           
 void resumeApp()
          Called when a MIDlet is asked to resume operations after a call to pauseApp().
 void run()
           
 void setFeedback(java.lang.String s)
           
 void setFileTitle(java.lang.String s)
           
 void setStatus(java.lang.String s)
           
 void setupDisplay()
           
 java.lang.String toString()
           
 void updateDisplay()
           
 void updateKaraoke()
           
 void updateRate()
           
 void updateTime()
           
 
Methods inherited from class javax.microedition.lcdui.Form
append, append, append, delete, deleteAll, get, getHeight, getWidth, insert, set, setItemStateListener, size
 
Methods inherited from class javax.microedition.lcdui.Displayable
addCommand, getTicker, getTitle, isShown, removeCommand, setCommandListener, setTicker, setTitle, sizeChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface example.mmademo.SimplePlayerGUI.Parent
getTitle
 

Constructor Detail

SimplePlayerForm

public SimplePlayerForm(java.lang.String title,
                        Utils.BreadCrumbTrail parent)

SimplePlayerForm

public SimplePlayerForm(java.lang.String title,
                        SimplePlayerGUI spg,
                        Utils.BreadCrumbTrail parent)
Method Detail

go

public javax.microedition.lcdui.Displayable go(javax.microedition.lcdui.Displayable d)
Specified by:
go in interface Utils.BreadCrumbTrail

goBack

public javax.microedition.lcdui.Displayable goBack()
Specified by:
goBack in interface Utils.BreadCrumbTrail

replaceCurrent

public javax.microedition.lcdui.Displayable replaceCurrent(javax.microedition.lcdui.Displayable d)
Specified by:
replaceCurrent in interface Utils.BreadCrumbTrail

getCurrentDisplayable

public javax.microedition.lcdui.Displayable getCurrentDisplayable()
Specified by:
getCurrentDisplayable in interface Utils.BreadCrumbTrail

getParent

public Utils.BreadCrumbTrail getParent()
Specified by:
getParent in interface SimplePlayerGUI.Parent

setupDisplay

public void setupDisplay()
Specified by:
setupDisplay in interface SimplePlayerGUI.Parent

setStatus

public void setStatus(java.lang.String s)
Specified by:
setStatus in interface SimplePlayerGUI.Parent

setFeedback

public void setFeedback(java.lang.String s)
Specified by:
setFeedback in interface SimplePlayerGUI.Parent

setFileTitle

public void setFileTitle(java.lang.String s)
Specified by:
setFileTitle in interface SimplePlayerGUI.Parent

updateKaraoke

public void updateKaraoke()
Specified by:
updateKaraoke in interface SimplePlayerGUI.Parent

updateTime

public void updateTime()
Specified by:
updateTime in interface SimplePlayerGUI.Parent

updateRate

public void updateRate()
Specified by:
updateRate in interface SimplePlayerGUI.Parent

updateDisplay

public void updateDisplay()
Specified by:
updateDisplay in interface SimplePlayerGUI.Parent

fullScreen

public void fullScreen(boolean value)
Specified by:
fullScreen in interface SimplePlayerGUI.Parent

close

public void close()
Specified by:
close in interface Utils.ContentHandler

canHandle

public boolean canHandle(java.lang.String url)
Specified by:
canHandle in interface Utils.ContentHandler

handle

public void handle(java.lang.String name,
                   java.lang.String url)
Specified by:
handle in interface Utils.BreadCrumbTrail
Specified by:
handle in interface Utils.ContentHandler

handle

public void handle(java.lang.String name,
                   java.io.InputStream is,
                   java.lang.String contentType)

run

public void run()
Specified by:
run in interface java.lang.Runnable

pauseApp

public void pauseApp()
Called in response to a request to pause the MIDlet. This implementation will just call the same method in the GUI implementation.

Specified by:
pauseApp in interface Utils.Interruptable

resumeApp

public void resumeApp()
Called when a MIDlet is asked to resume operations after a call to pauseApp(). This method is only called after pauseApp(), so it is different from MIDlet's startApp(). This implementation will just call the same method in the GUI implementation.

Specified by:
resumeApp in interface Utils.Interruptable

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object