|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.gui.dock.event.DockTitleEvent
public class DockTitleEvent
These events are used for DockTitles, to transfer information
between station and title. See the method
DockTitle.changed(DockTitleEvent) for more details.
| Constructor Summary | |
|---|---|
DockTitleEvent(Dockable dockable,
boolean active)
Constructs a new event. |
|
DockTitleEvent(DockStation station,
Dockable dockable,
boolean active)
Constructs a new event. |
|
| Method Summary | |
|---|---|
Dockable |
getDockable()
Gets the Dockable for which the target-title is used. |
DockStation |
getStation()
Gets the title which created the event, and on which the target-title is displayed. |
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 java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DockTitleEvent(Dockable dockable,
boolean active)
dockable - the Dockable for which the target-title
is renderedactive - true if dockable is the
selected and focused child, false otherwise
public DockTitleEvent(DockStation station,
Dockable dockable,
boolean active)
DockStation itself sends the event. Other components
should use DockTitleEvent(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 otherwise| Method Detail |
|---|
public DockStation getStation()
null if the event was not sent
by the stationpublic Dockable getDockable()
Dockable for which the target-title is used.
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
Dockablepublic 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 | |||||||||