public class FwkInstruction extends FwkPresentation implements FwkInstructionInterface
,
Serialized FormModifier 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, getPresentationString
getNiceVersion
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPresentationString, getPresentationString
public static final java.lang.String version
protected FwkArrayInterface commands
protected java.util.HashMap groups
protected static FwkCommandInterface[] fwkCommandTemplate
public java.lang.String getVersion()
FwkInterface
getVersion
in interface FwkInterface
getVersion
in class FwkPresentation
public void release()
release
in interface FwkInterface
release
in class Fwk
public void addCommand(FwkCommandInterface command)
addCommand
in interface FwkInstructionInterface
command
- The command to be added.public void addCommand(int index, FwkCommandInterface command)
addCommand
in interface FwkInstructionInterface
index
- 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 FwkInstructionInterface
commandName
- The name of the requested command.public FwkCommandInterface[] getCommands()
getCommands
in interface FwkInstructionInterface
public void removeCommand(FwkCommandInterface command)
removeCommand
in interface FwkInstructionInterface
command
- The sub-command to be removed.public void setCommands(FwkCommandInterface[] commandArray)
setCommands
in interface FwkInstructionInterface
commandArray
- The array containing the sub-commands.FwkInstructionInterface.addCommand(FwkCommandInterface command)
public boolean commandsAvailable()
commandsAvailable
in interface FwkInstructionInterface
public void clearCommands()
clearCommands
in interface FwkInstructionInterface
public void addToGroup(int index, java.lang.String groupIdent, java.lang.String commandName)
addToGroup
in interface FwkInstructionInterface
index
- 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 FwkInstructionInterface
groupIdent
- 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 FwkInstructionInterface
groupIdent
- The string identified of the group.commandName
- The name of the command.public void deleteGroup(java.lang.String groupIdent)
deleteGroup
in interface FwkInstructionInterface
groupIdent
- The string identified of the group.public FwkCommandInterface[] getGroup(java.lang.String groupIdent)
getGroup
in interface FwkInstructionInterface
groupIdent
- The string identified of the group.public boolean groupExists(java.lang.String groupIdent)
groupExists
in interface FwkInstructionInterface