DCT Lightfoot v3 API specification

javax.microedition.lcdui
Class Displayable

java.lang.Object
  |
  +--javax.microedition.lcdui.Displayable
Direct Known Subclasses:
Canvas, Screen

public abstract class Displayable
extends Object

This is the displayable class. Anything that can be displayed is a subclass of this


Field Summary
protected  Display display
          The display we are on
 
Method Summary
 void addCommand(Command cmd)
          Add a command to the displayable
 boolean isShown()
          Are we shown
 void removeCommand(Command cmd)
          Remove a command
 void setCommandListener(CommandListener l)
          Set the command listener
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

display

protected Display display
The display we are on

Method Detail

addCommand

public void addCommand(Command cmd)
Add a command to the displayable

Parameters:
cmd - The command. This is only added if it will display to the user differently

isShown

public boolean isShown()
Are we shown

Returns:
true if currently shown

removeCommand

public void removeCommand(Command cmd)
Remove a command

Parameters:
cmd - The command to remove

setCommandListener

public void setCommandListener(CommandListener l)
Set the command listener

Parameters:
l - The listener

DCT Lightfoot v3 API specification

DCT Lightfoot v3 API specification