|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.dlsc.flexgantt.policy.AbstractPolicy com.dlsc.flexgantt.policy.treetable.DefaultRowPolicy
public class DefaultRowPolicy
The default implementation of the row policy. For a general description of
the purpose of this policy please refer to IRowPolicy
.
Constructor Summary | |
---|---|
DefaultRowPolicy()
|
Method Summary | |
---|---|
int |
getRowHeight(java.lang.Object node,
ITreeTableModel model)
Returns the current height of the row in which the given tree node gets displayed. |
int |
getRowHeightMaximum(java.lang.Object node,
ITreeTableModel model)
Returns the maximum height of the row in which the given tree node gets displayed. |
int |
getRowHeightMinimum(java.lang.Object node,
ITreeTableModel model)
Returns the minimum height of the row in which the given tree node gets displayed. |
ICommand |
getRowResizeCommand(java.lang.Object node,
ITreeTableModel model,
int rowHeight)
Returns a command object that will peform the actual resizing of the row / node. |
java.lang.String |
getRowToolTip(java.lang.Object node,
ITreeTableModel model,
TreeTableColumn modelIndex)
Returns a tooltip text for the given node and column. |
boolean |
isRowLineVisible(java.lang.Object node,
boolean expanded,
ITreeTableModel model)
Determines whether or not the horizontal grid line for the row will be visible or not. |
boolean |
isRowResizable(java.lang.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. |
boolean |
isRowSelectable(java.lang.Object node,
ITreeTableModel model)
Determines whether or not the row in which the given tree node gets displayed is selectable by the user. |
Methods inherited from class com.dlsc.flexgantt.policy.AbstractPolicy |
---|
assertClass |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultRowPolicy()
Method Detail |
---|
public int getRowHeight(java.lang.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 node
public int getRowHeightMinimum(java.lang.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 node
public int getRowHeightMaximum(java.lang.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 node
public boolean isRowSelectable(java.lang.Object node, ITreeTableModel model)
IRowPolicy
isRowSelectable
in interface IRowPolicy
node
- the tree table node for wich to check selectabilitymodel
- the data source that returned the tree table node
public boolean isRowResizable(java.lang.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 node
public boolean isRowLineVisible(java.lang.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 node
public java.lang.String getRowToolTip(java.lang.Object node, ITreeTableModel model, TreeTableColumn modelIndex)
IRowPolicy
getRowToolTip
in interface IRowPolicy
node
- the node / row for which to return a tooltipmodel
- the data source that returned the nodemodelIndex
- the column for which to return a tooltip
public ICommand getRowResizeCommand(java.lang.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 apply
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |