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 ); } } }
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 ); } } }
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 ); } } } }
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 ); } } }
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 ); } } }
private void findVisible( Set<Dockable> visible, DockLayoutComposition layout ){ DockLayoutInfo info = layout.getLayout(); if( info != null ){ DockLayout<?> data = info.getDataLayout(); if( data != null ){ if( REPLACEMENT_FACTORY_ID.equals( data.getFactoryID() )){ CDockable dockable = (CDockable)data.getData(); visible.add( dockable.intern() ); } } } for( DockLayoutComposition child : layout.getChildren() ){ findVisible( visible, child ); } }
private void findVisible( Set<Dockable> visible, DockLayoutComposition layout ){ DockLayoutInfo info = layout.getLayout(); if( info != null ){ DockLayout<?> data = info.getDataLayout(); if( data != null ){ if( REPLACEMENT_FACTORY_ID.equals( data.getFactoryID() )){ CDockable dockable = (CDockable)data.getData(); visible.add( dockable.intern() ); } } } for( DockLayoutComposition child : layout.getChildren() ){ findVisible( visible, child ); } }
List<DockLayoutComposition> children = current.getChildren(); if( children != null ){ for( DockLayoutComposition child : children ){
List<DockLayoutComposition> children = current.getChildren(); if( children != null ){ for( DockLayoutComposition child : children ){
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 ); } }
for( DockLayoutComposition child : composition.getChildren() ){ listVisible( base, child, result );
for( DockLayoutComposition child : composition.getChildren() ){ listVisible( base, child, result );
List<DockLayoutComposition> oldChildren = composition.getChildren(); List<DockLayoutComposition> newChildren = new ArrayList<DockLayoutComposition>( oldChildren.size() );
for( DockLayoutComposition childComposition : composition.getChildren() ){ convert( childComposition ); int index = 0; for( DockLayoutComposition childComposition : composition.getChildren() ){ PerspectiveElement child = convert( childComposition ); if( child != null ){
for( DockLayoutComposition childComposition : composition.getChildren() ){ convert( childComposition ); int index = 0; for( DockLayoutComposition childComposition : composition.getChildren() ){ PerspectiveElement child = convert( childComposition ); if( child != null ){
List<DockLayoutComposition> oldChildren = composition.getChildren(); List<DockLayoutComposition> newChildren = new ArrayList<DockLayoutComposition>( oldChildren.size() );
/** * Recursively tries to estimate the locations of all {@link DockLayoutInfo}s that can * be found in <code>map</code>.<br> * <b>Note:</b> this method does <i>not</i> call {@link DefaultLocationEstimationMap#finish()}. * @param map the root of the tree for which locations need to be estimated */ @SuppressWarnings("unchecked") protected void estimateLocations( DefaultLocationEstimationMap map ){ DockLayoutComposition composition = map.getRoot(); List<DockLayoutComposition> children = composition.getChildren(); if( children == null || children.size() == 0 ){ return; } DockLayout<Object> layout = (DockLayout<Object>)composition.getLayout().getDataLayout(); if( layout == null ){ return; } DockFactory<DockElement,?,Object> factory = (DockFactory<DockElement,?,Object>)getFactory( layout.getFactoryID() ); if( factory == null ){ return; } for( int i = 0, n = map.getChildCount(); i<n; i++ ){ estimateLocations( map.subMap( i ) ); } map.prepare(); factory.estimateLocations( layout.getData(), map ); map.finish(); }
List<DockLayoutComposition> children = composition.getChildren(); List<DockLayoutComposition> newChildren;
List<DockLayoutComposition> children = composition.getChildren(); if( children != null ){ for( DockLayoutComposition child : children ){
xchildren.addBoolean( "ignore", composition.isIgnoreChildren() ); for( DockLayoutComposition child : composition.getChildren() ){ XElement xchild = xchildren.addElement( "child" ); writeCompositionXML( child, xchild );