bibliothek.gui.dock.station.screen
Interface ScreenDockWindowFactory

All Known Implementing Classes:
DefaultScreenDockWindowFactory, InternalScreenDockWindowFactory

public interface ScreenDockWindowFactory

A ScreenDockWindowFactory can create new ScreenDockWindows. This factory is used by the ScreenDockStation and set through ScreenDockStation.WINDOW_FACTORY.

Author:
Benjamin Sigg

Method Summary
 ScreenDockWindow createWindow(ScreenDockStation station, WindowConfiguration configuration)
          Creates a new window which will be used by station.
 ScreenDockWindow updateWindow(ScreenDockWindow window, WindowConfiguration configuration, ScreenDockStation station)
          This method is called if the result of ScreenDockStation.getOwner() changed, i.e.
 

Method Detail

createWindow

ScreenDockWindow createWindow(ScreenDockStation station,
                              WindowConfiguration configuration)
Creates a new window which will be used by station.

Parameters:
station - the owner of the window
configuration - information about how the window has to look depending on its future Dockable and on the current ScreenDockWindowConfiguration.
Returns:
the new window

updateWindow

ScreenDockWindow updateWindow(ScreenDockWindow window,
                              WindowConfiguration configuration,
                              ScreenDockStation station)
This method is called if the result of ScreenDockStation.getOwner() changed, i.e. if the ScreenDockStation has a new owner. This method may replace the existing window with a new window if necessary.

Parameters:
window - the currently shown window
configuration - the configuration that was used to create window
station - the owner of the window
Returns:
the replacement, a value of null or window means that nothing happens