|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--javax.microedition.lcdui.Displayable
An object that has the capability of being placed on the display. A Displayable object may have commands and listeners associated with it. The contents displayed and their interaction with the user are defined by subclasses.
| Method Summary | ||
void |
addCommand(Command cmd)
Adds a command to the Displayable. |
|
boolean |
isShown()
Checks if the Displayable is actually visible on the display. |
|
void |
removeCommand(Command cmd)
Removes a command from the Displayable. |
|
void |
setCommandListener(CommandListener l)
Sets a listener for Commands to this Displayable,
replacing any previous CommandListener. |
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public boolean isShown()
public void addCommand(Command cmd)
cmd - the command to be addedNullPointerException - if cmd is nullpublic void removeCommand(Command cmd)
cmd - the command to be removedpublic void setCommandListener(CommandListener l)
Commands to this Displayable,
replacing any previous CommandListener. A null reference is
allowed and has the effect of removing any existing listener.l - the new listener, or null.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2002 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.