public class EditTextCmd extends Command
Constructor and Description |
---|
EditTextCmd(InplaceEditable item,
java.lang.String newText)
Initializes a new instance of the EditTextCmd class.
|
Modifier and Type | Method and Description |
---|---|
void |
execute(boolean undoEnabled)
Carries out the command action.
|
void |
redo()
Redoes the command action.
|
void |
undo()
Undoes the command.
|
addSubCmd, adopt, getContext, getSubCommands, getTitle, isContainerOf, setTitle
public EditTextCmd(InplaceEditable item, java.lang.String newText)
item
- The DiagramItem
whose text to change.newText
- A string specifying the new text.