public class DefaultRowPolicy extends AbstractPolicy implements IRowPolicy
IRowPolicy
.Constructor and Description |
---|
DefaultRowPolicy() |
Modifier and Type | Method and Description |
---|---|
int |
getRowHeight(Object node,
ITreeTableModel model)
Returns the current height of the row in which the given tree
node gets displayed.
|
int |
getRowHeightMaximum(Object node,
ITreeTableModel model)
Returns the maximum height of the row in which the given tree
node gets displayed.
|
int |
getRowHeightMinimum(Object node,
ITreeTableModel model)
Returns the minimum height of the row in which the given tree
node gets displayed.
|
ICommand |
getRowResizeCommand(Object node,
ITreeTableModel model,
int rowHeight)
Returns a command object that will peform the actual resizing of the row /
node.
|
String |
getRowToolTip(Object node,
ITreeTableModel model,
TreeTableColumn column)
Returns a tooltip text for the given node and column.
|
boolean |
isRowLineVisible(Object node,
boolean expanded,
ITreeTableModel model)
Determines whether or not the horizontal grid line for the row will be
visible or not.
|
boolean |
isRowResizable(Object node,
ITreeTableModel model)
Determines whether or not the row in which the given tree node gets
displayed is resizable at all by the user.
|
assertClass
public int getRowHeight(Object node, ITreeTableModel model)
IRowPolicy
getRowHeight
in interface IRowPolicy
node
- the tree table node for which the row height gets returnedmodel
- the data source that returned the tree table nodepublic int getRowHeightMinimum(Object node, ITreeTableModel model)
IRowPolicy
getRowHeightMinimum
in interface IRowPolicy
node
- the tree table node for which the row height gets returnedmodel
- the data source that returned the tree table nodepublic int getRowHeightMaximum(Object node, ITreeTableModel model)
IRowPolicy
getRowHeightMaximum
in interface IRowPolicy
node
- the tree table node for which the row height gets returnedmodel
- the data source that returned the tree table nodepublic boolean isRowResizable(Object node, ITreeTableModel model)
IRowPolicy
isRowResizable
in interface IRowPolicy
node
- the tree table node for which to check resizabilitymodel
- the data source that returned the tree table nodepublic boolean isRowLineVisible(Object node, boolean expanded, ITreeTableModel model)
IRowPolicy
isRowLineVisible
in interface IRowPolicy
node
- the tree table node for wich to check the line visibilityexpanded
- if TRUE the tree node is currently expanded (the visibility
often depends on this information)model
- the data source that returned the tree table nodepublic String getRowToolTip(Object node, ITreeTableModel model, TreeTableColumn column)
IRowPolicy
getRowToolTip
in interface IRowPolicy
node
- the node / row for which to return a tooltipmodel
- the data source that returned the nodecolumn
- the column for which to return a tooltippublic ICommand getRowResizeCommand(Object node, ITreeTableModel model, int rowHeight)
IRowPolicy
getRowResizeCommand
in interface IRowPolicy
node
- the node / row that is getting resizedmodel
- the data source that returned the noderowHeight
- the new row height that the command shall applyCopyright © 2006–2020 Dirk Lemmermann Software & Consulting. All rights reserved.