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)
          Creates a new window which will be used by station.
 ScreenDockWindow updateWindow(ScreenDockWindow window, ScreenDockStation station)
          This method is called if the result of ScreenDockStation.getOwner() changed, i.e. if the ScreenDockStation has a new owner.
 

Method Detail

createWindow

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

Parameters:
station - the owner of the window
Returns:
the new window

updateWindow

ScreenDockWindow updateWindow(ScreenDockWindow window,
                              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
station - the owner of the window
Returns:
the replacement, a value of null or window means that nothing happens