public boolean isFullscreen() { if( strategy == null ){ if( isVisible() ){ throw new IllegalStateException( "no strategy available" ); } else{ return false; } } return strategy.isFullscreen( this ); }
public void setFullscreen( boolean fullscreen ) { if( strategy == null ){ throw new IllegalStateException( "no strategy available" ); } boolean state = isFullscreen(); if( state != fullscreen ){ strategy.setFullscreen( this, fullscreen ); fireFullscreenChanged(); } }
@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 ); } } };
public void setFullscreen( boolean fullscreen ) { if( strategy == null ){ throw new IllegalStateException( "no strategy available" ); } boolean state = isFullscreen(); if( state != fullscreen ){ strategy.setFullscreen( this, fullscreen ); fireFullscreenChanged(); } }
public boolean isFullscreen() { if( strategy == null ){ if( isVisible() ){ throw new IllegalStateException( "no strategy available" ); } else{ return false; } } return strategy.isFullscreen( this ); }