public class KTreeModelSupport extends Object
KTreeModelEvent
s.KTreeModelEvent
Modifier and Type | Field and Description |
---|---|
private Vector |
listeners |
private Object |
source |
Constructor and Description |
---|
KTreeModelSupport(Object source)
Construct a new
KTreeModelSupport object. |
Modifier and Type | Method and Description |
---|---|
void |
addTreeModelListener(KTreeModelListener listener)
Add a
KTreeModelListener to this object's list
of listeners. |
void |
fireDataChanged()
Fire a data changed event.
|
void |
fireNodeAdded(Object parentNode,
int index)
Fire a nodes added event for a single node.
|
void |
fireNodeChanged(Object parentNode,
int index)
Fire a node changed event for a single node.
|
void |
fireNodeRemoved(Object parentNode,
int index)
Fire a nodes removed event for a single node.
|
void |
fireNodesAdded(Object parentNode,
int startIndex,
int endIndex)
Fire a nodes added event for a range of nodes.
|
void |
fireNodesChanged(Object parentNode,
int startIndex,
int endIndex)
Fire a nodes changed event for a range of nodes.
|
void |
fireNodesRemoved(Object parentNode,
int startIndex,
int endIndex)
Fire a nodes removed event for a range of nodes.
|
void |
fireNodeStructureChanged(Object node)
Fire a node structure changed event.
|
void |
removeTreeModelListener(KTreeModelListener listener)
Remove a
KTreeModelListener from this object's list of
listeners. |
public KTreeModelSupport(Object source)
KTreeModelSupport
object.source
- The owner of this object (and the source of the events that
will be generated by it).public void addTreeModelListener(KTreeModelListener listener)
KTreeModelListener
to this object's list
of listeners.listener
- The listener to add.public void removeTreeModelListener(KTreeModelListener listener)
KTreeModelListener
from this object's list of
listeners.listener
- The listener to remove.public void fireNodesAdded(Object parentNode, int startIndex, int endIndex)
parentNode
- The parent node.startIndex
- The start index of the range of child nodes.endIndex
- The end index of the range of child nodes.public void fireNodeAdded(Object parentNode, int index)
parentNode
- The parent node.index
- The offset of the new child within the parent's list of
children.public void fireNodesRemoved(Object parentNode, int startIndex, int endIndex)
parentNode
- The parent node.startIndex
- The start index of the range of child nodes.endIndex
- The end index of the range of child nodes.public void fireNodeRemoved(Object parentNode, int index)
parentNode
- The parent node.index
- The offset of the removed child within the parent's list of
children.public void fireNodesChanged(Object parentNode, int startIndex, int endIndex)
parentNode
- The parent node.startIndex
- The start index of the range of child nodes.endIndex
- The end index of the range of child nodes.public void fireNodeChanged(Object parentNode, int index)
parentNode
- The parent node.index
- The offset of the changed child within the parent's
list of children.public void fireNodeStructureChanged(Object node)
node
- The root node of the subtree that has changed.public void fireDataChanged()
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses