public interface ScreenDockWindowFactory
ScreenDockWindowFactory
can create new ScreenDockWindow
s.
This factory is used by the ScreenDockStation
and set through
ScreenDockStation.WINDOW_FACTORY
.Modifier and Type | Method and Description |
---|---|
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. |
ScreenDockWindow createWindow(ScreenDockStation station, WindowConfiguration configuration)
station
.station
- the owner of the windowconfiguration
- information about how the window has to look depending on its future
Dockable
and on the current ScreenDockWindowConfiguration
.ScreenDockWindow updateWindow(ScreenDockWindow window, WindowConfiguration configuration, ScreenDockStation station)
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.window
- the currently shown windowconfiguration
- the configuration that was used to create window
station
- the owner of the windownull
or window
means that nothing happens