|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
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). |
com.sun.lwuit.util | Utility features that are either too domain specific or don't "fit" into any other packages. |
Uses of Command in com.sun.lwuit |
---|
Methods in com.sun.lwuit that return Command | |
---|---|
protected Command |
MenuBar.createMenuCancelCommand()
Factory method that returns the Form Menu cancel Command. |
protected Command |
MenuBar.createMenuSelectCommand()
Factory method that returns the Form Menu select Command. |
protected Command |
MenuBar.createSelectCommand()
Factory method that returns the Form select Command. |
Command |
MenuBar.getBackCommand()
Indicates the command that is defined as the back command out of this form. |
Command |
Form.getBackCommand()
Indicates the command that is defined as the back command out of this form. |
protected Command |
MenuBar.getCancelMenuItem()
This method returns the cancel menu item, when a menu is opened |
Command |
MenuBar.getClearCommand()
Indicates the command that is defined as the clear command in this form. |
Command |
Form.getClearCommand()
Indicates the command that is defined as the clear command in this form. |
Command |
Button.getCommand()
This method return the Button Command if exists |
Command |
MenuBar.getCommand(int index)
Returns the command occupying the given index |
Command |
Form.getCommand(int index)
Returns the command occupying the given index |
Command |
MenuBar.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.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 |
MenuBar.getSelectCommand()
The selectCommand is the command to invoke when a Component has foucs in Third Soft Button state. |
protected Command |
MenuBar.getSelectMenuItem()
This method returns the select menu item, when a menu is opened |
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 |
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(java.lang.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(java.lang.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(java.lang.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(java.lang.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(java.lang.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(java.lang.String title,
java.lang.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(java.lang.String title,
java.lang.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(java.lang.String title,
java.lang.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(java.lang.String title,
java.lang.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 |
MenuBar.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 |
Command |
Dialog.showPacked(java.lang.String position,
boolean modal)
Convenience method to show a dialog sized to match its content. |
Command |
Dialog.showPopupDialog(Component c)
A popup dialog is shown with the context of a component and its selection, it is disposed seamlessly if the back button is pressed or if the user touches outside its bounds. |
protected Command |
ComboBox.showPopupDialog(Dialog popupDialog,
List l)
Shows the popup dialog for the combo box and returns the resulting command. |
Methods in com.sun.lwuit with parameters of type Command | |
---|---|
protected void |
VirtualKeyboard.actionCommand(Command cmd)
|
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. |
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 |
MenuBar.addCommand(Command cmd)
Adds a Command to the MenuBar |
void |
Form.addCommand(Command cmd)
Adds a command to the menu bar softkeys. |
protected void |
MenuBar.addCommand(Command cmd,
int index)
Add a Command to the MenuBar |
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 |
VirtualKeyboard.addSpecialButton(java.lang.String key,
Command cmd)
This method adds a special button to the virtual keyboard |
void |
VirtualKeyboard.addSpecialButton(java.lang.String key,
Command cmd,
int space)
This method adds a special button to the virtual keyboard |
protected Button |
MenuBar.createTouchCommandButton(Command c)
Creates a touch command for use as a touch menu item |
void |
Form.dispatchCommand(Command cmd,
ActionEvent ev)
Dispatches a command via the standard form mechanism of firing a command event |
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 |
void |
Dialog.placeButtonCommands(Command[] cmds)
Places the given commands in the dialog command area, this is very useful for touch devices. |
protected void |
MenuBar.removeCommand(Command cmd)
Removes a Command from the MenuBar |
void |
Form.removeCommand(Command cmd)
Removes the command from the menu bar softkeys |
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 |
void |
MenuBar.setBackCommand(Command backCommand)
Indicates the command that is defined as the back command out of this form. |
void |
Form.setBackCommand(Command backCommand)
Indicates the command that is defined as the back command out of this form. |
void |
MenuBar.setClearCommand(Command clearCommand)
Indicates the command that is defined as the clear command in this form. |
void |
Form.setClearCommand(Command clearCommand)
Indicates the command that is defined as the clear command in this form. |
void |
Button.setCommand(Command cmd)
Applies the given command to this button |
void |
MenuBar.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.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 |
MenuBar.setSelectCommand(Command selectCommand)
Sets the select command |
static Command |
Dialog.show(java.lang.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(java.lang.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(java.lang.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(java.lang.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(java.lang.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(java.lang.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(java.lang.String title,
java.lang.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(java.lang.String title,
java.lang.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(java.lang.String title,
java.lang.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(java.lang.String title,
java.lang.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(java.lang.String title,
java.lang.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(java.lang.String title,
java.lang.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.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 |
Constructors in com.sun.lwuit.events with parameters of type Command | |
---|---|
ActionEvent(Command source,
Component sourceComponent,
int x,
int y)
Creates a new instance of ActionEvent for a command |
Uses of Command in com.sun.lwuit.util |
---|
Methods in com.sun.lwuit.util that return Command | |
---|---|
protected Command |
UIBuilder.createCommand(java.lang.String commandName,
Image icon,
int commandId,
java.lang.String action)
Creates a command instance. |
Methods in com.sun.lwuit.util with parameters of type Command | |
---|---|
protected void |
UIBuilder.asyncCommandProcess(Command cmd,
ActionEvent sourceEvent)
Warning: This method is invoked OFF the EDT and is intended for usage with asynchronous command processing. |
protected void |
UIBuilder.postAsyncCommand(Command cmd,
ActionEvent sourceEvent)
This method is invoked in conjunction with asyncCommandProcess after the command was handled asynchroniously on the separate thread. |
protected void |
UIBuilder.processCommand(ActionEvent ev,
Command cmd)
Invoked to process a given command before naviation or any other internal processing occurs. |
Container |
UIBuilder.showContainer(java.lang.String resourceName,
Command sourceCommand,
Component sourceComponent)
This method is equivalent to the internal navigation behavior, it adds functionality such as the back command into the given form resource and shows it. |
Form |
UIBuilder.showForm(java.lang.String resourceName,
Command sourceCommand)
This method is equivalent to the internal navigation behavior, it adds functionality such as the back command into the given form resource and shows it. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |