bibliothek.gui.dock.station.screen
Class InternalScreenDockWindowFactory

java.lang.Object
  extended by bibliothek.gui.dock.station.screen.InternalScreenDockWindowFactory
All Implemented Interfaces:
ScreenDockWindowFactory

public class InternalScreenDockWindowFactory
extends java.lang.Object
implements ScreenDockWindowFactory

A simple factory creating new instances of InternalDockDialog.

Author:
Benjamin Sigg
See Also:
InternalBoundaryRestriction

Constructor Summary
InternalScreenDockWindowFactory(javax.swing.JDesktopPane desktop)
          Creates the factory.
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InternalScreenDockWindowFactory

public InternalScreenDockWindowFactory(javax.swing.JDesktopPane desktop)
Creates the factory. All windows will have desktop as parent.

Parameters:
desktop - the parent for new windows
Method Detail

updateWindow

public ScreenDockWindow updateWindow(ScreenDockWindow window,
                                     ScreenDockStation station)
Description copied from interface: ScreenDockWindowFactory
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.

Specified by:
updateWindow in interface ScreenDockWindowFactory
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

createWindow

public ScreenDockWindow createWindow(ScreenDockStation station)
Description copied from interface: ScreenDockWindowFactory
Creates a new window which will be used by station.

Specified by:
createWindow in interface ScreenDockWindowFactory
Parameters:
station - the owner of the window
Returns:
the new window