|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ITreeTableNode
An extension of the TreeNode
interface, which provides additional
information used to populate the table columns of the tree table. Just like
other classes and interfaces in this package, the ITreeTableNode
does
differentiate between a key colum and value columns. The key column is the
table's column that is responsible for displaying the key object and for
visualizing the hierarchical tree structure (by indenting nodes).
DefaultMutableTreeTableNode
get
heavily used by the various tree table policies. Most of these policies
simply delegate the actual work to the node. Example: the node editing policy
INodeEditPolicy.isValueEditable(Object, ITreeTableModel, int)
calls
isValueEditable(int)
.
Method Summary | |
---|---|
java.lang.Object |
getColumnValue(int modelIndex)
Returns the value for the given model index. |
int |
getDragActions()
Returns the drag actions that can be performed on the tree table node. |
int |
getDropActions(ITreeTableNode dropCandidate)
Returns the drop actions that can be performed on the node related to another node. |
java.lang.Object |
getKey()
Returns the node's key object. |
java.lang.Object |
getRowHeaderValue()
Returns a value that can be used by the row header and the row header renderer to control the rendering of the row header. |
int |
getRowHeight()
Returns the current row height of the node. |
int |
getRowHeightMaximum()
Returns the node's maximum row height. |
int |
getRowHeightMinimum()
Returns the node's minimum row height. |
java.lang.String |
getToolTipText(TreeTableColumn column)
Returns the appropriate tooltip text for the given column / model index. |
boolean |
isDeletable()
Returns TRUE if the whole node can be deleted. |
boolean |
isKeyEditable()
Returns TRUE if the key value can be edited. |
boolean |
isResizable()
Returns TRUE if the tree node can be resized. |
boolean |
isRowLineVisible(boolean expanded)
Returns TRUE if the horizontal grid line of the row in which the node is displayed shall be drawn or not (the answer to this question of depends on the state of the node, whether it is expanded or closed). |
boolean |
isSelectable()
Returns TRUE if the tree node can be selected. |
boolean |
isValueEditable(int modelIndex)
Returns TRUE if the column value at the given model index can be edited. |
void |
setColumnValue(java.lang.Object value,
int modelIndex)
Sets the value for the given model index. |
void |
setKey(java.lang.Object key)
Sets the node's key object. |
void |
setRowHeaderValue(java.lang.Object value)
Sets a row header value that can be used by the row ehader and the row header renderer to control the rendering of the row header. |
void |
setRowHeight(int height)
Specifies a new row height for the tree table node. |
void |
sort(int[] modelIndices,
boolean[] sortDirections)
Invokes multi-column sorting on the tree table node. |
Methods inherited from interface javax.swing.tree.TreeNode |
---|
children, getAllowsChildren, getChildAt, getChildCount, getIndex, getParent, isLeaf |
Method Detail |
---|
java.lang.Object getKey()
setKey(Object)
,
ITreeTableModel.getKey(Object)
,
ITreeTableModel.getKey(Object)
,
DefaultMutableTreeTableNode.setKey(Object)
,
DefaultMutableTreeTableNode.getKey()
void setKey(java.lang.Object key)
key
- the node's key objectgetKey()
,
DefaultChangeKeyCommand
,
INodeEditPolicy.getChangeKeyCommand(Object, ITreeTableModel, Object)
java.lang.Object getColumnValue(int modelIndex)
modelIndex
- the model index provided by the column
TreeTableColumn.getModelIndex()
void setColumnValue(java.lang.Object value, int modelIndex)
value
- the new valuemodelIndex
- the model index provided by the columnTreeTableColumn.getModelIndex()
,
DefaultChangeValueCommand
,
INodeEditPolicy.getChangeValueCommand(Object, ITreeTableModel,
Object, int)
boolean isSelectable()
IRowPolicy.isRowSelectable(Object, ITreeTableModel)
boolean isResizable()
IRowPolicy.isRowResizable(Object, ITreeTableModel)
,
IRowPolicy.getRowResizeCommand(Object, ITreeTableModel, int)
,
DefaultRowResizeCommand
,
getRowHeight()
,
getRowHeightMaximum()
,
getRowHeightMinimum()
boolean isRowLineVisible(boolean expanded)
expanded
- if TRUE the tree table node is currently expanded
IRowPolicy.isRowLineVisible(Object, boolean, ITreeTableModel)
boolean isKeyEditable()
INodeEditPolicy.isKeyEditable(Object, ITreeTableModel)
,
INodeEditPolicy.getChangeKeyCommand(Object, ITreeTableModel, Object)
,
DefaultChangeKeyCommand
boolean isValueEditable(int modelIndex)
modelIndex
- the model index
INodeEditPolicy.isValueEditable(Object, ITreeTableModel, int)
,
INodeEditPolicy.getChangeValueCommand(Object, ITreeTableModel,
Object, int)
,
DefaultChangeValueCommand
boolean isDeletable()
INodeEditPolicy.isDeletable(Object, ITreeTableModel)
,
INodeEditPolicy.getDeleteNodeCommand(Object, ITreeTableModel)
,
DefaultNodeDeleteCommand
int getRowHeight()
getRowHeightMaximum()
,
getRowHeightMinimum()
,
IRowPolicy.getRowHeight(Object, ITreeTableModel)
,
IRowPolicy.getRowResizeCommand(Object, ITreeTableModel, int)
,
DefaultRowResizeCommand
int getRowHeightMinimum()
getRowHeight()
,
getRowHeightMaximum()
,
IRowPolicy.getRowHeightMinimum(Object, ITreeTableModel)
,
IRowPolicy.getRowResizeCommand(Object, ITreeTableModel, int)
,
DefaultRowResizeCommand
int getRowHeightMaximum()
getRowHeight()
,
getRowHeightMinimum()
,
IRowPolicy.getRowHeightMaximum(Object, ITreeTableModel)
,
IRowPolicy.getRowResizeCommand(Object, ITreeTableModel, int)
,
DefaultRowResizeCommand
java.lang.String getToolTipText(TreeTableColumn column)
column
- the column model index for which to return a tooltip text
IRowPolicy.getRowToolTip(Object, ITreeTableModel, TreeTableColumn)
,
DefaultRowPolicy
void setRowHeight(int height)
height
- the new row heightIRowPolicy.isRowResizable(Object, ITreeTableModel)
,
IRowPolicy.getRowResizeCommand(Object, ITreeTableModel, int)
,
DefaultRowPolicy
,
DefaultRowResizeCommand
java.lang.Object getRowHeaderValue()
IRowHeaderRenderer
,
ITreeTableModel.getRowHeaderValue(Object)
void setRowHeaderValue(java.lang.Object value)
value
- the row header valueIRowHeaderRenderer
,
ITreeTableModel.getRowHeaderValue(Object)
void sort(int[] modelIndices, boolean[] sortDirections)
modelIndices
- the model indices that are used to determine which column
values to compare for sorting (use
KeyColumn.MODEL_INDEX
to specify a sort based on the
key columnsortDirections
- if TRUE the sort direction will be ascendingITreeTableModel.sort(Object, int[], boolean[])
int getDragActions()
DnDConstants
. Possible values are:
DnDConstants.ACTION_COPY
DnDConstants.ACTION_MOVE
DnDConstants.ACTION_COPY_OR_MOVE
getDropActions(ITreeTableNode)
.
DefaultNodeDragAndDropCommand
,
INodeDragAndDropPolicy.getDragActions(Object, ITreeTableModel)
int getDropActions(ITreeTableNode dropCandidate)
DnDConstants
.
Possible values are:
DnDConstants.ACTION_COPY
DnDConstants.ACTION_MOVE
DnDConstants.ACTION_COPY_OR_MOVE
getDragActions()
.
dropCandidate
- the node that might get dropped onto this node
DefaultNodeDragAndDropCommand
,
INodeDragAndDropPolicy.getDropActions(Object, Object,
ITreeTableModel, Object, ITreeTableModel)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |