Package bibliothek.gui.dock.common.intern

Examples of bibliothek.gui.dock.common.intern.CommonMultipleDockableFactory


      PerspectiveElementFactory factory = new PerspectiveElementFactory( perspective );
      DockFrontendPerspective frontend = wrap( perspective, includeWorkingAreas, factory );
      Perspective conversion = frontend.getPerspective();
     
      for( Map.Entry<String, MultipleCDockableFactory<?, ?>> item : control.getRegister().getFactories().entrySet() ){
        conversion.getSituation().add( new CommonMultipleDockableFactory( item.getKey(), item.getValue(), control, perspective ) );
      }
     
      XElement xstations = root.getElement( "stations" );
      if( xstations == null ){
        throw new XException( "missing element 'stations'" );
View Full Code Here


      PerspectiveElementFactory factory = new PerspectiveElementFactory( perspective );
      DockFrontendPerspective frontend = wrap( perspective, includeWorkingAreas, factory );
      Perspective conversion = frontend.getPerspective();
     
      for( Map.Entry<String, MultipleCDockableFactory<?, ?>> item : control.getRegister().getFactories().entrySet() ){
        conversion.getSituation().add( new CommonMultipleDockableFactory( item.getKey(), item.getValue(), control, perspective ) );
      }
     
      Map<String, DockLayoutComposition> stations = conversion.getSituation().readCompositions( in );
      factory.setStations( stations );
     
View Full Code Here

      PerspectiveElementFactory factory = new PerspectiveElementFactory( cperspective );
      DockFrontendPerspective frontend = wrap( cperspective, includeWorkingAreas, factory );
      Perspective conversion = frontend.getPerspective();
     
      for( Map.Entry<String, MultipleCDockableFactory<?, ?>> item : control.getRegister().getFactories().entrySet() ){
        conversion.getSituation().add( new CommonMultipleDockableFactory( item.getKey(), item.getValue(), control, cperspective ) );
      }
     
      // registered dockables
      Map<String, DockLayoutComposition> stations = new HashMap<String, DockLayoutComposition>();
      for( String root : setting.getRootKeys() ){
View Full Code Here

    public DockFrontendPerspective conversion( CPerspective perspective, boolean includeWorkingAreas ){
      DockFrontendPerspective conversion = wrap( perspective, includeWorkingAreas );
      DockSituation situation = conversion.getPerspective().getSituation();
     
      for( Map.Entry<String, MultipleCDockableFactory<?, ?>> item : control.getRegister().getFactories().entrySet() ){
        situation.add( new CommonMultipleDockableFactory( item.getKey(), item.getValue(), control, perspective ) );
      }
     
      return conversion;
    }
View Full Code Here

        if( access.getFactoryId( factory ) != null ){
            throw new IllegalArgumentException( "this factory-object is already in use and cannot be added a second time" );
        }

        CommonMultipleDockableFactory cfactory = new CommonMultipleDockableFactory( id, factory, access );

        register.putCommonMultipleDockableFactory( id, cfactory );
        frontend.registerFactory( cfactory );
    }
View Full Code Here

     * use that factory are removed as well. Nothing happens if there is no
     * factory registered with <code>id</code>.
     * @param id the identifier of the factory to remove
     */
    public void removeMultipleDockableFactory( String id ){
        CommonMultipleDockableFactory factory = register.removeCommonMultipleDockableFactory( id );
        if( factory != null ){
            frontend.unregisterFactory( factory );

            List<MultipleCDockable> toRemove = new ArrayList<MultipleCDockable>();
            for( MultipleCDockable dockable : register.getMultipleDockables() ){
                if( dockable.getFactory() == factory.getFactory() ){
                    toRemove.add( dockable );
                }
            }

            for( MultipleCDockable dockable : toRemove ){
View Full Code Here

TOP

Related Classes of bibliothek.gui.dock.common.intern.CommonMultipleDockableFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.