public class RepresentationNodeEvent extends IlEventObject
IlpRepresentationNode
.Modifier and Type | Class and Description |
---|---|
static class |
RepresentationNodeEvent.Type
Type of events supported by this event class.
|
source
Constructor and Description |
---|
RepresentationNodeEvent(IlpRepresentationNode source,
RepresentationNodeEvent.Type type,
int[] indices,
IlpRepresentationNode[] children)
Creates a child addition or removal event.
|
Modifier and Type | Method and Description |
---|---|
IlpRepresentationNode[] |
getChildren()
Returns the child objects added or removed.
|
int[] |
getIndices()
Returns the indices of the children added or removed (after addition,
or before removal).
|
IlpRepresentationNode |
getRepresentationNode()
Returns the parent node the event refers to.
|
String |
toString()
Returns a
String representation of this event. |
getType
getSource
public RepresentationNodeEvent(IlpRepresentationNode source, RepresentationNodeEvent.Type type, int[] indices, IlpRepresentationNode[] children)
source
- The node.type
- One of CHILDREN_ADDED
,
CHILDREN_REMOVED
.indices
- The indices of the children added or removed (indices to
be taken after addition, but before removal), in
ascending order.children
- The children added or removed, in the same order as
listed in indices
.public IlpRepresentationNode getRepresentationNode()
public int[] getIndices()
public IlpRepresentationNode[] getChildren()
public String toString()
String
representation of this event.toString
in class EventObject
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.