| Modifier and Type | Field and Description |
|---|---|
protected IDecisionMethod |
decisionMethod |
protected EventListenerList |
listeners |
| Constructor and Description |
|---|
DecisionTreeModel() |
DecisionTreeModel(IDecisionMethod decisionMethod) |
| Modifier and Type | Method and Description |
|---|---|
void |
addTreeModelListener(TreeModelListener l) |
protected void |
fireNewRoot()
Call when there is a new root, which may be null, i.e.
|
protected void |
firePathLeafStateChanged(TreePath path)
Call when a node has changed its leaf state.
|
protected void |
fireStructureChanged()
Call when everything but the root has changed.
|
protected void |
fireTreeStructureChanged(TreePath parentPath)
Call when the tree structure below the path has completely changed.
|
Object |
getChild(Object parent,
int index) |
int |
getChildCount(Object parent) |
int |
getIndexOfChild(Object parent,
Object child) |
Object |
getRoot() |
boolean |
isLeaf(Object node) |
void |
removeTreeModelListener(TreeModelListener l) |
void |
setDecisionMethod(IDecisionMethod decisionMethod) |
void |
valueForPathChanged(TreePath path,
Object newValue) |
protected IDecisionMethod decisionMethod
protected EventListenerList listeners
public DecisionTreeModel(IDecisionMethod decisionMethod)
public DecisionTreeModel()
public int getChildCount(Object parent)
getChildCount in interface TreeModelpublic void valueForPathChanged(TreePath path, Object newValue)
valueForPathChanged in interface TreeModelpublic int getIndexOfChild(Object parent, Object child)
getIndexOfChild in interface TreeModelpublic void addTreeModelListener(TreeModelListener l)
addTreeModelListener in interface TreeModelpublic void removeTreeModelListener(TreeModelListener l)
removeTreeModelListener in interface TreeModelpublic void setDecisionMethod(IDecisionMethod decisionMethod)
protected void fireNewRoot()
protected void fireStructureChanged()
protected void firePathLeafStateChanged(TreePath path)
protected void fireTreeStructureChanged(TreePath parentPath)
Copyright © 2004–2018 Ideaconsult Ltd. All rights reserved.