/** * Gets the id of <code>factory</code>. The default behavior is just to * return {@link DockFactory#getID()}. Note that this method should be * a bijection to {@link #getAdjacentFactory(String)}. * @param factory the factory whose id is needed * @return the id of the factory */ protected String getAdjacentID( AdjacentDockFactory<?> factory ){ return factory.getID(); }
if( adjacent.interested( element )){ data = adjacent.getPerspectiveLayout( element, ids ); if( data != null ){ layout = new DockLayout<Object>( adjacent.getID(), data ); if( adjacentLayouts == null ){ adjacentLayouts = new ArrayList<DockLayout<?>>();
if( adjacentFactory.interested( element )){ Object adjacentData = adjacentFactory.getLayout( element, ids ); if( adjacent == null ){ adjacent = new ArrayList<DockLayout<?>>();
Object data = adjacentFactory.read( din, intermediatePlaceholders ); if( data != null ){ adjacentLayouts.add( new DockLayout<Object>( adjacentFactoryId, data ) );
adjacentFactory.write( adjacentLayout.getData(), adjacentOut ); adjacentOut.close();
if( adjacent.interested( element )){ data = adjacent.getPerspectiveLayout( element, ids ); if( data != null ){ layout = new DockLayout<Object>( adjacent.getID(), data ); if( adjacentLayouts == null ){ adjacentLayouts = new ArrayList<DockLayout<?>>();
AdjacentDockFactory<Object> adjacentFactory = (AdjacentDockFactory<Object>)getAdjacentFactory( factoryId ); if( adjacentFactory != null ){ Object data = adjacentFactory.read( xlayout, intermediatePlaceholders ); if( data != null ){ adjacentLayouts.add( new DockLayout<Object>( factoryId, data ));
adjacentFactory.write( adjacentLayout.getData(), xlayout );