bibliothek.gui.dock.station.flap
Interface FlapWindowFactory

All Known Implementing Classes:
DefaultFlapWindowFactory

public interface FlapWindowFactory

A FlapWindowFactory creates instances of FlapWindow.

Author:
Benjamin Sigg

Method Summary
 FlapWindow create(FlapDockStation station, ButtonPane buttonPane)
          Creates a new window for 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.
 

Method Detail

create

FlapWindow create(FlapDockStation station,
                  ButtonPane buttonPane)
Creates a new window for station.

Parameters:
station - a known client of this factory
buttonPane - the panel which actually shows the buttons of station, may be needed to calculate the location and size of the window.
Returns:
the new window or null if this factory is unable to create a valid window for station

isValid

boolean isValid(FlapWindow window,
                FlapDockStation station)
Tells whether window can still be used by station.

Parameters:
window - a window create by this factory, was not yet destroied
station - the owner of window
Returns:
true if station can show another Dockable on window

install

void install(FlapDockStation station)
Informs this factory that it will be used by station.

Parameters:
station - a new client of this factory

uninstall

void uninstall(FlapDockStation station)
Informs this factory that it will no longer be used by station.

Parameters:
station - a withdrawing client