public interface IlvJTreeRenderPolicy
IlvJTreeRenderPolicy defines the rendering and editing
policy for rows (that is, activities or resources) being displayed in an
IlvJTree.| Modifier and Type | Method and Description |
|---|---|
TreeCellEditor |
getEditor()
Return this policy's
TreeCellEditor, or
null if the tree should not be editable. |
TreeCellRenderer |
getRenderer()
Return this policy's
TreeCellRenderer. |
String |
getValueAsText(IlvHierarchyNode row)
Returns the text value of the specified row.
|
boolean |
isEditable(IlvHierarchyNode row)
Return whether the specified row is editable.
|
void |
setGanttConfiguration(IlvGanttConfiguration ganttConfig)
This method is invoked whenever this rendering policy is added to or
removed from the Gantt configuration.
|
void |
setTree(IlvJTree tree)
This method is invoked whenever this rendering policy is added to or
removed from its
IlvJTree. |
void |
setValue(IlvHierarchyNode row,
Object value)
Set the value of the data model at the specified row.
|
void setTree(IlvJTree tree)
IlvJTree.
Warning: This method is considered to be part of an
IlvJTreeRenderPolicy's internal implementation and is
not a public API. Only the IlvJTree should invoke this
method.
tree - the tree that this render policy is being assigned to, or
null if this policy is being unassigned from
its treevoid setGanttConfiguration(IlvGanttConfiguration ganttConfig)
Warning: This method is considered to be part of an
IlvJTreeRenderPolicy's's internal implementation and
is not a public API. Only the IlvJTree should invoke
this method.
ganttConfig - the Gantt configuration that this rendering policy
is being added to, or null if this policy is
being removed from its Gantt configurationTreeCellRenderer getRenderer()
TreeCellRenderer.TreeCellEditor getEditor()
TreeCellEditor, or
null if the tree should not be editable.boolean isEditable(IlvHierarchyNode row)
row will match the row organization of the
Gantt configuration of which the tree is a member. In other words, if
the Gantt configuration's
row type is
ACTIVITY_ROWS, then
row will be an IlvActivity.
Otherwise, the Gantt configuration's
rowtype is
RESOURCE_ROWS and
row will be an IlvResource.row - the rowString getValueAsText(IlvHierarchyNode row)
The type of the specified row will match the row
organization of the Gantt configuration of which the table is a
member. In other words, if the Gantt configuration's
row type is
ACTIVITY_ROWS, then
row will be an IlvActivity.
Otherwise, the Gantt configuration's
rowtype is
RESOURCE_ROWS and
row will be an IlvResource.
row - The row.setValue(ilog.views.gantt.IlvHierarchyNode, java.lang.Object),
IlvJTree.convertValueToText(java.lang.Object, boolean, boolean, boolean, int, boolean)void setValue(IlvHierarchyNode row, Object value)
row will match the row organization of the
Gantt configuration of which the tree is a member. In other words, if
the Gantt configuration's
row typeis
ACTIVITY_ROWS, then
row will be an IlvActivity.
Otherwise, the Gantt configuration's
rowtype is
RESOURCE_ROWS and
row will be an IlvResource.row - the rowvalue - the new value© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.