|
|||||||||
| 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.ExpandHeaderRowCmd
public final class ExpandHeaderRowCmd
Implements undo and redo of collapsing or expanding the header row of a table section.
| Constructor Summary | |
|---|---|
ExpandHeaderRowCmd(TableNode table,
int rowIndex)
Initializes a new ExpandHeaderRowCmd instance. |
|
| Method Summary | |
|---|---|
void |
execute(boolean undoEnabled)
This method is called internally by JDiagram when performing the action. |
int |
getRowIndex()
Gets the index of the header row that defines which rows are collapsed or defined. |
TableNode |
getTable()
Gets the table whose rows are expanded or collapsed by 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 ExpandHeaderRowCmd(TableNode table,
int rowIndex)
ExpandHeaderRowCmd instance.
table - The TableNode whose rows are expanded or collapsed
through this command.rowIndex - The index of the header row that defines the table
section to be expanded or collapsed.| Method Detail |
|---|
public void execute(boolean undoEnabled)
execute in class CommandundoEnabled - true if the undo manager is enabled
at this time, otherwise false.public void undo()
UndoManager when undoing actions.
undo in class Commandpublic void redo()
UndoManager when redoing actions.
redo in class Commandpublic TableNode getTable()
TableNode object.public int getRowIndex()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||