ScreenDockWindow window = createWindow( configuration ); ScreenDockWindowHandle handle = new ScreenDockWindowHandle( dockable, window, configuration ); window.setController( getController() ); window.setFullscreenStrategy( getFullscreenStrategy() ); window.setDockable( dockable );
window.setController( getController() ); window.setFullscreenStrategy( getFullscreenStrategy() );
/** * Invoked when a {@link ScreenDockWindow} is no longer needed. This * method removes some listeners from the window. If overridden * by a subclass, the subclass should ensure that this implementation * is invoked too. * @param dockable the element for which <code>window</code> was used * @param window the old window */ protected void deregister( Dockable dockable, ScreenDockWindow window ){ if( frontWindow == window ) frontWindow = null; int index = indexOf( window.getDockable() ); saveLocation( index ); dockables.remove( index ); getRootHandler().removeRoot( window.getComponent() ); window.setDockable( null ); window.setPaintCombining( null ); window.setController( null ); window.setFullscreenStrategy( null ); for( ScreenDockStationListener listener : screenDockStationListeners() ){ listener.windowDeregistering( this, dockable, window ); } window.destroy(); }
oldWindow.setController( null ); oldWindow.setFullscreenStrategy( null ); handle.setWindow( newWindow, configuration ); newWindow.setController( getController() ); newWindow.setFullscreenStrategy( getFullscreenStrategy() ); newWindow.setWindowBounds( bounds );
window.getWindow().setController( controller );