public class DefaultFlapWindowFactory extends Object implements FlapWindowFactory
FlapWindowFactory
creates new DefaultFlapWindow
s.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)
FlapWindowFactory
station
.create
in interface FlapWindowFactory
station
- 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 station
public void install(FlapDockStation station)
FlapWindowFactory
station
.install
in interface FlapWindowFactory
station
- a new client of this factorypublic boolean isValid(FlapWindow window, FlapDockStation station)
FlapWindowFactory
window
can still be used by station
.isValid
in interface FlapWindowFactory
window
- a window create by this factory, was not yet destroied
station
- the owner of window
true
if station
can show another Dockable
on
window
public void uninstall(FlapDockStation station)
FlapWindowFactory
station
.uninstall
in interface FlapWindowFactory
station
- a withdrawing clientprotected JDesktopPane getDesktopPaneOf(FlapDockStation station)
JDesktopPane
which shows station
.station
- the station whose parent is searchednull