|
CESE 1.4.7 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.tree.DefaultTreeModel
com.simulogic.cese.properties.ExportTreeModel
public class ExportTreeModel
Model for the export tree
Field Summary | |
---|---|
static int |
SORT_DEF
No sort |
static int |
SORT_NAME
Sort by name |
static int |
SORT_TYPE
Sort by type |
Fields inherited from class javax.swing.tree.DefaultTreeModel |
---|
asksAllowsChildren, listenerList, root |
Constructor Summary | |
---|---|
ExportTreeModel()
Default constructor |
Method Summary | |
---|---|
void |
filterTree()
Filters the tree to display only properties with specific attributes. |
java.lang.Object |
getChild(java.lang.Object parent,
int index)
Returns child for the object |
int |
getChildCount(java.lang.Object parent)
Returns childs count |
int |
getIndexOfChild(java.lang.Object parent,
java.lang.Object child)
Returns index of child |
boolean |
isLeaf(java.lang.Object node)
Checks if node is a leaf |
void |
setModelInfo(ModelInfo info)
Set the tree model to represent the properties of the model |
void |
sortTree(int sort)
Sorts the tree according to the sort type. |
Methods inherited from class javax.swing.tree.DefaultTreeModel |
---|
addTreeModelListener, asksAllowsChildren, fireTreeNodesChanged, fireTreeNodesInserted, fireTreeNodesRemoved, fireTreeStructureChanged, getListeners, getPathToRoot, getPathToRoot, getRoot, getTreeModelListeners, insertNodeInto, nodeChanged, nodesChanged, nodeStructureChanged, nodesWereInserted, nodesWereRemoved, reload, reload, removeNodeFromParent, removeTreeModelListener, setAsksAllowsChildren, setRoot, valueForPathChanged |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int SORT_DEF
public static final int SORT_NAME
public static final int SORT_TYPE
Constructor Detail |
---|
public ExportTreeModel()
Method Detail |
---|
public void setModelInfo(ModelInfo info)
info
- model infopublic boolean isLeaf(java.lang.Object node)
isLeaf
in interface javax.swing.tree.TreeModel
isLeaf
in class javax.swing.tree.DefaultTreeModel
node
- node to check
public java.lang.Object getChild(java.lang.Object parent, int index)
getChild
in interface javax.swing.tree.TreeModel
getChild
in class javax.swing.tree.DefaultTreeModel
parent
- parent objectindex
- index in parent branch
public int getChildCount(java.lang.Object parent)
getChildCount
in interface javax.swing.tree.TreeModel
getChildCount
in class javax.swing.tree.DefaultTreeModel
parent
- parent object
public int getIndexOfChild(java.lang.Object parent, java.lang.Object child)
getIndexOfChild
in interface javax.swing.tree.TreeModel
getIndexOfChild
in class javax.swing.tree.DefaultTreeModel
parent
- parent objectchild
- child object
public void sortTree(int sort)
sort
- sort typepublic void filterTree()
|
CESE 1.4.7 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |