public class VisibleTreeModel extends FullTreeModel
EntityTreeModel.TreeUpdateListener
_root
Constructor and Description |
---|
VisibleTreeModel(CompositeEntity root)
Create a new tree model with the specified root.
|
Modifier and Type | Method and Description |
---|---|
protected java.util.List |
_attributes(java.lang.Object object)
Return the list of attributes, or an empty list if there are none.
|
protected boolean |
_isVisible(NamedObj object)
Return true if the object contains either an attribute of
class EditorIcon or an attribute of any class named
"_iconDescription" or "_smallIconDescription".
|
protected java.util.List |
_ports(java.lang.Object object)
Return the list of ports, or an empty list if there are none.
|
protected java.util.List |
_relations(java.lang.Object object)
Return the list of relations, or an empty list if there are none.
|
boolean |
isLeaf(java.lang.Object object)
Return true if the object is a leaf node.
|
void |
valueForPathChanged(javax.swing.tree.TreePath path,
java.lang.Object newValue)
Override the base class to do nothing.
|
getChild, getChildCount, getIndexOfChild
_classes
addTreeModelListener, getRoot, removeTreeModelListener, setRoot
public VisibleTreeModel(CompositeEntity root)
root
- The root of the tree.public boolean isLeaf(java.lang.Object object)
isLeaf
in interface javax.swing.tree.TreeModel
isLeaf
in class FullTreeModel
object
- The object.public void valueForPathChanged(javax.swing.tree.TreePath path, java.lang.Object newValue)
valueForPathChanged
in interface javax.swing.tree.TreeModel
valueForPathChanged
in class EntityTreeModel
path
- The path of the node that has changed.newValue
- The new value of the node.protected java.util.List _attributes(java.lang.Object object)
_attributes
in class FullTreeModel
object
- The object.protected boolean _isVisible(NamedObj object)
object
- The object.protected java.util.List _ports(java.lang.Object object)
_ports
in class FullTreeModel
object
- The object.protected java.util.List _relations(java.lang.Object object)
_relations
in class FullTreeModel
object
- The object.