|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mindfusion.diagramming.Command
com.mindfusion.diagramming.RedimTableCmd
public final class RedimTableCmd
Represents an action that changes the number of columns or rows in a table.
Constructor Summary | |
---|---|
RedimTableCmd(TableNode table,
java.lang.String title)
Initializes a new RedimTableCmd instance. |
Method Summary | |
---|---|
void |
execute(boolean undoEnabled)
This method is called internally by JDiagram when changing the number of rows or columns of a table. |
TableNode |
getTable()
Returns the table related to this command. |
void |
redo()
This method is called by the UndoManager when redoing actions. |
void |
undo()
This method is called by the UndoManager when undoing actions. |
Methods inherited from class com.mindfusion.diagramming.Command |
---|
addSubCmd, adopt, getContext, getSubCommands, getTitle, isContainerOf, setTitle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RedimTableCmd(TableNode table, java.lang.String title)
table
- The TableNode
affected by this command.title
- A String
containing the command title.Method Detail |
---|
public void execute(boolean undoEnabled)
execute
in class Command
undoEnabled
- true
if the undo manager is enabled
at this time, otherwise false
.public void undo()
UndoManager
when undoing actions.
undo
in class Command
public void redo()
UndoManager
when redoing actions.
redo
in class Command
public TableNode getTable()
TableNode
instance.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |