|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.swing.models.TreeModelAdapter
public class TreeModelAdapter
Field Summary | |
---|---|
protected boolean |
defaultModelAttached
|
protected com.sas.util.transforms.TransformInterface |
displayTransform
|
protected javax.swing.event.EventListenerList |
listenerList
|
protected com.sas.models.TreeInterface |
model
|
protected java.util.List |
propertyChangeListenersList
|
protected java.beans.PropertyChangeSupport |
propertyChangeSupport
|
protected javax.swing.tree.TreeNode |
root
|
Constructor Summary | |
---|---|
TreeModelAdapter()
|
|
TreeModelAdapter(com.sas.models.TreeInterface table)
|
Method Summary | |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
|
void |
addTreeModelListener(javax.swing.event.TreeModelListener l)
Adds a listener for the TreeModelEvent posted after the tree changes. |
void |
contentsChanged(com.sas.collection.ContentsChangedEvent event)
|
protected void |
firePropertyChange(java.beans.PropertyChangeEvent evt)
|
protected void |
firePropertyChange(java.lang.String propName,
java.lang.Object oldValue,
java.lang.Object newValue)
|
protected void |
fireTreeNodesChanged(java.lang.Object source,
java.lang.Object[] path,
int[] childIndices,
java.lang.Object[] children)
|
protected void |
fireTreeNodesChanged(javax.swing.event.TreeModelEvent event)
|
protected void |
fireTreeNodesInserted(java.lang.Object source,
java.lang.Object[] path,
int[] childIndices,
java.lang.Object[] children)
|
protected void |
fireTreeNodesInserted(javax.swing.event.TreeModelEvent event)
|
protected void |
fireTreeNodesRemoved(java.lang.Object source,
java.lang.Object[] path,
int[] childIndices,
java.lang.Object[] children)
|
protected void |
fireTreeNodesRemoved(javax.swing.event.TreeModelEvent event)
|
protected void |
fireTreeStructureChanged(java.lang.Object source,
java.lang.Object[] path,
int[] childIndices,
java.lang.Object[] children)
|
protected void |
fireTreeStructureChanged(javax.swing.event.TreeModelEvent event)
|
java.lang.Object |
getChild(java.lang.Object parent,
int index)
|
int |
getChildCount(java.lang.Object parent)
|
com.sas.util.transforms.TransformInterface |
getDisplayTransform()
Return current transform, which can be null |
static com.sas.beans.ExtendedBeanInfo |
getExtendedBeanInfo()
Returns information used by the com.sas.beans.Introspector to
augment the automatically introspected information about this BaseBorder. |
int |
getIndexOfChild(java.lang.Object parent,
java.lang.Object child)
|
java.util.EventListener[] |
getListeners(java.lang.Class listenerType)
Return an array of all the listeners of the given type that were added to this model. |
com.sas.models.TreeInterface |
getModel()
|
java.lang.Object |
getRoot()
|
boolean |
isDefaultModelAttached()
returns true is the component is using a default internal model. |
boolean |
isLeaf(java.lang.Object node)
|
protected com.sas.models.TreeInterface |
newDefaultModel()
|
protected javax.swing.tree.TreeNode |
newTreeNode(com.sas.models.SimpleNodeInterface node)
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
|
void |
removeTreeModelListener(javax.swing.event.TreeModelListener l)
Removes a listener previously added with addTreeModelListener(). |
protected void |
setDefaultModelAttached(boolean defaultModelUsed)
|
void |
setDisplayTransform(com.sas.util.transforms.TransformInterface newTransform)
Set transform to given transform, which can be null |
void |
setModel(com.sas.models.TreeInterface tree)
|
void |
valueForPathChanged(javax.swing.tree.TreePath path,
java.lang.Object newValue)
|
Field Detail |
---|
protected boolean defaultModelAttached
protected javax.swing.tree.TreeNode root
protected com.sas.models.TreeInterface model
protected java.util.List propertyChangeListenersList
protected javax.swing.event.EventListenerList listenerList
protected java.beans.PropertyChangeSupport propertyChangeSupport
protected com.sas.util.transforms.TransformInterface displayTransform
Constructor Detail |
---|
public TreeModelAdapter()
public TreeModelAdapter(com.sas.models.TreeInterface table)
Method Detail |
---|
public static com.sas.beans.ExtendedBeanInfo getExtendedBeanInfo()
com.sas.beans.Introspector
to
augment the automatically introspected information about this BaseBorder.
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
addPropertyChangeListener
in interface com.sas.beans.PropertyChangeSource
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
removePropertyChangeListener
in interface com.sas.beans.PropertyChangeSource
protected void firePropertyChange(java.beans.PropertyChangeEvent evt)
protected void firePropertyChange(java.lang.String propName, java.lang.Object oldValue, java.lang.Object newValue)
protected javax.swing.tree.TreeNode newTreeNode(com.sas.models.SimpleNodeInterface node)
protected com.sas.models.TreeInterface newDefaultModel()
public boolean isDefaultModelAttached()
ViewDefaultModel
isDefaultModelAttached
in interface ViewDefaultModel
protected void setDefaultModelAttached(boolean defaultModelUsed)
public com.sas.models.TreeInterface getModel()
public void setModel(com.sas.models.TreeInterface tree)
public com.sas.util.transforms.TransformInterface getDisplayTransform()
getDisplayTransform
in interface com.sas.util.transforms.DisplayTransformInterface
public void setDisplayTransform(com.sas.util.transforms.TransformInterface newTransform)
setDisplayTransform
in interface com.sas.util.transforms.DisplayTransformInterface
newTransform
- transform to be setpublic void contentsChanged(com.sas.collection.ContentsChangedEvent event)
contentsChanged
in interface com.sas.collection.ContentsChangedListener
public java.lang.Object getChild(java.lang.Object parent, int index)
getChild
in interface javax.swing.tree.TreeModel
public int getChildCount(java.lang.Object parent)
getChildCount
in interface javax.swing.tree.TreeModel
public int getIndexOfChild(java.lang.Object parent, java.lang.Object child)
getIndexOfChild
in interface javax.swing.tree.TreeModel
public java.lang.Object getRoot()
getRoot
in interface javax.swing.tree.TreeModel
public boolean isLeaf(java.lang.Object node)
isLeaf
in interface javax.swing.tree.TreeModel
public void valueForPathChanged(javax.swing.tree.TreePath path, java.lang.Object newValue)
valueForPathChanged
in interface javax.swing.tree.TreeModel
public void addTreeModelListener(javax.swing.event.TreeModelListener l)
addTreeModelListener
in interface javax.swing.tree.TreeModel
l
- the listener to addremoveTreeModelListener(javax.swing.event.TreeModelListener)
public void removeTreeModelListener(javax.swing.event.TreeModelListener l)
removeTreeModelListener
in interface javax.swing.tree.TreeModel
l
- the listener to removeaddTreeModelListener(javax.swing.event.TreeModelListener)
protected void fireTreeNodesChanged(java.lang.Object source, java.lang.Object[] path, int[] childIndices, java.lang.Object[] children)
protected void fireTreeNodesChanged(javax.swing.event.TreeModelEvent event)
protected void fireTreeNodesInserted(java.lang.Object source, java.lang.Object[] path, int[] childIndices, java.lang.Object[] children)
protected void fireTreeNodesInserted(javax.swing.event.TreeModelEvent event)
protected void fireTreeNodesRemoved(java.lang.Object source, java.lang.Object[] path, int[] childIndices, java.lang.Object[] children)
protected void fireTreeNodesRemoved(javax.swing.event.TreeModelEvent event)
protected void fireTreeStructureChanged(java.lang.Object source, java.lang.Object[] path, int[] childIndices, java.lang.Object[] children)
protected void fireTreeStructureChanged(javax.swing.event.TreeModelEvent event)
public java.util.EventListener[] getListeners(java.lang.Class listenerType)
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |