/** * Creates a new layout for <code>station</code>. The default implementation just calls {@link #createLayout(SplitDockStationLayout.Entry, int, boolean)}. * @param station the station for which the layout is requested * @param root the contents of the layout * @param fullscreen the index of the child that is maximized * @param hasFullscreenAction whether a fullscreen action is shown or not * @return the new layout */ protected SplitDockStationLayout createLayout( SplitDockPerspective station, Entry root, int fullscreen, boolean hasFullscreenAction ){ return createLayout( root, fullscreen, hasFullscreenAction ); }
/** * Creates a new layout for <code>station</code>. The default implementation just calls {@link #createLayout(SplitDockStationLayout.Entry, int, boolean)}. * @param station the station for which the layout is requested * @param root the contents of the layout * @param fullscreen the index of the child that is maximized * @param hasFullscreenAction whether a fullscreen action is shown or not * @return the new layout */ protected SplitDockStationLayout createLayout( SplitDockStation station, Entry root, int fullscreen, boolean hasFullscreenAction ){ return createLayout( root, fullscreen, hasFullscreenAction ); }
public SplitDockStationLayout getPerspectiveLayout( SplitDockPerspective element, Map<PerspectiveDockable, Integer> children ){ if( children == null ){ return createLayout( null, -1, element.hasFullscreenAction() ); } Entry root = convert( element.getRoot(), children ); PerspectiveDockable fullscreenDockable = element.getFullscreen(); Integer fullscreen = null; if( fullscreenDockable != null ) fullscreen = children.get( fullscreenDockable ); if( fullscreen == null ) return createLayout( element, root, -1, element.hasFullscreenAction() ); else return createLayout( element, root, fullscreen, element.hasFullscreenAction() ); }
public SplitDockStationLayout read( DataInputStream in, PlaceholderStrategy placeholders ) throws IOException { Version version = Version.read( in ); version.checkCurrent(); boolean version8 = Version.VERSION_1_0_8.compareTo( version ) <= 0; boolean version8a = Version.VERSION_1_0_8a.compareTo( version ) <= 0; boolean version110 = Version.VERSION_1_1_0.compareTo( version ) <= 0; SplitDockStationLayout.Entry root = null; if( in.readBoolean() ){ root = readEntry( in, version8, version8a, placeholders ); } int fullscreen = in.readInt(); boolean fullscreenAction = true; if( version110 ){ fullscreenAction = in.readBoolean(); } return createLayout( root, fullscreen, fullscreenAction ); }
return createLayout( station, root, -1, station.hasFullScreenAction() ); else return createLayout( station, root, fullscreen, station.hasFullScreenAction() );
public SplitDockStationLayout read( XElement element, PlaceholderStrategy placeholders ) { SplitDockStationLayout.Entry root = null; XElement xroot = element.getElement( "node" ); if( xroot == null ) xroot = element.getElement( "leaf" ); if( xroot != null ) root = readEntry( xroot, placeholders ); int fullscreen = -1; XElement xfullscreen = element.getElement( "fullscreen" ); if( xfullscreen != null ) fullscreen = xfullscreen.getInt( "id" ); XElement xfullscreenAction = element.getElement( "fullscreen-action" ); boolean fullscreenAction = true; if( xfullscreenAction != null ){ fullscreenAction = xfullscreenAction.getBoolean(); } return createLayout( root, fullscreen, fullscreenAction ); }