public class DockTitleEvent extends Object
DockTitles
, to transfer information
between station
and title. See the method
DockTitle.changed(DockTitleEvent)
for more details.Constructor and Description |
---|
DockTitleEvent(Dockable dockable)
Constructs a new event.
|
DockTitleEvent(DockStation station,
Dockable dockable)
Constructs a new event.
|
Modifier and Type | Method and Description |
---|---|
Dockable |
getDockable()
Gets the
Dockable for which the target-title is used. |
DockStation |
getStation()
Gets the station which created the event, and on which the target-title
is displayed.
|
public DockTitleEvent(Dockable dockable)
dockable
- the Dockable
for which the target-title
is renderedpublic DockTitleEvent(DockStation station, Dockable dockable)
DockStation
itself sends the event. Other components
should use DockTitleEvent(Dockable)
.station
- the station on which the target-title is displayeddockable
- the Dockable
for which the target-title
is renderedpublic DockStation getStation()
null
if the event was not sent
by the station