public final class ExpandHeaderRowCmd extends Command
Constructor and Description |
---|
ExpandHeaderRowCmd(TableNode table,
int rowIndex)
Initializes a new
ExpandHeaderRowCmd instance. |
Modifier and Type | Method and Description |
---|---|
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. |
addSubCmd, adopt, getContext, getSubCommands, getTitle, isContainerOf, setTitle
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.public void execute(boolean undoEnabled)
public void undo()
UndoManager
when undoing actions.public void redo()
UndoManager
when redoing actions.public TableNode getTable()
TableNode
object.public int getRowIndex()