Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (


Class ProfileTreeModel

  extended by oracle.jdevimpl.audit.swing.AbstractTreeModel
      extended by oracle.jdevimpl.audit.profile.ProfileTreeModel
All Implemented Interfaces:
java.beans.PropertyChangeListener, java.util.EventListener, javax.swing.tree.TreeModel, CheckBoxTreeModel

public class ProfileTreeModel
extends AbstractTreeModel
implements CheckBoxTreeModel, java.beans.PropertyChangeListener

A checkbox tree model for beans in an Audit profile.

Field Summary
Fields inherited from class oracle.jdevimpl.audit.swing.AbstractTreeModel
Constructor Summary
ProfileTreeModel(ProfileModel model, oracle.jdevimpl.audit.profile.ProfileTreeModel.BeanSelector selector)
Method Summary
 java.lang.String convertValueToText(java.lang.Object value)
          Converts an object in this tree to text.
 ExtensionBean getBean(java.lang.Object object)
 java.lang.Object getChild(java.lang.Object parent, int index)
 int getChildCount(java.lang.Object parent)
 java.lang.String getDescription(java.lang.Object object)
 int getIndexOfChild(java.lang.Object parent, java.lang.Object child)
 java.lang.Object getRoot()
 java.lang.Boolean getState(java.lang.Object object)
          Gets the selection state for an object in this tree.
 boolean isLeaf(java.lang.Object node)
 void propertyChange(java.beans.PropertyChangeEvent event)
 void stateForPathChanged(javax.swing.tree.TreePath path, java.lang.Boolean newState)
          Sets the selection state for an object in this tree.
 void valueForPathChanged(javax.swing.tree.TreePath path, java.lang.Object newValue)
Methods inherited from class oracle.jdevimpl.audit.swing.AbstractTreeModel
addTreeModelListener, fireTreeNodesChanged, fireTreeNodesInserted, fireTreeNodesRemoved, fireTreeStructureChanged, fireTreeStructureChanged, getListeners, getTreeModelListeners, removeTreeModelListener
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface javax.swing.tree.TreeModel
addTreeModelListener, removeTreeModelListener

Constructor Detail


public ProfileTreeModel(ProfileModel model,
                        oracle.jdevimpl.audit.profile.ProfileTreeModel.BeanSelector selector)
Method Detail


public java.lang.Object getRoot()
Specified by:
getRoot in interface javax.swing.tree.TreeModel


public java.lang.Object getChild(java.lang.Object parent,
                                 int index)
Specified by:
getChild in interface javax.swing.tree.TreeModel


public int getChildCount(java.lang.Object parent)
Specified by:
getChildCount in interface javax.swing.tree.TreeModel


public boolean isLeaf(java.lang.Object node)
Specified by:
isLeaf in interface javax.swing.tree.TreeModel


public void valueForPathChanged(javax.swing.tree.TreePath path,
                                java.lang.Object newValue)
Specified by:
valueForPathChanged in interface javax.swing.tree.TreeModel


public void stateForPathChanged(javax.swing.tree.TreePath path,
                                java.lang.Boolean newState)
Description copied from interface: CheckBoxTreeModel
Sets the selection state for an object in this tree. If newState differs from the old state, the model shoould fire a treeNodesChanged event.

Specified by:
stateForPathChanged in interface CheckBoxTreeModel
path - path to the object whose state was changed by the user.
newState - the new state from the CheckBoxTreeCellEditor.


public int getIndexOfChild(java.lang.Object parent,
                           java.lang.Object child)
Specified by:
getIndexOfChild in interface javax.swing.tree.TreeModel


public java.lang.Boolean getState(java.lang.Object object)
Description copied from interface: CheckBoxTreeModel
Gets the selection state for an object in this tree.

Gets Boolean.TRUE or Boolean.FALSE if the object is selected or unselected, respectively, and null if it is neither (e.g., if it is a nonleaf node and some but not all of its children are selected).

Specified by:
getState in interface CheckBoxTreeModel


public ExtensionBean getBean(java.lang.Object object)


public java.lang.String getDescription(java.lang.Object object)


public java.lang.String convertValueToText(java.lang.Object value)
Description copied from interface: CheckBoxTreeModel
Converts an object in this tree to text.

Specified by:
convertValueToText in interface CheckBoxTreeModel


public void propertyChange(java.beans.PropertyChangeEvent event)
Specified by:
propertyChange in interface java.beans.PropertyChangeListener

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (


Copyright © 1997, 2011, Oracle. All rights reserved.