public class FwkInstruction extends FwkPresentation implements FwkInstructionInterface
,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
protected FwkArrayInterface |
commands |
protected static FwkCommandInterface[] |
fwkCommandTemplate |
protected java.util.HashMap |
groups |
static java.lang.String |
version |
| Constructor and Description |
|---|
FwkInstruction() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCommand(FwkCommandInterface command)
Add the command to the command array.
|
void |
addCommand(int index,
FwkCommandInterface command)
Insert a command at the specified position.
|
void |
addToGroup(int index,
java.lang.String groupIdent,
java.lang.String commandName)
Add a command to a group.
|
void |
addToGroup(java.lang.String groupIdent,
java.lang.String commandName)
Add a command to a group.
|
void |
clearCommands()
Clear the command array.
|
boolean |
commandsAvailable()
This method returns a boolean that indicates whether
the command array is initialized.
|
void |
deleteGroup(java.lang.String groupIdent)
Delete command group.
|
FwkCommandInterface |
getCommand(java.lang.String commandName)
Return the command that matches the given command name.
|
FwkCommandInterface[] |
getCommands()
Retrieve the command array of the component.
|
FwkCommandInterface[] |
getGroup(java.lang.String groupIdent)
Retrieve the command group.
|
java.lang.String |
getVersion()
Return the version string of the FWK component.
|
boolean |
groupExists(java.lang.String groupIdent)
Check whether a group exists.
|
void |
release()
Release the object.
|
void |
removeCommand(FwkCommandInterface command)
Remove a sub-command.
|
void |
removeFromGroup(java.lang.String groupIdent,
java.lang.String commandName)
Remove a command from a group.
|
void |
setCommands(FwkCommandInterface[] commandArray)
Set the sub-commands of the command.
|
getPresentationString, getPresentationStringgetNiceVersionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPresentationString, getPresentationStringpublic static final java.lang.String version
protected FwkArrayInterface commands
protected java.util.HashMap groups
protected static FwkCommandInterface[] fwkCommandTemplate
public java.lang.String getVersion()
FwkInterfacegetVersion in interface FwkInterfacegetVersion in class FwkPresentationpublic void release()
release in interface FwkInterfacerelease in class Fwkpublic void addCommand(FwkCommandInterface command)
addCommand in interface FwkInstructionInterfacecommand - The command to be added.public void addCommand(int index,
FwkCommandInterface command)
addCommand in interface FwkInstructionInterfaceindex - The position where the command has to be inserted.command - The command to be added.public FwkCommandInterface getCommand(java.lang.String commandName)
getCommand in interface FwkInstructionInterfacecommandName - The name of the requested command.public FwkCommandInterface[] getCommands()
getCommands in interface FwkInstructionInterfacepublic void removeCommand(FwkCommandInterface command)
removeCommand in interface FwkInstructionInterfacecommand - The sub-command to be removed.public void setCommands(FwkCommandInterface[] commandArray)
setCommands in interface FwkInstructionInterfacecommandArray - The array containing the sub-commands.FwkInstructionInterface.addCommand(FwkCommandInterface command)public boolean commandsAvailable()
commandsAvailable in interface FwkInstructionInterfacepublic void clearCommands()
clearCommands in interface FwkInstructionInterfacepublic void addToGroup(int index,
java.lang.String groupIdent,
java.lang.String commandName)
addToGroup in interface FwkInstructionInterfaceindex - Index where the command should be placed.groupIdent - The string identified of the group.commandName - The name of the command.public void addToGroup(java.lang.String groupIdent,
java.lang.String commandName)
addToGroup in interface FwkInstructionInterfacegroupIdent - The string identified of the group.commandName - The name of the command.public void removeFromGroup(java.lang.String groupIdent,
java.lang.String commandName)
removeFromGroup in interface FwkInstructionInterfacegroupIdent - The string identified of the group.commandName - The name of the command.public void deleteGroup(java.lang.String groupIdent)
deleteGroup in interface FwkInstructionInterfacegroupIdent - The string identified of the group.public FwkCommandInterface[] getGroup(java.lang.String groupIdent)
getGroup in interface FwkInstructionInterfacegroupIdent - The string identified of the group.public boolean groupExists(java.lang.String groupIdent)
groupExists in interface FwkInstructionInterface