public class DefaultRowResizeCommand extends AbstractCommand
ITreeTableNode interface.IRowPolicy.getRowResizeCommand(Object,
com.dlsc.flexgantt.model.treetable.ITreeTableModel, int),
Serialized Form| Constructor and Description |
|---|
DefaultRowResizeCommand(ITreeTableNode node,
int height)
Constructs a new command.
|
| Modifier and Type | Method and Description |
|---|---|
void |
executeCommand(IProgressMonitor monitor)
Executes the command.
|
int |
getNewRowHeight()
Returns the new height of the tree table node.
|
ITreeTableNode |
getNode()
Returns the node that received a new row height.
|
int |
getOldRowHeight()
Returns the old height of the tree table node.
|
void |
undoCommand(IProgressMonitor monitor)
Undos the command.
|
getName, isRedoable, isRelevant, isUndoable, redoCommand, setNamepublic DefaultRowResizeCommand(ITreeTableNode node, int height)
node - the tree table node that will receive a new heightheight - the new height that will be assigned to the nodepublic void executeCommand(IProgressMonitor monitor) throws CommandException
ICommandmonitor - a progress monitorCommandException - if anything during the execution of the command has gone
wrongpublic void undoCommand(IProgressMonitor monitor) throws CommandException
ICommandmonitor - a progress monitorCommandException - if anything during the execution of the command has gone
wrongpublic ITreeTableNode getNode()
public int getNewRowHeight()
public int getOldRowHeight()
Copyright © 2006–2020 Dirk Lemmermann Software & Consulting. All rights reserved.