Java DTV API 1.3
18-Nov-2009

Uses of Class
com.sun.dtv.lwuit.Command

Packages that use Command
com.sun.dtv.lwuit Main widget package containing the component/container "composite" similar both in terminology and design to Swing/AWT. 
com.sun.dtv.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.dtv.lwuit
 

Methods in com.sun.dtv.lwuit that return Command
 Command Form.getBackCommand()
          Indicates the command that is defined as the back command out of this form.
 Command Form.getClearCommand()
          Indicates the command that is defined as the clear command in this form.
 Command Form.getCommand(int index)
          Returns the command occupying the given index.
 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 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, 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.
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[] 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)
          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.
 Command Dialog.showDialog()
          Shows a modal dialog and returns the command pressed within the modal dialog.
protected  Command Form.showMenuDialog(Dialog menu)
          If a menu is implemented as a dialog, this method allows to override dialog display in order to customize the dialog menu in various ways
 Command Dialog.showPacked(String position, boolean modal)
          Convenience method to show a dialog sized to match its content.
 

Methods in com.sun.dtv.lwuit with parameters of type Command
 void Form.addCommand(Command cmd)
          Adds a command to the menu bar softkeys.
 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.removeCommand(Command cmd)
          Removes the command from the menu bar softkeys.
 void Form.setBackCommand(Command backCommand)
          Indicates the command that is defined as the back command out of this form.
 void Form.setClearCommand(Command clearCommand)
          Indicates the command that is defined as the clear command in this form.
 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.
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.
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.
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[] 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)
          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 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, 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.
 

Constructors in com.sun.dtv.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.dtv.lwuit.events
 

Methods in com.sun.dtv.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.3
18-Nov-2009

Copyright © 2008-2009 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.