example.mmademo
Class SimpleTones

java.lang.Object
  extended by javax.microedition.midlet.MIDlet
      extended by example.mmademo.BaseListMidlet
          extended by 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
           
 
Fields inherited from class example.mmademo.BaseListMidlet
backCommand, exitCommand, playCommand, selectCommand
 
Constructor Summary
SimpleTones()
           
 
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 example.mmademo.BaseListMidlet
commandAction, exit, getCurrentDisplayable, getDisplay, getList, go, goBack, pauseApp, replaceCurrent, startApp
 
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
 
Methods inherited from interface example.mmademo.Utils.BreadCrumbTrail
getCurrentDisplayable, go, goBack, replaceCurrent
 

Field Detail

niceChord

byte[] niceChord
Constructor Detail

SimpleTones

public SimpleTones()
Method Detail

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