public void setLocation( int childIndex, DockableProperty location ){ if( location != null ){ getChild( childIndex ).setLocation( location ); } }
public void setLocation( int childIndex, int subChildIndex, DockableProperty location ){ if( location != null ){ getSubChild( childIndex, subChildIndex ).setLocation( location ); } }
private void appendFirstOnEstimate( DockLayoutComposition composition, DockableProperty location ){ DockLayoutInfo info = composition.getLayout(); DockableProperty property = info.getLocation(); if( property != null ){ info.setLocation( DockUtilities.append( property, location ) ); } for( DockLayoutComposition child : composition.getChildren() ){ appendFirstOnEstimate( child, location ); } }
public void finish( DockableProperty newParentLocation ){ if( valid ){ DockableProperty newLeafLocation = validLocation(); if( newLeafLocation == null && newParentLocation != null ){ newLeafLocation = newParentLocation.copy(); } if( newLeafLocation != null ){ newLeafLocation.setSuccessor( oldLocation ); composition.getLayout().setLocation( newLeafLocation ); } else{ invalidate(); } } }
@Override public PlaceholderListItem<Dockable> convert( ConvertedPlaceholderListItem item ){ int id = item.getInt( "id" ); int index = item.getInt( "index" ); Path placeholder = null; if( item.contains( "placeholder" )){ placeholder = new Path( item.getString( "placeholder" ) ); } StackDockProperty property = new StackDockProperty( index, placeholder ); children.getChild( id ).setLocation( property ); for( int i = 0, n = children.getSubChildCount( id ); i<n; i++ ){ DockLayoutInfo info = children.getSubChild( id, i ); info.setLocation( new StackDockProperty( index, info.getPlaceholder() ) ); } return null; } });
@Override public PlaceholderListItem<Dockable> convert( ConvertedPlaceholderListItem item ){ int id = item.getInt( "id" ); int index = item.getInt( "index" ); Path placeholder = null; if( item.contains( "placeholder" )){ placeholder = new Path( item.getString( "placeholder" ) ); } StackDockProperty property = new StackDockProperty( index, placeholder ); children.getChild( id ).setLocation( property ); for( int i = 0, n = children.getSubChildCount( id ); i<n; i++ ){ DockLayoutInfo info = children.getSubChild( id, i ); info.setLocation( new StackDockProperty( index, info.getPlaceholder() ) ); } return null; } });
DockLayout<?> newLayout = new DockLayout<MultipleCDockable>( REPLACEMENT_FACTORY_ID, match ); DockLayoutInfo newInfo = new DockLayoutInfo( newLayout ); newInfo.setLocation( info.getLocation() ); info = newInfo;
DockLayout<?> newLayout = new DockLayout<MultipleCDockable>( REPLACEMENT_FACTORY_ID, match ); DockLayoutInfo newInfo = new DockLayoutInfo( newLayout ); newInfo.setLocation( info.getLocation() ); info = newInfo;
@Override public PlaceholderListItem<Dockable> convert( ConvertedPlaceholderListItem item ){ int id = item.getInt( "id" ); int index = item.getInt( "index" ); boolean hold = item.getBoolean( "hold" ); int size = item.getInt( "size" ); Path placeholder = null; if( item.contains( "placeholder" )){ placeholder = new Path( item.getString( "placeholder" ) ); } FlapDockProperty property = new FlapDockProperty( index, hold, size, placeholder ); children.getChild( id ).setLocation( property ); for( int i = 0, n = children.getSubChildCount( id ); i<n; i++ ){ DockLayoutInfo info = children.getSubChild( id, i ); info.setLocation( new FlapDockProperty( id, hold, size, info.getPlaceholder() ) ); } return null; } });
@Override public PlaceholderListItem<Dockable> convert( ConvertedPlaceholderListItem item ) { int id = item.getInt( "id" ); int x = item.getInt( "x" ); int y = item.getInt( "y" ); int width = item.getInt( "width" ); int height = item.getInt( "height" ); boolean fullscreen = item.getBoolean( "fullscreen" ); Path placeholder = null; if( item.contains( "placeholder" )){ placeholder = new Path( item.getString( "placeholder" ) ); } ScreenDockProperty property = new ScreenDockProperty( x, y, width, height, placeholder, fullscreen ); children.getChild( id ).setLocation( property ); for( int i = 0, n = children.getSubChildCount( id ); i<n; i++ ){ DockLayoutInfo info = children.getSubChild( id, i ); info.setLocation( new ScreenDockProperty( x, y, width, height, info.getPlaceholder(), fullscreen ) ); } return null; } });
Path placeholder = info.getPlaceholder(); if( placeholder != null ){ info.setLocation( new SplitDockPlaceholderProperty( placeholder, property ) ); info.setLocation( property ); placeholder = subInfo.getPlaceholder(); if( placeholder != null ){ subInfo.setLocation( new SplitDockPlaceholderProperty( placeholder, property ) );
if (info != null) { StackDockProperty property = new StackDockProperty( id, info.getPlaceholder() ); info.setLocation( property );
@Override public Dockable convert( ConvertedPlaceholderListItem item ){ int id = item.getInt( "id" ); int index = item.getInt( "index" ); Path placeholder = null; if( item.contains( "placeholder" )){ placeholder = new Path( item.getString( "placeholder" ) ); } children.setLocation( id, new ToolbarContainerProperty( index, placeholder ) ); for( int i = 0, n = children.getSubChildCount( id ); i<n; i++ ){ DockLayoutInfo info = children.getSubChild( id, i ); info.setLocation( new ToolbarContainerProperty( index, info.getPlaceholder() ) ); } return null; } });
if (info != null) { StackDockProperty property = new StackDockProperty( id, info.getPlaceholder() ); info.setLocation( property );
@Override public Dockable convert( ConvertedPlaceholderListItem item ){ int id = item.getInt( "id" ); int index = item.getInt( "index" ); Path placeholder = null; if( item.contains( "placeholder" )){ placeholder = new Path( item.getString( "placeholder" ) ); } children.setLocation( id, new ToolbarProperty( index, placeholder ) ); for( int i = 0, n = children.getSubChildCount( id ); i<n; i++ ){ DockLayoutInfo info = children.getSubChild( id, i ); info.setLocation( new ToolbarProperty( index, info.getPlaceholder() ) ); } return null; } });
info.setLocation( original.getLocation() );
if( info != null ){ FlapDockProperty property = new FlapDockProperty( i, holding[i], sizes[i], info.getPlaceholder() ); info.setLocation( property );
if( info != null ){ ScreenDockProperty property = new ScreenDockProperty( retro.x( i ), retro.y( i ), retro.width( i ), retro.height( i ), null ); info.setLocation( property );