|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.dock.title.DockTitleEvent bibliothek.gui.dock.title.ActivityDockTitleEvent
public class ActivityDockTitleEvent
An event telling whether a DockTitle
should be focused or not.
Constructor Summary | |
---|---|
ActivityDockTitleEvent(Dockable dockable,
boolean active)
Constructs a new event. |
|
ActivityDockTitleEvent(DockStation station,
Dockable dockable,
boolean active)
Constructs a new event. |
Method Summary | |
---|---|
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. |
Methods inherited from class bibliothek.gui.dock.title.DockTitleEvent |
---|
getDockable, getStation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public 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
otherwiseMethod Detail |
---|
public boolean isActive()
true
if the Dockable
is focused,
false
otherwise.public boolean isPreferred()
Dockable
is preferred in some way by the station.
If so, a DockTitle
can be drawn slightly different than
a normal title.
true
if the Dockable
is a very special
Dockable
public void setPreferred(boolean preferred)
Dockable
is preferred.
preferred
- true
if the target-title should be
painted in a special wayisPreferred()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |