Constructor and Description |
---|
CommandSet(java.lang.String name)
Creates
CommandSet object giving its name. |
Modifier and Type | Method and Description |
---|---|
boolean |
addCommand(java.lang.String sequence,
ControlCommand command)
Add command as ControlCommand object to the internal command hash map.
|
ControlCommand |
getCommand(java.lang.String sequence)
Get command as a
ControlCommand object by its
character sequence. |
java.lang.String |
getName()
Returns command set's name.
|
boolean |
isControlChar(char ch)
Check if character passed is a control character.
|
boolean |
removeCommand(java.lang.String sequence)
Remove command's ControlCommand object from internal command hash map.
|
public CommandSet(java.lang.String name)
CommandSet
object giving its name.name
- command set name.public boolean isControlChar(char ch)
ch
- character to checkpublic ControlCommand getCommand(java.lang.String sequence)
ControlCommand
object by its
character sequence.sequence
- command sequence name.ControlCommand
object.public boolean addCommand(java.lang.String sequence, ControlCommand command)
sequence
- command char sequence to add.command
- ControlCommand object for command.public boolean removeCommand(java.lang.String sequence)
sequence
- command sequence to remove.public java.lang.String getName()
Copyright © JSCAPE LLC. 1999-2021. All Rights Reserved