@Override protected DockFactory<?,?,?> getFactory( String id ){ return DockSituation.this.getFactory( id ); } };
DockFactory<DockElement,?,Object> factory = (DockFactory<DockElement,?,Object>)getFactory( factoryId );
@Override public DockFactory<? extends DockElement,?,?> getFactory( String id ){ if( KNOWN.equals( id )) return factory; else return super.getFactory( id ); }
placeholder = new Path( xplaceholder.getString() ); DockFactory<DockElement,?,Object> factory = (DockFactory<DockElement,?,Object>)getFactory( factoryId ); if( factory != null ){ Object data = factory.read( element, intermediatePlaceholders );
@Override public DockFactory<? extends DockElement,?,?> getFactory( String id ){ if( KNOWN.equals( id )) return factory; else return super.getFactory( id ); }
DockFactory<DockElement,?,Object> factory = (DockFactory<DockElement,?,Object>)getFactory( layout.getFactoryID() ); if( factory == null ) throw new IOException( "Missing factory: " + layout.getFactoryID() );
DockFactory<DockElement,?,Object> factory = (DockFactory<DockElement,?,Object>)getFactory( id ); if( factory == null ) throw new IllegalArgumentException( "Unknown factory-id: " + element.getFactoryID() );
/** * 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(); }
return null; DockFactory<DockElement,?,Object> factory = (DockFactory<DockElement,?,Object>)getFactory( layout.getFactoryID() ); if( factory == null ) return null;
DockLayout<?> layout = info.getDataLayout(); DockFactory<DockElement,?,Object> factory = (DockFactory<DockElement,?,Object>)getFactory( layout.getFactoryID() ); if( factory == null ) throw new IllegalArgumentException( "Missing factory: " + layout.getFactoryID() );