public class TreeExpandCollapseCommand extends AbstractContextFreeCommand
| Modifier | Constructor and Description |
|---|---|
|
TreeExpandCollapseCommand(int parentIndex)
Create a
TreeExpandCollapseCommand for the given row index. |
|
TreeExpandCollapseCommand(int parentIndex,
int columnIndex)
Create a
TreeExpandCollapseCommand for the given row and column
index. |
protected |
TreeExpandCollapseCommand(TreeExpandCollapseCommand command)
Constructor used for cloning.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getColumnIndex() |
int |
getParentIndex() |
cloneCommand, convertToTargetLayerpublic TreeExpandCollapseCommand(int parentIndex)
TreeExpandCollapseCommand for the given row index. By
using this constructor there is no information about the column that was
clicked. This is sufficient for the default tree implementation, but will
not work correctly with a hierarchical tree.parentIndex - The index of the row that represents a tree node that should
be expanded/collapsed.public TreeExpandCollapseCommand(int parentIndex,
int columnIndex)
TreeExpandCollapseCommand for the given row and column
index. This constructor needs to be used for hierarchical tree
implementations as the tree node to expand/collapse can only be
identified via the combination of row and column.parentIndex - The index of the row that represents a tree node that should
be expanded/collapsed.columnIndex - The index of the column that represents a tree node that
should be expanded/collapsed.protected TreeExpandCollapseCommand(TreeExpandCollapseCommand command)
command - The command to clone.Copyright © 2019. All rights reserved.