|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
java.lang.Object
|
+--javax.swing.tree.DefaultMutableTreeNode
|
+--com.sas.dataselectors.filters.AbstractFilterLogicBaseNode
This thin wrapper for a Vector supplies the basic functionality of a filter logic node. Additional node features will be supplied by sub-classes.
| Field Summary | |
protected String |
description
|
protected String |
label
|
protected PropertyChangeSupport |
propertyChangeSupport
|
| Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
| Constructor Summary | |
AbstractFilterLogicBaseNode()
|
|
AbstractFilterLogicBaseNode(FilterLogicBaseNodeInterface other)
|
|
AbstractFilterLogicBaseNode(Object userObject)
|
|
| Method Summary | |
void |
addPropertyChangeListener(PropertyChangeListener listener)
Add a PropertyChangeListener to the adapter. |
Object |
clone()
Creates a new node with the same user object, label, and description. |
void |
dispose()
Clean up and free any resources help by this node. |
protected void |
firePropertyChange(PropertyChangeEvent evt)
Send a PropertyChangeEvent to any listeners added to the adapter. |
protected void |
firePropertyChange(String propName,
Object oldValue,
Object newValue)
Send a PropertyChangeEvent to any listeners added to the adapter. |
FilterLogicBaseNodeInterface |
getChildLogicNodeAt(int childIndex)
Returns the child node at a specific index |
String |
getFilterDescription()
Returns the description for this node |
String |
getFilterLabel()
get the label for this logical node |
int |
getIndex(TreeNode aChild)
Returns the index of the specified child in this node's child array. |
int |
getMaxChildren()
Return the maximum number of child nodes allowed -1 = unlimited 0 = none |
FilterLogicBaseNodeInterface |
getParentLogicNode()
Returns the parent node |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Remove a PropertyChangeListener from the adapter. |
void |
setFilterDescription(String string)
Sets the description for this node. |
void |
setFilterLabel(String string)
Sets the label for this node. |
void |
setUserObject(Object userObject)
|
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.sas.dataselectors.filters.FilterLogicBaseNodeInterface |
getUserObject |
| Methods inherited from interface javax.swing.tree.TreeNode |
children, getAllowsChildren, getChildAt, getChildCount, getParent, isLeaf |
| Field Detail |
protected String label
protected String description
protected PropertyChangeSupport propertyChangeSupport
| Constructor Detail |
public AbstractFilterLogicBaseNode()
public AbstractFilterLogicBaseNode(Object userObject)
userObject - public AbstractFilterLogicBaseNode(FilterLogicBaseNodeInterface other)
| Method Detail |
public Object clone()
clone in class DefaultMutableTreeNodepublic String getFilterLabel()
FilterLogicBaseNodeInterfacegetFilterLabel in interface FilterLogicBaseNodeInterfacepublic String getFilterDescription()
FilterLogicBaseNodeInterfacegetFilterDescription in interface FilterLogicBaseNodeInterfacepublic int getMaxChildren()
FilterLogicBaseNodeInterfacegetMaxChildren in interface FilterLogicBaseNodeInterfacecom.sas.dataselectors.filters.FilterLogicBaseNodeInterfacepublic FilterLogicBaseNodeInterface getChildLogicNodeAt(int childIndex)
FilterLogicBaseNodeInterfacegetChildLogicNodeAt in interface FilterLogicBaseNodeInterfacecom.sas.dataselectors.filters.FilterLogicBaseNodeInterfacepublic FilterLogicBaseNodeInterface getParentLogicNode()
FilterLogicBaseNodeInterfacegetParentLogicNode in interface FilterLogicBaseNodeInterfacecom.sas.dataselectors.filters.FilterLogicBaseNodeInterfacepublic void dispose()
FilterLogicBaseNodeInterfacedispose in interface FilterLogicBaseNodeInterfacepublic void setFilterDescription(String string)
string - the new descriptionpublic void setFilterLabel(String string)
string - the new labelpublic void setUserObject(Object userObject)
setUserObject in class DefaultMutableTreeNodepublic int getIndex(TreeNode aChild)
-1. This method performs a linear search and is O(n)
where n is the number of children.getIndex in interface TreeNodegetIndex in class DefaultMutableTreeNodeaChild - the TreeNode to search for among this node's children-1 if the specified node is a not
a child of this nodeIllegalArgumentException - if aChild
is nullpublic void addPropertyChangeListener(PropertyChangeListener listener)
listener - the PropertyChangeListener to be notified when a
PropertyChangeEvent occurspublic void removePropertyChangeListener(PropertyChangeListener listener)
listener - the PropertyChangeListener to stop being notified when a
PropertyChangeEvent occursprotected void firePropertyChange(PropertyChangeEvent evt)
protected void firePropertyChange(String propName,
Object oldValue,
Object newValue)
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||