example.mmademo
Class SimplePlayerForm
java.lang.Object
javax.microedition.lcdui.Displayable
javax.microedition.lcdui.Screen
javax.microedition.lcdui.Form
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
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 |
SimplePlayerForm
public SimplePlayerForm(java.lang.String title,
Utils.BreadCrumbTrail parent)
SimplePlayerForm
public SimplePlayerForm(java.lang.String title,
SimplePlayerGUI spg,
Utils.BreadCrumbTrail parent)
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