example.mmademo
Class SimpleTones
java.lang.Object
javax.microedition.midlet.MIDlet
example.mmademo.BaseListMidlet
example.mmademo.SimpleTones
- All Implemented Interfaces:
- Utils.BreadCrumbTrail, javax.microedition.lcdui.CommandListener
public class SimpleTones
- extends BaseListMidlet
- implements Utils.BreadCrumbTrail
An example MIDlet to demonstrate simple tones: Manager.playTone(), MIDIControl
Field Summary |
(package private) byte[] |
niceChord
|
Method Summary |
void |
destroyApp(boolean unconditional)
Called when this MIDlet is destroyed. |
protected void |
fillList(javax.microedition.lcdui.List list)
Child classes must implement this to insert
the displayed list items and commands. |
(package private) javax.microedition.media.control.MIDIControl |
getMIDIControl()
|
void |
handle(java.lang.String name,
java.lang.String url)
|
protected void |
selectCommand(int index)
Child classes must implement this in response to
a selection in the list |
Methods inherited from class javax.microedition.midlet.MIDlet |
checkPermission, getAppProperty, notifyDestroyed, notifyPaused, platformRequest, resumeRequest |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
niceChord
byte[] niceChord
SimpleTones
public SimpleTones()
fillList
protected void fillList(javax.microedition.lcdui.List list)
- Description copied from class:
BaseListMidlet
- Child classes must implement this to insert
the displayed list items and commands.
- Specified by:
fillList
in class BaseListMidlet
selectCommand
protected void selectCommand(int index)
- Description copied from class:
BaseListMidlet
- Child classes must implement this in response to
a selection in the list
- Specified by:
selectCommand
in class BaseListMidlet
destroyApp
public void destroyApp(boolean unconditional)
- Description copied from class:
BaseListMidlet
- Called when this MIDlet is destroyed.
Subclasses should implement this for clean-up.
- Overrides:
destroyApp
in class BaseListMidlet
getMIDIControl
javax.microedition.media.control.MIDIControl getMIDIControl()
throws java.lang.Exception
- Throws:
java.lang.Exception
handle
public void handle(java.lang.String name,
java.lang.String url)
- Specified by:
handle
in interface Utils.BreadCrumbTrail