DockLayoutInfo info = composition.getLayout(); if( info != null ){ DockLayout<?> layout = info.getDataLayout(); List<DockLayoutComposition> oldChildren = composition.getChildren(); List<DockLayoutComposition> newChildren = new ArrayList<DockLayoutComposition>( oldChildren.size() ); return new DockLayoutComposition( info, composition.getAdjacent(), newChildren, composition.isIgnoreChildren() );
private void listEstimatedLocations( DockLayoutComposition composition, boolean missingOnly, Map<String, DockableProperty> map ){ DockableProperty location = composition.getLayout().getLocation(); if( location != null ){ String key = getKey( composition, missingOnly ); if( key != null){ map.put( key, location ); } } List<DockLayoutComposition> children = composition.getChildren(); if( children != null ){ for( DockLayoutComposition child : children ){ listEstimatedLocations( child, missingOnly, map ); } } }
@SuppressWarnings("unchecked") private <D extends DockElement> void listVisible( final Collection<D> base, DockLayoutComposition composition, final Set<D> result ){ DockLayoutInfo info = composition.getLayout(); if( info.getKind() == DockLayoutInfo.Data.DOCK_LAYOUT ){ DockLayout<?> layout = info.getDataLayout(); result.add( (D)element ); if( composition.isIgnoreChildren() ){ DockUtilities.visit( element, new DockUtilities.DockVisitor(){ @Override for( DockLayoutComposition child : composition.getChildren() ){ listVisible( base, child, result );
public DockLayoutInfo getSubChild( int childIndex, int subChildIndex ){ return root.children.get( childIndex ).leafs.get( subChildIndex ).composition.getLayout(); }
private void listLayouts( DockLayoutComposition composition, boolean missingOnly, Map<String, DockLayoutComposition> map ){ String key = getKey( composition, missingOnly ); if( key != null){ map.put( key, composition ); } List<DockLayoutComposition> children = composition.getChildren(); if( children != null ){ for( DockLayoutComposition child : children ){ listLayouts( child, missingOnly, map ); } } }
return new DockLayoutComposition( info, adjacentLayouts, children, ignore );
DockLayout<Path> layout = (DockLayout<Path>)root.getAdjacent( RootStationAdjacentFactory.FACTORY_ID ); if( layout != null){ stationType = layout.getData();
@SuppressWarnings("unchecked") private <D extends DockElement> void listVisible( final Collection<D> base, DockLayoutComposition composition, final Set<D> result ){ DockLayoutInfo info = composition.getLayout(); if( info.getKind() == DockLayoutInfo.Data.DOCK_LAYOUT ){ DockLayout<?> layout = info.getDataLayout(); result.add( (D)element ); if( composition.isIgnoreChildren() ){ DockUtilities.visit( element, new DockUtilities.DockVisitor(){ @Override for( DockLayoutComposition child : composition.getChildren() ){ listVisible( base, child, result );
private void listEstimatedLocations( DockLayoutComposition composition, boolean missingOnly, Map<String, DockableProperty> map ){ DockableProperty location = composition.getLayout().getLocation(); if( location != null ){ String key = getKey( composition, missingOnly ); if( key != null){ map.put( key, location ); } } List<DockLayoutComposition> children = composition.getChildren(); if( children != null ){ for( DockLayoutComposition child : children ){ listEstimatedLocations( child, missingOnly, map ); } } }
public DockableProperty validLocation(){ DockableProperty location = composition.getLayout().getLocation(); if( location != oldLocation ){ return location; } return null; } }
private void listLayouts( DockLayoutComposition composition, boolean missingOnly, Map<String, DockLayoutComposition> map ){ String key = getKey( composition, missingOnly ); if( key != null){ map.put( key, composition ); } List<DockLayoutComposition> children = composition.getChildren(); if( children != null ){ for( DockLayoutComposition child : children ){ listLayouts( child, missingOnly, map ); } } }
return new DockLayoutComposition( info, adjacent, children, ignore );
DockLayout<Path> layout = (DockLayout<Path>)root.getAdjacent( RootStationAdjacentFactory.FACTORY_ID ); if( layout != null){ stationType = layout.getData();
DockLayoutInfo info = composition.getLayout(); if( info != null ){ DockLayout<?> layout = info.getDataLayout(); List<DockLayoutComposition> oldChildren = composition.getChildren(); List<DockLayoutComposition> newChildren = new ArrayList<DockLayoutComposition>( oldChildren.size() ); return new DockLayoutComposition( info, composition.getAdjacent(), newChildren, composition.isIgnoreChildren() );
DockLayoutInfo info = composition.getLayout(); if( info == null ) return null; if( composition.isIgnoreChildren() ){ for( DockLayoutComposition childComposition : composition.getChildren() ){ convert( childComposition ); int index = 0; for( DockLayoutComposition childComposition : composition.getChildren() ){ PerspectiveElement child = convert( childComposition ); if( child != null ){
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 DockLayoutInfo getChild( int childIndex ){ if( childIndex < 0 || childIndex >= getChildCount() ){ return null; } return root.children.get( childIndex ).composition.getLayout(); }
public Node( DockLayoutComposition composition, boolean collectLeafs ){ if( collectLeafs ){ leafs = new ArrayList<Node>(); } else{ leafs = null; } this.composition = composition; for( DockLayoutComposition child : composition.getChildren() ){ Node childNode = new Node( child, true ); children.add( childNode ); if( collectLeafs ){ if( childNode.isLeaf() ){ leafs.add( childNode ); } else{ leafs.addAll( childNode.leafs ); } } } }
return new DockLayoutComposition( layout, adjacentLayouts, children, ignore );
DockLayoutInfo info = composition.getLayout(); List<DockLayout<?>> adjacentLayouts = composition.getAdjacent(); if( adjacentLayouts == null ){ out.writeInt( 0 ); out.writeBoolean( composition.isIgnoreChildren() ); List<DockLayoutComposition> children = composition.getChildren(); out.writeInt( children.size() ); for( DockLayoutComposition child : children ){