public class NavigationCommand extends Command
| Constructor and Description |
|---|
NavigationCommand(String command)
Creates a new instance of NavigationCommand
|
NavigationCommand(String command,
Image icon)
Creates a new instance of NavigationCommand
|
NavigationCommand(String command,
Image icon,
int id)
Creates a new instance of NavigationCommand
|
NavigationCommand(String command,
int id)
Creates a new instance of NavigationCommand
|
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(ActionEvent evt)
This method is called when the soft button/Menu item is clicked
|
Form |
getNextForm()
Gets the next Form
|
void |
setNextForm(Form nextForm)
Sets the Form to navigate to when the actionPerformed is invoked on this
Command
|
create, createMaterial, equals, getClientProperty, getCommandName, getDisabledIcon, getIcon, getIconFont, getIconGapMM, getId, getMaterialIcon, getMaterialIconSize, getPressedIcon, getRolloverIcon, hashCode, isDisposesDialog, isEnabled, putClientProperty, setCommandName, setDisabledIcon, setDisposesDialog, setEnabled, setIcon, setIconFont, setIconGapMM, setMaterialIcon, setMaterialIconSize, setPressedIcon, setRolloverIcon, toStringpublic NavigationCommand(String command)
command - the string that will be placed on the Soft buttons\Menupublic NavigationCommand(String command, Image icon)
command - the string that will be placed on the Soft buttons\Menuicon - the icon representing the commandpublic NavigationCommand(String command, int id)
command - the string that will be placed on the Soft buttons\Menuid - user defined ID for a command simplifying switch statement code
working with a commandpublic NavigationCommand(String command, Image icon, int id)
command - the string that will be placed on the Soft buttons\Menuicon - the icon representing the commandid - user defined ID for a command simplifying switch statement code
working with a commandpublic void setNextForm(Form nextForm)
nextForm - The next Formpublic Form getNextForm()
public void actionPerformed(ActionEvent evt)
CommandactionPerformed in interface ActionListeneractionPerformed in class Commandevt - the Event Object