public class ActivityDockTitleEvent extends DockTitleEvent
DockTitle should be focused or not.| Constructor and Description |
|---|
ActivityDockTitleEvent(Dockable dockable,
boolean active)
Constructs a new event.
|
ActivityDockTitleEvent(DockStation station,
Dockable dockable,
boolean active)
Constructs a new event.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isActive()
Returns whether the target-title should be painted in a "focused"-state.
|
boolean |
isPreferred()
Tells whether the
Dockable is preferred in some way by the station. |
void |
setPreferred(boolean preferred)
Sets whether the
Dockable is preferred. |
getDockable, getStationpublic ActivityDockTitleEvent(Dockable dockable, boolean active)
dockable - the Dockable for which the target-title
is renderedactive - true if dockable is the
selected and focused child, false otherwisepublic ActivityDockTitleEvent(DockStation station, Dockable dockable, boolean active)
DockStation itself sends the event. Other components
should use ActivityDockTitleEvent(Dockable, boolean).station - the station on which the target-title is displayeddockable - the Dockable for which the target-title
is renderedactive - true if dockable is the
selected and focused child, false otherwisepublic boolean isActive()
true if the Dockable is focused,
false otherwise.public boolean isPreferred()
public void setPreferred(boolean preferred)
Dockable is preferred.preferred - true if the target-title should be
painted in a special wayisPreferred()Copyright © 2017 Docking Frames. All rights reserved.