public class DefaultFlapWindowFactory extends Object implements FlapWindowFactory
FlapWindowFactory creates new DefaultFlapWindows.| Constructor and Description |
|---|
DefaultFlapWindowFactory() |
| Modifier and Type | Method and Description |
|---|---|
FlapWindow |
create(FlapDockStation station,
ButtonPane buttonPane)
Creates a new window for
station. |
protected JDesktopPane |
getDesktopPaneOf(FlapDockStation station)
Searches the
JDesktopPane which shows station. |
void |
install(FlapDockStation station)
Informs this factory that it will be used by
station. |
boolean |
isValid(FlapWindow window,
FlapDockStation station)
Tells whether
window can still be used by station. |
void |
uninstall(FlapDockStation station)
Informs this factory that it will no longer be used by
station. |
public FlapWindow create(FlapDockStation station, ButtonPane buttonPane)
FlapWindowFactorystation.create in interface FlapWindowFactorystation - a known client of this factorybuttonPane - the panel which actually shows the buttons of
station, may be needed to calculate the location and
size of the window.null if this factory is unable to create
a valid window for stationpublic void install(FlapDockStation station)
FlapWindowFactorystation.install in interface FlapWindowFactorystation - a new client of this factorypublic boolean isValid(FlapWindow window, FlapDockStation station)
FlapWindowFactorywindow can still be used by station.isValid in interface FlapWindowFactorywindow - a window create by this factory, was not yet destroiedstation - the owner of windowtrue if station can show another Dockable on
windowpublic void uninstall(FlapDockStation station)
FlapWindowFactorystation.uninstall in interface FlapWindowFactorystation - a withdrawing clientprotected JDesktopPane getDesktopPaneOf(FlapDockStation station)
JDesktopPane which shows station.station - the station whose parent is searchednullCopyright © 2017 Docking Frames. All rights reserved.