Java DTV API 1.0
12-Dec-2008

Uses of Class
com.sun.lwuit.Command

Packages that use Command
com.sun.lwuit Main widget package containing the component/container "composite" similar both in terminology and design to Swing/AWT.  
com.sun.lwuit.events Observable pattern event listeners in the spirit of AWT 1.1's event dispatching architecture, all events are dispatched on the EDT (Event Dispatch Thread).  
 

Uses of Command in com.sun.lwuit
 

Methods in com.sun.lwuit that return Command
 Command Dialog.show(int top, int bottom, int left, int right, boolean includeTitle)
          This method shows the form as a modal alert allowing us to produce a behavior of an alert/dialog box.
 Command Dialog.show(int top, int bottom, int left, int right, boolean includeTitle, boolean modal)
          This method shows the form as a modal alert allowing us to produce a behavior of an alert/dialog box.
static Command Dialog.show(String title, String text, Command[] cmds, int type, Image icon, long timeout)
          Shows a modal prompt dialog with the given title and text.
static Command Dialog.show(String title, String text, Command defaultCommand, Command[] cmds, int type, Image icon, long timeout)
          Shows a modal prompt dialog with the given title and text.
static Command Dialog.show(String title, String text, Command[] cmds, int type, Image icon, long timeout, Transition transition)
          Shows a modal prompt dialog with the given title and text.
static Command Dialog.show(String title, String text, Command defaultCommand, Command[] cmds, int type, Image icon, long timeout, Transition transition)
          Shows a modal prompt dialog with the given title and text.
static Command Dialog.show(String title, Component body, Command[] cmds)
          Shows a modal dialog with the given component as its "body" placed in the center.
static Command Dialog.show(String title, Component body, Command[] cmds, int type, Image icon)
          Shows a modal dialog with the given component as its "body" placed in the center.
static Command Dialog.show(String title, Component body, Command[] cmds, int type, Image icon, long timeout)
          Shows a modal dialog with the given component as its "body" placed in the center.
static Command Dialog.show(String title, Component body, Command[] cmds, int type, Image icon, long timeout, Transition transition)
          Shows a modal dialog with the given component as its "body" placed in the center.
static Command Dialog.show(String title, Component body, Command defaultCommand, Command[] cmds, int type, Image icon, long timeout, Transition transition)
          Shows a modal dialog with the given component as its "body" placed in the center.
 Command Dialog.showDialog()
          Shows a modal dialog and returns the command pressed within the modal dialog.
 Command Form.getDefaultCommand()
          Default command is invoked when a user presses fire, this functionality works well in some situations but might collide with elements such as navigation and combo boxes.
 Command Form.getClearCommand()
          Indicates the command that is defined as the clear command in this form.
 Command Form.getBackCommand()
          Indicates the command that is defined as the back command out of this form.
 Command Form.getCommand(int index)
          Returns the command occupying the given index.
protected  Command Form.showMenuDialog(Dialog menu)
          A menu is implemented as a dialog, this method allows you to override dialog display in order to customize the dialog menu in various ways.
protected  Command TextField.installCommands(Command clear, Command t9)
          Installs the clear and t9 commands onto the parent form, this method can be overriden to provide device specific placement for these commands.
 

Methods in com.sun.lwuit with parameters of type Command
static Command Dialog.show(String title, String text, Command[] cmds, int type, Image icon, long timeout)
          Shows a modal prompt dialog with the given title and text.
static Command Dialog.show(String title, String text, Command defaultCommand, Command[] cmds, int type, Image icon, long timeout)
          Shows a modal prompt dialog with the given title and text.
static Command Dialog.show(String title, String text, Command[] cmds, int type, Image icon, long timeout, Transition transition)
          Shows a modal prompt dialog with the given title and text.
static Command Dialog.show(String title, String text, Command defaultCommand, Command[] cmds, int type, Image icon, long timeout, Transition transition)
          Shows a modal prompt dialog with the given title and text.
static Command Dialog.show(String title, Component body, Command[] cmds)
          Shows a modal dialog with the given component as its "body" placed in the center.
static Command Dialog.show(String title, Component body, Command[] cmds, int type, Image icon)
          Shows a modal dialog with the given component as its "body" placed in the center.
static Command Dialog.show(String title, Component body, Command[] cmds, int type, Image icon, long timeout)
          Shows a modal dialog with the given component as its "body" placed in the center.
static Command Dialog.show(String title, Component body, Command[] cmds, int type, Image icon, long timeout, Transition transition)
          Shows a modal dialog with the given component as its "body" placed in the center.
static Command Dialog.show(String title, Component body, Command defaultCommand, Command[] cmds, int type, Image icon, long timeout, Transition transition)
          Shows a modal dialog with the given component as its "body" placed in the center.
protected  void Dialog.actionCommand(Command cmd)
          Invoked to allow subclasses of form to handle a command from one point rather than implementing many command instances.
 void Form.setDefaultCommand(Command defaultCommand)
          Default command is invoked when a user presses fire, this functionality works well in some situations but might collide with elements such as navigation and combo boxes.
 void Form.setClearCommand(Command clearCommand)
          Indicates the command that is defined as the clear command in this form.
 void Form.setBackCommand(Command backCommand)
          Indicates the command that is defined as the back command out of this form.
protected  void Form.actionCommand(Command cmd)
          Invoked to allow subclasses of form to handle a command from one point rather than implementing many command instances.
 void Form.addCommand(Command cmd, int offset)
          Adds a command to the menu bar softkeys or into the menu dialog, this version of add allows us to place a command in an arbitrary location.
 void Form.addCommand(Command cmd)
          Adds a command to the menu bar softkeys.
 void Form.removeCommand(Command cmd)
          Removes the command from the menu bar softkeys.
protected  Command TextField.installCommands(Command clear, Command t9)
          Installs the clear and t9 commands onto the parent form, this method can be overriden to provide device specific placement for these commands.
protected  void TextField.removeCommands(Command clear, Command t9, Command originalClear)
          Removes the clear and t9 commands from the parent form, this method can be overriden to provide device specific placement for these commands.
 

Constructors in com.sun.lwuit with parameters of type Command
Button(Command cmd)
          Allows binding a command to a button for ease of use.
 

Uses of Command in com.sun.lwuit.events
 

Methods in com.sun.lwuit.events that return Command
 Command ActionEvent.getCommand()
          If this event was sent as a result of a command action this method returns that command.
 


Java DTV API 1.0
12-Dec-2008

Copyright © 2008 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, California 95054, U.S.A. All rights reserved.

U.S. Government Rights - Commercial software. Government users are subject to the Sun Microsystems, Inc. standard license agreement and applicable provisions of the FAR and its supplements. Sun, Sun Microsystems, the Sun logo and Java are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries.Products covered by and information contained in this service manual are controlled by U.S. Export Control laws and may be subject to the export or import laws in other countries. Nuclear, missile, chemical biological weapons or nuclear maritime end uses or end users, whether direct or indirect, are strictly prohibited. Export or reexport to countries subject to U.S. embargo or to entities identified on U.S. export exclusion lists, including, but not limited to, the denied persons and specially designated nationals lists is strictly prohibited.

DOCUMENTATION IS PROVIDED AS IS AND ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE DISCLAIMED, EXCEPT TO THE EXTENT THAT SUCH DISCLAIMERS ARE HELD TO BE LEGALLY INVALID.

Use of this document is subject to license terms.