Oracle Fusion Middleware extensions for Seed Data Framework
11g Release 1 (11.1.2)

E22564-02

oracle.apps.fnd.applseed.config.model
Class CheckNode

java.lang.Object
  extended by javax.swing.tree.DefaultMutableTreeNode
      extended by oracle.apps.fnd.applseed.config.model.CheckNode
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, javax.swing.tree.MutableTreeNode, javax.swing.tree.TreeNode

public class CheckNode
extends javax.swing.tree.DefaultMutableTreeNode

Class models a defaultMutableTreeNode that also has a checkbox.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Constructor Summary
CheckNode(java.lang.Object obj)
          Constructor based on user object.
CheckNode(java.lang.Object obj, boolean initialCheckValue, boolean isValueConstrainedByModel)
          Constructor based on user object.
 
Method Summary
static CheckNode constructCheckNode(javax.swing.tree.DefaultMutableTreeNode node)
          Static constructor of Tree of CheckNodes that is a clone of the given node.
static CheckNode constructCheckNode(javax.swing.tree.DefaultMutableTreeNode node, boolean initialValue, boolean constrained)
          Static constructor of Tree of CheckNodes that is a clone of the given node.
 javax.swing.JCheckBox getCheckBox()
          Method returns checkbox.
 boolean isChecked()
          returns status of the check node.
 boolean isModelContained()
          returns true if the bc4j model has declared this node to be contained.
 void toggleCheckBox(boolean isRecursive)
          Method reverses state of checkbox for the node.
 
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CheckNode

public CheckNode(java.lang.Object obj)
Constructor based on user object.

Parameters:
obj - user object of the node

CheckNode

public CheckNode(java.lang.Object obj,
                 boolean initialCheckValue,
                 boolean isValueConstrainedByModel)
Constructor based on user object.

Parameters:
obj - user object of the node
initialCheckValue - check is selected
isValueConstrainedByModel - is value changeable
Method Detail

getCheckBox

public javax.swing.JCheckBox getCheckBox()
Method returns checkbox.

Returns:
checkbox

constructCheckNode

public static CheckNode constructCheckNode(javax.swing.tree.DefaultMutableTreeNode node,
                                           boolean initialValue,
                                           boolean constrained)
Static constructor of Tree of CheckNodes that is a clone of the given node.

Parameters:
node - node to copy
initialValue - check value
constrained - model restricted
Returns:
Checknode tree root

constructCheckNode

public static CheckNode constructCheckNode(javax.swing.tree.DefaultMutableTreeNode node)
Static constructor of Tree of CheckNodes that is a clone of the given node.

Parameters:
node - node to copy
Returns:
Checknode tree root

isChecked

public boolean isChecked()
returns status of the check node.

Returns:
true if checked, else false.

isModelContained

public boolean isModelContained()
returns true if the bc4j model has declared this node to be contained.

Returns:
true if contained.

toggleCheckBox

public void toggleCheckBox(boolean isRecursive)
Method reverses state of checkbox for the node. The reversal is deep if the isRecursive parameter is true.

Parameters:
isRecursive - reverse state of child nodes also.

Oracle Fusion Middleware extensions for Seed Data Framework
11g Release 1 (11.1.2)

E22564-02

Copyright © 2011 Oracle. All Rights Reserved.