|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbibliothek.gui.dock.event.DockAdapter
bibliothek.gui.dock.station.split.FullScreenClickableListener
public class FullScreenClickableListener
A listener which is added to a SplitDockStation
. The listener
observes all children and adds to each DockTitle
or Dockable
a FullScreenClickableListener.FullScreenListener
. The listener is removed when a Dockable
is removed from this station.
Nested Class Summary | |
---|---|
protected class |
FullScreenClickableListener.FullScreenListener
A listener which waits for a double-click-event to change the fullscreen-mode of a Dockable . |
Constructor Summary | |
---|---|
FullScreenClickableListener(SplitDockStation station)
Constructs a new listener. |
Method Summary | |
---|---|
void |
destroy()
Deconstructor of this listener, removes all listeners from any known observed object. |
void |
dockableAdded(DockStation station,
Dockable dockable)
Invoked after dockable has been added to station . |
void |
dockableRemoved(DockStation station,
Dockable dockable)
Invoked after dockable has been removed from
station . |
SplitDockStation |
getStation()
Gets the station which is observed by this listener. |
protected boolean |
shouldCollect(Dockable dockable)
Determines whether dockable should be observed or not. |
protected boolean |
shouldCollect(Dockable dockable,
DockTitle title)
Determines whether title should be observed or not. |
void |
titleBound(DockController controller,
DockTitle title,
Dockable dockable)
Called when title was bound
to dockable . |
void |
titleUnbound(DockController controller,
DockTitle title,
Dockable dockable)
Called when title was unbound
from dockable . |
protected Dockable |
unwrap(Dockable dockable)
Searches a parent of dockable which has the
station as its direct parent. |
Methods inherited from class bibliothek.gui.dock.event.DockAdapter |
---|
dockableAdding, dockableDrag, dockableFocused, dockablePut, dockableRegistered, dockableRegistering, dockableRemoving, dockableUnregistered, dockableVisibiltySet, dockStationRegistered, dockStationRegistering, dockStationUnregistered, titleBound, titleIconChanged, titleTextChanged, titleUnbound |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FullScreenClickableListener(SplitDockStation station)
station
- the station which should be observedMethod Detail |
---|
public SplitDockStation getStation()
public void dockableAdded(DockStation station, Dockable dockable)
DockStationListener
dockable
has been added to station
.
dockableAdded
in interface DockStationListener
dockableAdded
in class DockAdapter
station
- the station where the new child was addeddockable
- the new childpublic void dockableRemoved(DockStation station, Dockable dockable)
DockStationListener
dockable
has been removed from
station
.
dockableRemoved
in interface DockStationListener
dockableRemoved
in class DockAdapter
station
- the station where the old child was removeddockable
- the old childpublic void titleBound(DockController controller, DockTitle title, Dockable dockable)
DockControllerListener
title
was bound
to dockable
.
This method is called after the DockTitle.bind()
-method
was invoked.
titleBound
in interface DockControllerListener
titleBound
in class DockAdapter
controller
- the origin of the eventtitle
- the DockTitle
that was bounddockable
- the owner of title
public void titleUnbound(DockController controller, DockTitle title, Dockable dockable)
DockControllerListener
title
was unbound
from dockable
.
This method is called after the DockTitle.bind()
-method
was invoked.
titleUnbound
in interface DockControllerListener
titleUnbound
in class DockAdapter
controller
- the origin of the eventtitle
- the DockTitle
which was unbounddockable
- the old owner of title
protected Dockable unwrap(Dockable dockable)
dockable
which has the
station
as its direct parent.
dockable
- the root of the search
dockable
, a parent of dockable
or null
protected boolean shouldCollect(Dockable dockable)
dockable
should be observed or not.
dockable
- the dockable
which will be checked
true
if dockable
should have a listener,
false
otherwiseprotected boolean shouldCollect(Dockable dockable, DockTitle title)
title
should be observed or not.
dockable
- the owner of title
title
- the title which will be checked
true
if title
has to be observed,
false
otherwisepublic void destroy()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |