Skip navigation links
oracle.jdevimpl.audit.profile
Class ProfileTreeModel
java.lang.Object
oracle.jdevimpl.audit.swing.AbstractTreeModel
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.
| 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 |
ProfileTreeModel
public ProfileTreeModel(ProfileModel model,
java.lang.Class filterType)
getRoot
public java.lang.Object getRoot()
-
- Specified by:
getRoot in interface javax.swing.tree.TreeModel
getChild
public java.lang.Object getChild(java.lang.Object parent,
int index)
-
- Specified by:
getChild in interface javax.swing.tree.TreeModel
getChildCount
public int getChildCount(java.lang.Object parent)
-
- Specified by:
getChildCount in interface javax.swing.tree.TreeModel
isLeaf
public boolean isLeaf(java.lang.Object node)
-
- Specified by:
isLeaf in interface javax.swing.tree.TreeModel
valueForPathChanged
public void valueForPathChanged(javax.swing.tree.TreePath path,
java.lang.Object newValue)
-
- Specified by:
valueForPathChanged in interface javax.swing.tree.TreeModel
stateForPathChanged
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
-
- Parameters:
path - path to the object whose state was changed by the user.
newState - the new state from the CheckBoxTreeCellEditor.
getIndexOfChild
public int getIndexOfChild(java.lang.Object parent,
java.lang.Object child)
-
- Specified by:
getIndexOfChild in interface javax.swing.tree.TreeModel
addPropertyChangeListener
public void addPropertyChangeListener(java.lang.Object object,
java.beans.PropertyChangeListener listener)
removePropertyChangeListener
public void removePropertyChangeListener(java.lang.Object object,
java.beans.PropertyChangeListener listener)
getState
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
getBean
public ExtensionBean getBean(java.lang.Object object)
getDescription
public java.lang.String getDescription(java.lang.Object object)
convertValueToText
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
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent event)
-
- Specified by:
propertyChange in interface java.beans.PropertyChangeListener
Skip navigation links
Copyright © 1997, 2015, Oracle. All rights reserved.