public final class PortEventArgs extends ItemEventArgs<IPort>
ItemEventArgs class that is bound to the IPort type and carries additional
IPortOwner information.
Since for some events (PortRemoved) it is
unclear what Owner the port had been attached to before the event, this event can be used to
carry exactly that information.
EMPTY| Constructor and Description |
|---|
PortEventArgs(IPort port,
IPortOwner owner)
Initializes a new instance of the
PortEventArgs class. |
| Modifier and Type | Method and Description |
|---|---|
IPortOwner |
getOwner()
Gets the owner the port the was connected to before the event happened.
|
getItempublic PortEventArgs(IPort port, IPortOwner owner)
PortEventArgs class.port - The port to assign to the Item property.owner - The owner of the port the port was attached to.public final IPortOwner getOwner()