|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.dataselectors.filters.AbstractFilterLogicBaseNode
public abstract class 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 java.lang.String |
description
|
protected java.lang.String |
label
|
protected com.sas.beans.PropertyChangeSupport |
propertyChangeSupport
|
Constructor Summary | |
---|---|
AbstractFilterLogicBaseNode()
|
|
AbstractFilterLogicBaseNode(FilterLogicBaseNodeInterface other)
|
|
AbstractFilterLogicBaseNode(java.lang.Object userObject)
|
Method Summary | |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Add a PropertyChangeListener to the adapter. |
java.lang.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(com.sas.beans.PropertyChangeEvent evt)
Send a PropertyChangeEvent to any listeners added to the adapter. |
protected void |
firePropertyChange(java.lang.String propName,
java.lang.Object oldValue,
java.lang.Object newValue)
Send a PropertyChangeEvent to any listeners added to the adapter. |
FilterLogicBaseNodeInterface |
getChildLogicNodeAt(int childIndex)
Returns the child node at a specific index |
java.lang.String |
getFilterDescription()
Returns the description for this node |
java.lang.String |
getFilterLabel()
get the label for this logical node |
int |
getIndex(javax.swing.tree.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(java.beans.PropertyChangeListener listener)
Remove a PropertyChangeListener from the adapter. |
void |
setFilterDescription(java.lang.String string)
Sets the description for this node. |
void |
setFilterLabel(java.lang.String string)
Sets the label for this node. |
void |
setUserObject(java.lang.Object userObject)
|
Methods inherited from interface com.sas.dataselectors.filters.FilterLogicBaseNodeInterface |
---|
getUserObject |
Field Detail |
---|
protected java.lang.String label
protected java.lang.String description
protected com.sas.beans.PropertyChangeSupport propertyChangeSupport
Constructor Detail |
---|
public AbstractFilterLogicBaseNode()
public AbstractFilterLogicBaseNode(java.lang.Object userObject)
userObject
- public AbstractFilterLogicBaseNode(FilterLogicBaseNodeInterface other)
Method Detail |
---|
public java.lang.Object clone()
clone
in class javax.swing.tree.DefaultMutableTreeNode
public java.lang.String getFilterLabel()
FilterLogicBaseNodeInterface
getFilterLabel
in interface FilterLogicBaseNodeInterface
public java.lang.String getFilterDescription()
FilterLogicBaseNodeInterface
getFilterDescription
in interface FilterLogicBaseNodeInterface
public int getMaxChildren()
FilterLogicBaseNodeInterface
getMaxChildren
in interface FilterLogicBaseNodeInterface
public FilterLogicBaseNodeInterface getChildLogicNodeAt(int childIndex)
FilterLogicBaseNodeInterface
getChildLogicNodeAt
in interface FilterLogicBaseNodeInterface
public FilterLogicBaseNodeInterface getParentLogicNode()
FilterLogicBaseNodeInterface
getParentLogicNode
in interface FilterLogicBaseNodeInterface
public void dispose()
FilterLogicBaseNodeInterface
dispose
in interface FilterLogicBaseNodeInterface
public void setFilterDescription(java.lang.String string)
string
- the new descriptionpublic void setFilterLabel(java.lang.String string)
string
- the new labelpublic void setUserObject(java.lang.Object userObject)
setUserObject
in interface javax.swing.tree.MutableTreeNode
setUserObject
in class javax.swing.tree.DefaultMutableTreeNode
public int getIndex(javax.swing.tree.TreeNode aChild)
-1
. This method performs a linear search and is O(n)
where n is the number of children.
getIndex
in interface javax.swing.tree.TreeNode
getIndex
in class javax.swing.tree.DefaultMutableTreeNode
aChild
- the TreeNode to search for among this node's children
-1
if the specified node is a not
a child of this node
java.lang.IllegalArgumentException
- if aChild
is nullpublic void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- the PropertyChangeListener to be notified when a
PropertyChangeEvent occurspublic void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- the PropertyChangeListener to stop being notified when a
PropertyChangeEvent occursprotected void firePropertyChange(com.sas.beans.PropertyChangeEvent evt)
protected void firePropertyChange(java.lang.String propName, java.lang.Object oldValue, java.lang.Object newValue)
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |