|
Business Components | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.jbo.uicli.binding.JUControlBinding | +--oracle.jbo.uicli.binding.JUCtrlValueBinding | +--oracle.jbo.uicli.binding.JUCtrlRangeBinding | +--oracle.jbo.uicli.binding.JUCtrlHierNodeBinding | +--oracle.jbo.uicli.jui.JUTreeNodeBinding
This class implements rules that govern display of each node in a JTree which is bound to a JUTreeBinding and what to display when the associated node is expanded. The framework creates instances of this class for each node in the tree.
Row
,
RowIterator
,
JUTreeBinding
,
JTree
Fields inherited from class oracle.jbo.uicli.binding.JUCtrlHierNodeBinding |
mChildren |
Constructor Summary |
Type | Constructor |
---|---|
protected |
JUTreeNodeBinding(javax.swing.JTree tr,
JUTreeBinding treeBinding,
JUTreeNodeBinding parent,
JUIteratorBinding iterBinding,
JUCtrlHierTypeBinding typeBinding,
RowSetIterator parentRSI,
Row row,
boolean expandable)
*** For internal framework use only *** |
protected |
JUTreeNodeBinding(javax.swing.JTree tr,
JUTreeBinding treeBinding,
JUTreeNodeBinding parent,
JUIteratorBinding iterBinding,
java.lang.String attrName,
java.lang.Object nodeVal,
boolean expandable)
*** For internal framework use only *** |
Method Summary |
Type | Method |
---|---|
void |
addControlToPanel(java.lang.Object panel,
java.lang.Object layoutObject,
java.lang.Object layoutCons)
*** For internal framework use only *** |
void |
collapse()
Collapses the detail nodes of this node and closes this node. |
void |
executeQueryIfNeeded()
Execute the query for the RowIterator that this row is associated with if it's not already executed. |
void |
expand()
Expands this node if this node has child-rows to display. |
JUCtrlHierTypeBinding |
getHierTypeBinding()
Returns the type binding that this governs the display of this node. |
RowSetIterator |
getParentRowSetIterator()
Returns the RowSetIterator that this node's row is part of. |
Key |
getRowKey()
Returns the Key object that identifies the row that this node is displaying. |
javax.swing.tree.DefaultMutableTreeNode |
getTreeNode()
Returns the swing TreeNode object that this node is associated to. |
javax.swing.tree.TreePath |
getTreePath()
Returns the TreePath that represents this node in the containing JTree hierarchy. |
java.lang.Object |
getValueAt(int rowIndex,
int attrIndex)
Returns the value that this node displays. |
void |
nodeSelected()
Finds the row that this node represents in the associated iterator by asking this node's parent node for the iterator and then sets that row as current row in the RowIterator. |
void |
setValueAt(java.lang.Object value,
int rowIndex,
int attrIndex)
Sets the value that this node is displaying. |
java.lang.String |
toString()
Renders the attribute value that this node is supposed to show. |
void |
updateRowDeleted(DeleteEvent event)
Removes a child node that displays the deleted row from amongst this node's children. |
void |
updateRowInserted(InsertEvent event)
Update the display by adding a node to render the inserted row as this node's child. |
void |
updateValuesFromRow(Row row)
Finds the child node that displays this row and updates it's display. |
void |
updateValuesFromRows(Row[] rows,
boolean clear)
Updates the child nodes that this node contains after optionally clearing out all the currently displayed children based on the clear flag. |
Methods inherited from class oracle.jbo.uicli.binding.JUCtrlHierNodeBinding |
addChild, getChildren,
getHierBinding, getParent, removeChild |
Methods inherited from class oracle.jbo.uicli.binding.JUCtrlRangeBinding |
getEstimatedRowCount, updateNavigated,
updateRangeScrolled |
Methods inherited from class oracle.jbo.uicli.binding.JUCtrlValueBinding |
findAttributeDef, getAttribute, getAttribute,
getAttributeCount, getAttributeDef, getAttributeDefs,
getAttributeFromRow, getAttributeFromRow,
getAttributeFromRow, getAttributeFromRow, getAttributeFromRow, getAttributeIndexOf,
getAttributeNames, isAttributeUpdateable, setAttribute, setAttribute, setAttributeInRow, setAttributeInRow, setAttributeInRow, setAttributeInRow, setAttributeInRow, setAttributeInRow, stopEditing |
Methods inherited from class oracle.jbo.uicli.binding.JUControlBinding |
executeQuery, getAllRowsInRange, getApplicationModule,
getControl, getCurrentRow, getDef,
getFormBinding, getIteratorBinding, getLayoutObject,
getName, getRowAtRangeIndex, getRowIterator,
getTransaction, getViewObject, isControlQueriable,
reportException, setFormBinding,
setName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
protected JUTreeNodeBinding(javax.swing.JTree tr, JUTreeBinding treeBinding, JUTreeNodeBinding parent, JUIteratorBinding iterBinding, java.lang.String attrName, java.lang.Object nodeVal, boolean expandable)
protected JUTreeNodeBinding(javax.swing.JTree tr, JUTreeBinding treeBinding, JUTreeNodeBinding parent, JUIteratorBinding iterBinding, JUCtrlHierTypeBinding typeBinding, RowSetIterator parentRSI, Row row, boolean expandable)
Method Detail |
public void nodeSelected()
public void executeQueryIfNeeded()
executeQueryIfNeeded
in class JUControlBinding
public void addControlToPanel(java.lang.Object panel, java.lang.Object layoutObject, java.lang.Object layoutCons)
addControlToPanel
in class JUControlBinding
public void collapse()
public void expand()
public RowSetIterator getParentRowSetIterator()
public Key getRowKey()
public java.lang.Object getValueAt(int rowIndex, int attrIndex)
getValueAt
in class JUCtrlRangeBinding
public void setValueAt(java.lang.Object value, int rowIndex, int attrIndex)
setValueAt
in class JUCtrlRangeBinding
public javax.swing.tree.DefaultMutableTreeNode getTreeNode()
public javax.swing.tree.TreePath getTreePath()
public void updateRowInserted(InsertEvent event)
updateRowInserted
in class JUCtrlValueBinding
public void updateRowDeleted(DeleteEvent event)
updateRowDeleted
in class JUCtrlValueBinding
public void updateValuesFromRow(Row row)
updateValuesFromRow
in class JUCtrlRangeBinding
public void updateValuesFromRows(Row[] rows, boolean clear)
This method determines the rules to associate to each row in the given array of rows.
updateValuesFromRows
in class JUCtrlRangeBinding
public java.lang.String toString()
toString
in class java.lang.Object
public final JUCtrlHierTypeBinding getHierTypeBinding()
|
Business Components | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |