public class KTreeModelEvent extends EventObject
KTreeModel
to notify its listeners that
the structure or state of the tree data structure has changed in some way.KTreeModel
,
KTreeModelListener
,
Serialized FormModifier and Type | Field and Description |
---|---|
private int |
endIndex |
private Object |
node |
private int |
startIndex |
source
Constructor and Description |
---|
KTreeModelEvent(Object source)
Construct a new
KTreeModelEvent . |
KTreeModelEvent(Object source,
Object node)
Construct a new
KTreeModelEvent . |
KTreeModelEvent(Object source,
Object node,
int index)
Construct a new
KTreeModelEvent . |
KTreeModelEvent(Object source,
Object node,
int startIndex,
int endIndex)
Construct a new
KTreeModelEvent . |
Modifier and Type | Method and Description |
---|---|
int |
getEndIndex()
Get the end index for this event.
|
int |
getIndex()
Get the start index for this event.
|
Object |
getNode()
Get the node object for this event.
|
int |
getStartIndex()
Get the start index for this event.
|
getSource, toString
private int startIndex
private int endIndex
public KTreeModelEvent(Object source, Object node, int startIndex, int endIndex)
KTreeModelEvent
.source
- The source of the event.node
- The node associated with this event.startIndex
- The start index of a range of child nodes.endIndex
- The end index of a range of child nodes.public KTreeModelEvent(Object source, Object node)
KTreeModelEvent
. The start and end index
are set to 0.source
- The source of the event.node
- The node associated with this event.public KTreeModelEvent(Object source, Object node, int index)
KTreeModelEvent
.source
- The source of the event.node
- The node associated with this event.index
- The index of a child node. The start and end index are
both set to this value.public KTreeModelEvent(Object source)
KTreeModelEvent
. The node is set to
null
and the start and end index are set to 0.public int getIndex()
public int getStartIndex()
public int getEndIndex()
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses