/** * Changes the fullscreen mode of <code>dockable</code>. * @param dockable the element whose mode is to be changed * @param fullscreen the new mode * @throws IllegalArgumentException if <code>dockable</code> is not known to this station */ public void setFullscreen( Dockable dockable, boolean fullscreen ){ ScreenDockWindow window = getWindow( dockable ); if( window == null ){ throw new IllegalArgumentException( "dockable is not known to this station" ); } window.setFullscreen( fullscreen ); }
@Override protected void valueChanged( ScreenDockFullscreenStrategy oldValue, ScreenDockFullscreenStrategy newValue ) { List<ScreenDockWindow> fullscreenWindows = new ArrayList<ScreenDockWindow>(); for( ScreenDockWindowHandle handle : dockables.dockables() ){ ScreenDockWindow window = handle.getWindow(); if( window.isFullscreen() ){ fullscreenWindows.add( window ); window.setFullscreen( false ); } } if( oldValue != null ){ oldValue.uninstall( ScreenDockStation.this ); } if( newValue != null ){ newValue.install( ScreenDockStation.this ); } for( ScreenDockWindowHandle window : dockables.dockables() ){ window.getWindow().setFullscreenStrategy( newValue ); } for( ScreenDockWindow window : fullscreenWindows ){ window.setFullscreen( true ); } } };
window.setVisible( isShowing() ); window.validate(); window.setFullscreen( fullscreen );
newWindow.setFullscreenStrategy( getFullscreenStrategy() ); newWindow.setWindowBounds( bounds ); newWindow.setFullscreen( fullscreen );