com.sas.dataselectors.filters.tree
Class LogicalConditionNode

com.sas.dataselectors.filters.tree.LogicalConditionNode
All Implemented Interfaces:
FilterLogicBaseNodeInterface, LogicalConditionNodeInterface, java.io.Serializable, java.lang.Cloneable, javax.swing.tree.MutableTreeNode, javax.swing.tree.TreeNode

public class LogicalConditionNode
implements LogicalConditionNodeInterface

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.sas.dataselectors.filters.AbstractFilterLogicBaseNode
description, label, propertyChangeSupport
 
Constructor Summary
LogicalConditionNode(ConditionalRelationType lc)
           
LogicalConditionNode(ConditionalRelationType lc, boolean explicit)
           
LogicalConditionNode(ConditionalRelationType lc, boolean explicit, java.lang.Object userObject)
           
LogicalConditionNode(ConditionalRelationType lc, java.lang.Object userObject)
           
LogicalConditionNode(LogicalConditionNodeInterface other)
           
 
Method Summary
 java.lang.Object clone()
          Creates a new node with the same user object, label, and description.
 boolean getAllowsChildren()
          Returns true if the node allows children, false otherwise.
 ConditionalRelationType getLogicalCondition()
           
 int getMaxChildren()
          Returns the maximum number of child nodes allowed.
 boolean isExplicitlyCreated()
           
 boolean isLeaf()
          Returns true if the node is a leaf, false otherwise.
 void setExplicitlyCreated(boolean value)
           
 void setLogicalCondition(ConditionalRelationType value)
           
 java.lang.String toString()
           
 
Methods inherited from class com.sas.dataselectors.filters.AbstractFilterLogicBaseNode
addPropertyChangeListener, dispose, firePropertyChange, firePropertyChange, getChildLogicNodeAt, getFilterDescription, getFilterLabel, getIndex, getParentLogicNode, removePropertyChangeListener, setFilterDescription, setFilterLabel, setUserObject
 
Methods inherited from interface com.sas.dataselectors.filters.FilterLogicBaseNodeInterface
dispose, getChildLogicNodeAt, getFilterDescription, getFilterLabel, getParentLogicNode, getUserObject
 

Constructor Detail

LogicalConditionNode

public LogicalConditionNode(ConditionalRelationType lc)

LogicalConditionNode

public LogicalConditionNode(ConditionalRelationType lc,
                            java.lang.Object userObject)

LogicalConditionNode

public LogicalConditionNode(ConditionalRelationType lc,
                            boolean explicit)

LogicalConditionNode

public LogicalConditionNode(ConditionalRelationType lc,
                            boolean explicit,
                            java.lang.Object userObject)

LogicalConditionNode

public LogicalConditionNode(LogicalConditionNodeInterface other)
Parameters:
other -
Throws:
java.lang.NullPointerException - if other is null
Method Detail

clone

public java.lang.Object clone()
Creates a new node with the same user object, label, and description. The children and parent nodes are not included in the new node.

Overrides:
clone in class AbstractFilterLogicBaseNode
Returns:
a new node as a copy of this one

getMaxChildren

public int getMaxChildren()
Returns the maximum number of child nodes allowed.

Specified by:
getMaxChildren in interface FilterLogicBaseNodeInterface
Overrides:
getMaxChildren in class AbstractFilterLogicBaseNode
Returns:
-1, Allows unlimited child nodes

getAllowsChildren

public boolean getAllowsChildren()
Returns true if the node allows children, false otherwise.

Specified by:
getAllowsChildren in interface javax.swing.tree.TreeNode
Overrides:
getAllowsChildren in class javax.swing.tree.DefaultMutableTreeNode
Returns:
true, children will always be allowed for this type of node

isLeaf

public boolean isLeaf()
Returns true if the node is a leaf, false otherwise.

Specified by:
isLeaf in interface javax.swing.tree.TreeNode
Overrides:
isLeaf in class javax.swing.tree.DefaultMutableTreeNode
Returns:
false, this node should not be a leaf

getLogicalCondition

public ConditionalRelationType getLogicalCondition()
Specified by:
getLogicalCondition in interface LogicalConditionNodeInterface

setLogicalCondition

public void setLogicalCondition(ConditionalRelationType value)
Specified by:
setLogicalCondition in interface LogicalConditionNodeInterface

isExplicitlyCreated

public boolean isExplicitlyCreated()
Specified by:
isExplicitlyCreated in interface LogicalConditionNodeInterface

setExplicitlyCreated

public void setExplicitlyCreated(boolean value)
Parameters:
value -

toString

public java.lang.String toString()
Overrides:
toString in class javax.swing.tree.DefaultMutableTreeNode



Copyright © 2009 SAS Institute Inc. All Rights Reserved.