|
Oracle ADF Model and Business Components API Reference 10.1.2 B14022-01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.AbstractMap oracle.jbo.common.JboAbstractMap oracle.adf.model.binding.DCControlBinding oracle.jbo.uicli.binding.JUControlBinding oracle.jbo.uicli.binding.JUCtrlValueBinding oracle.jbo.uicli.binding.JUCtrlRangeBinding oracle.jbo.uicli.binding.JUCtrlHierBinding oracle.jbo.uicli.jui.JUTreeBinding
A lightweight Document model that implements
binding a javax.swing.JTree
to a BC4J RowIterator
and display a selected attribute. Each tree node may
display a set of child nodes bound to another Iterator that is
retrieved via an accessor on the rows of the first iterator.
This binding allows Trees that can have two types of nodes:
RowIterator
,
JTree
,
TreeModel
,
TreeNode
Nested Class Summary |
Nested classes inherited from class java.util.Map |
java.util.Map.Entry |
Field Summary |
Fields inherited from class oracle.jbo.uicli.binding.JUCtrlHierBinding |
ATTR_ROOTNODE, mRootBinding, mTypeBindings |
Fields inherited from class oracle.jbo.uicli.binding.JUCtrlValueBinding |
ATTR_ATTRIBUTE, ATTR_ATTRIBUTE_DEF, ATTR_ATTRIBUTE_DEFS, ATTR_ATTRIBUTE_VALUE, ATTR_ATTRIBUTE_VALUES, ATTR_ATTRIBUTES, ATTR_DISPLAY_HINT, ATTR_INPUT_VALUE, ATTR_LABEL, ATTR_LABELS, ATTR_LABELSET, ATTR_MANDATORY, ATTR_PATH, ATTR_TOOLTIP, ATTR_UPDATEABLE, mHasInputVal, mInputVal, SEP_LIST_DISPLAY |
Fields inherited from class oracle.adf.model.binding.DCControlBinding |
ATTR_CURRENTROW, ATTR_DEF, ATTR_ERROR, ATTR_ERRORS, ATTR_FULLNAME, ATTR_ITER, ATTR_NAME, mInternalGet_KeyResolved, ROW_KEY_STR |
Constructor Summary | |
JUTreeBinding(javax.swing.JTree tr,
JUIteratorBinding iterBinding,
JUCtrlHierTypeBinding[] typeBindings)
This constructor binds a JTree with Rows from a given JUIteratorBinding and displays data as per the node-types passed in typeBindings. |
|
JUTreeBinding(javax.swing.JTree tr,
JUIteratorBinding iterBinding,
java.lang.String attrName,
JUCtrlHierTypeBinding[] typeBindings)
*** For internal framework use only *** |
Method Summary | |
void |
addControlToPanel(java.lang.Object panel,
java.lang.Object layoutObject,
java.lang.Object layoutCons)
*** For internal framework use only *** |
void |
addTreeModelListener(javax.swing.event.TreeModelListener l)
|
protected JUCtrlHierNodeBinding |
createNodeBinding(JUCtrlHierNodeBinding parent,
JUIteratorBinding iterBinding,
JUCtrlHierTypeBinding typeBinding,
Row row,
boolean expandable)
|
protected void |
createRootBinding()
|
static javax.swing.tree.DefaultTreeModel |
createTreeNodeTypeBinding(JUFormBinding formBinding,
javax.swing.JTree control,
java.lang.String voInstanceName,
java.lang.String voIterName,
java.lang.String voIterBindingName,
JUCtrlHierTypeBinding[] nodeBindings)
This method is used by the JClient model-binding editors to bind a JTree to this binding. |
java.lang.String[] |
getAttributeNames()
Returns the attribute that is displayed in the first-level nodes of this tree. |
java.lang.Object |
getChild(java.lang.Object parent,
int index)
|
int |
getChildCount(java.lang.Object parent)
|
java.lang.Object |
getControlModel(java.lang.Object control)
Gets the associated View's model object. |
int |
getIndexOfChild(java.lang.Object parent,
java.lang.Object child)
|
static javax.swing.tree.DefaultTreeModel |
getInstance(JUFormBinding formBinding,
javax.swing.JTree control,
java.lang.String voInstanceName,
java.lang.String voIterName,
java.lang.String voIterBindingName,
JUCtrlHierTypeBinding[] nodeBindings)
Deprecated. since 9.0.2 |
java.lang.Object |
getLayoutObject()
*** For internal framework use only *** |
protected javax.swing.tree.DefaultTreeModel |
getModelImpl(javax.swing.JTree control)
Returns the TreeModel to which the associated JTree is bound. |
java.lang.Object |
getRoot()
|
JUTreeNodeBinding |
getRootBinding()
Returns the root node binding that contains the iterator that the root node is displaying. |
java.lang.Object |
getValueAt(int rowIndex,
int attrIndex)
Returns null, as tree is not implemented to return attribute values for a given Row. |
boolean |
isLeaf(java.lang.Object node)
|
void |
removeTreeModelListener(javax.swing.event.TreeModelListener l)
|
protected JUCtrlHierNodeBinding |
restoreTreeAndExpand(java.util.ArrayList al)
Advanced method: Applications should not use this method |
void |
setControl(java.lang.Object ctrl)
Sets the associated Swing control. |
void |
setLayoutObject(javax.swing.JScrollPane scrollPane)
*** For internal framework use only *** |
void |
setValueAt(java.lang.Object value,
int rowIndex,
int attrIndex)
This method is a noop. |
void |
treeCollapsed(javax.swing.event.TreeExpansionEvent e)
|
void |
treeExpanded(javax.swing.event.TreeExpansionEvent e)
|
void |
updateRangeScrolled(ScrollEvent event)
Method to handle scroll events from the BC4J iterator. |
void |
updateValuesFromRow(Row row)
This method is called in the framework when values of a single row need to be updated in a control (typically on a navigation event). |
void |
valueChanged(javax.swing.event.TreeSelectionEvent e)
|
void |
valueForPathChanged(javax.swing.tree.TreePath path,
java.lang.Object newValue)
|
Methods inherited from class oracle.jbo.uicli.binding.JUCtrlHierBinding |
findNodeByKeyPath, getRootNodeBinding, getTypeBindings, internalGet, updateValuesFromRows |
Methods inherited from class oracle.jbo.uicli.binding.JUCtrlRangeBinding |
createValueBindingRef, getEstimatedRowCount, getRangeSet, getRangeSize, getRangeStart, needsEstimatedRowCount, refreshControl, release, resetInputState, updateNavigated |
Methods inherited from class oracle.jbo.uicli.binding.JUControlBinding |
getFormBinding, getIteratorBinding, reportException, setFormBinding |
Methods inherited from class oracle.adf.model.binding.DCControlBinding |
addToDCExceptions, executeQuery, executeQueryIfNeeded, get, getAllRowsInRange, getApplicationModule, getBindingContainer, getControl, getCurrentRow, getDCIteratorBinding, getDef, getDefFullName, getDefName, getFullName, getName, getRowAtRangeIndex, getRowIterator, getTransaction, getViewObject, hashCode, internalSetName, isControlQueriable, removeFromDCExceptions, reportException, resetAttributeExceptionInRow, setBindingContainer, setName, toString |
Methods inherited from class oracle.jbo.common.JboAbstractMap |
entrySet, equals |
Methods inherited from class java.util.AbstractMap |
clear, clone, containsKey, containsValue, isEmpty, keySet, putAll, remove, size, values |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface oracle.jbo.StructureDef |
getDefFullName, getDefName, getFullName, getName |
Constructor Detail |
public JUTreeBinding(javax.swing.JTree tr, JUIteratorBinding iterBinding, JUCtrlHierTypeBinding[] typeBindings)
public JUTreeBinding(javax.swing.JTree tr, JUIteratorBinding iterBinding, java.lang.String attrName, JUCtrlHierTypeBinding[] typeBindings)
Method Detail |
public java.lang.Object getControlModel(java.lang.Object control)
getControlModel
in class DCControlBinding
public static javax.swing.tree.DefaultTreeModel createTreeNodeTypeBinding(JUFormBinding formBinding, javax.swing.JTree control, java.lang.String voInstanceName, java.lang.String voIterName, java.lang.String voIterBindingName, JUCtrlHierTypeBinding[] nodeBindings)
The rules the govern the node bindings are:
public static javax.swing.tree.DefaultTreeModel getInstance(JUFormBinding formBinding, javax.swing.JTree control, java.lang.String voInstanceName, java.lang.String voIterName, java.lang.String voIterBindingName, JUCtrlHierTypeBinding[] nodeBindings)
public void setControl(java.lang.Object ctrl)
DCControlBinding
setControl
in class DCControlBinding
protected javax.swing.tree.DefaultTreeModel getModelImpl(javax.swing.JTree control)
public void addControlToPanel(java.lang.Object panel, java.lang.Object layoutObject, java.lang.Object layoutCons)
addControlToPanel
in class JUCtrlRangeBinding
public java.lang.Object getLayoutObject()
getLayoutObject
in class DCControlBinding
public void setLayoutObject(javax.swing.JScrollPane scrollPane)
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 java.lang.String[] getAttributeNames()
getAttributeNames
in class JUCtrlValueBinding
public JUTreeNodeBinding getRootBinding()
protected JUCtrlHierNodeBinding createNodeBinding(JUCtrlHierNodeBinding parent, JUIteratorBinding iterBinding, JUCtrlHierTypeBinding typeBinding, Row row, boolean expandable)
createNodeBinding
in class JUCtrlHierBinding
protected void createRootBinding()
createRootBinding
in class JUCtrlHierBinding
protected JUCtrlHierNodeBinding restoreTreeAndExpand(java.util.ArrayList al)
restoreTreeAndExpand
in class JUCtrlHierBinding
public void updateValuesFromRow(Row row)
updateValuesFromRow
in class JUCtrlHierBinding
public void updateRangeScrolled(ScrollEvent event)
JUCtrlRangeBinding
updateRangeScrolled
in class JUCtrlRangeBinding
public void treeCollapsed(javax.swing.event.TreeExpansionEvent e)
treeCollapsed
in interface javax.swing.event.TreeExpansionListener
public void treeExpanded(javax.swing.event.TreeExpansionEvent e)
treeExpanded
in interface javax.swing.event.TreeExpansionListener
public void valueChanged(javax.swing.event.TreeSelectionEvent e)
valueChanged
in interface javax.swing.event.TreeSelectionListener
public java.lang.Object getRoot()
getRoot
in interface javax.swing.tree.TreeModel
public java.lang.Object getChild(java.lang.Object parent, int index)
getChild
in interface javax.swing.tree.TreeModel
public int getChildCount(java.lang.Object parent)
getChildCount
in interface javax.swing.tree.TreeModel
public boolean isLeaf(java.lang.Object node)
isLeaf
in interface javax.swing.tree.TreeModel
public void valueForPathChanged(javax.swing.tree.TreePath path, java.lang.Object newValue)
valueForPathChanged
in interface javax.swing.tree.TreeModel
public int getIndexOfChild(java.lang.Object parent, java.lang.Object child)
getIndexOfChild
in interface javax.swing.tree.TreeModel
public void addTreeModelListener(javax.swing.event.TreeModelListener l)
addTreeModelListener
in interface javax.swing.tree.TreeModel
public void removeTreeModelListener(javax.swing.event.TreeModelListener l)
removeTreeModelListener
in interface javax.swing.tree.TreeModel
|
Oracle ADF Model and Business Components API Reference 10.1.2 B14022-01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2004, Oracle. All rights reserved.