public class RepresentationLinkEvent extends IlEventObject
IlpRepresentationLink
.RepresentationLinkListener
,
Serialized FormModifier and Type | Class and Description |
---|---|
static class |
RepresentationLinkEvent.Type
Type of events supported by this event class.
|
source
Constructor and Description |
---|
RepresentationLinkEvent(IlpRepresentationLink source,
RepresentationLinkEvent.Type type,
boolean origin,
IlpRepresentationNode oldEnd,
IlpRepresentationNode newEnd)
Creates a link-related event.
|
Modifier and Type | Method and Description |
---|---|
IlpRepresentationNode |
getNewEnd()
Return the link's new end node.
|
IlpRepresentationNode |
getOldEnd()
Return the link's previous end node.
|
boolean |
getOrigin()
Returns
true if the event is about the from end of
the link, false if about the to end. |
IlpRepresentationLink |
getRepresentationLink()
Returns the link the event refers to.
|
String |
toString()
Returns a
String representation of this event. |
getType
getSource
public RepresentationLinkEvent(IlpRepresentationLink source, RepresentationLinkEvent.Type type, boolean origin, IlpRepresentationNode oldEnd, IlpRepresentationNode newEnd)
source
- The link.type
- END_CHANGED
.origin
- If this parameter is true
, the from
end is changed, otherwise the to end.oldEnd
- The previous link end node.newEnd
- The new link end node.public IlpRepresentationLink getRepresentationLink()
public boolean getOrigin()
true
if the event is about the from end of
the link, false
if about the to end.public IlpRepresentationNode getOldEnd()
public IlpRepresentationNode getNewEnd()
public String toString()
String
representation of this event.toString
in class EventObject
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.