public interface FlapLayoutManager
FlapLayoutManager stores properties of FlapDockStations
and can influence the behavior of a FlapDockStation.FlapDockStation.updateHold(Dockable) when the hold property of a Dockable needs to be changedFlapDockStation.updateWindowSize(Dockable) when the size of a Dockable needs to be updated| Modifier and Type | Method and Description |
|---|---|
void |
addListener(FlapLayoutManagerListener listener)
Adds an observer to this manager, the observer is to be informed if an important property
changes.
|
int |
getSize(FlapDockStation station,
Dockable dockable)
Called when
dockable is about to open and station
has to find out which size dockable should have. |
void |
install(FlapDockStation station)
Called before this manager is used.
|
boolean |
isHold(FlapDockStation station,
Dockable dockable)
Called when
dockable is added to station and
station does not know whether dockable should
be hold open even when it is not focused. |
boolean |
isHoldSwitchable(FlapDockStation station,
Dockable dockable)
Tells whether the user is supposed to switch the
hold property. |
void |
removeListener(FlapLayoutManagerListener listener)
Removes the observer
listener from this manager. |
void |
setHold(FlapDockStation station,
Dockable dockable,
boolean hold)
Called when the user changes the hold property of
dockable. |
void |
setSize(FlapDockStation station,
Dockable dockable,
int size)
Called when the user changes the size of
dockable. |
void |
uninstall(FlapDockStation station)
Called when this manager is no longer used.
|
void install(FlapDockStation station)
station - the station that will use this managervoid uninstall(FlapDockStation station)
station - the station that will no longer use this managervoid addListener(FlapLayoutManagerListener listener)
listener - the new observer, not nullvoid removeListener(FlapLayoutManagerListener listener)
listener from this manager.listener - the observer to removeboolean isHold(FlapDockStation station, Dockable dockable)
dockable is added to station and
station does not know whether dockable should
be hold open even when it is not focused.station - the callerdockable - the new element on stationvoid setHold(FlapDockStation station, Dockable dockable, boolean hold)
dockable.station - the callerdockable - the child of station whose property
has changedhold - the new valueboolean isHoldSwitchable(FlapDockStation station, Dockable dockable)
hold property.station - the callerdockable - the child of station whose property is askedtrue if the hold property can be changed, false if the user should not be
presented with a button to change the propertyint getSize(FlapDockStation station, Dockable dockable)
dockable is about to open and station
has to find out which size dockable should have.station - the callerdockable - the child of station that is going to
be shown.dockablevoid setSize(FlapDockStation station, Dockable dockable, int size)
dockable.station - the callerdockable - the element whose size has been changedsize - the new sizeCopyright © 2017 Docking Frames. All rights reserved.