Package bibliothek.gui.dock.perspective

Examples of bibliothek.gui.dock.perspective.Perspective.convert()


     
      Map<String, DockLayoutComposition> stations = new HashMap<String, DockLayoutComposition>();
      for( String key : perspective.getStationKeys() ){
        CStationPerspective station = perspective.getStation( key );
        if( station.asDockable() == null || station.asDockable().getParent() == null ){
          stations.put( key, conversion.convert( station.intern() ));
        }
      }
     
      conversion.getSituation().writeCompositionsXML( stations, root.addElement( "stations" ) );
     
View Full Code Here


        if( location != null ){
          XElement xdockable = xinvisible.addElement( "dockable" );
        xdockable.addString( "key", key );
       
          if( dockable.getParent() == null ){
            conversion.getSituation().writeCompositionXML( conversion.convert( dockable.intern() ), xdockable.addElement( "content" ) );
          }
         
          XElement xlocation = xdockable.addElement( "location" );
          xlocation.addString( "root", location.getRoot() );
          xlocation.addString( "mode", dockable.getLocationHistory().getLastMode().getModeIdentifier().toString() );
View Full Code Here

      Perspective conversion = frontend.getPerspective();
     
      Map<String, DockLayoutComposition> stations = new HashMap<String, DockLayoutComposition>();
      for( String key : perspective.getStationKeys() ){
        CStationPerspective station = perspective.getStation( key );
        stations.put( key, conversion.convert( station.intern() ));
      }
     
      conversion.getSituation().writeCompositions( stations, out );
     
      // Store the last location of all known elements
View Full Code Here

          out.writeBoolean( true );
          out.writeUTF( key );
         
          if( dockable.getParent() == null ){
            out.writeBoolean( true );
            conversion.getSituation().writeComposition( conversion.convert( dockable.intern() ), out );
          }
          else{
            out.writeBoolean( false );
          }
         
View Full Code Here

     
      Map<String, DockLayoutComposition> stations = conversion.getSituation().readCompositionsXML( xstations );
      factory.setStations( stations );
     
      for( DockLayoutComposition composition : stations.values() ){
        PerspectiveElement station = conversion.convert( composition );
        if( station instanceof CommonElementPerspective ){
          CStationPerspective stationPerspective = ((CommonElementPerspective)station).getElement().asStation();
          if( stationPerspective != null ){
            perspective.addStation( stationPerspective );
          }
View Full Code Here

          String key = xdockable.getString( "key" );
          CDockablePerspective dockable = perspective.getDockable( key );
          if( dockable == null ){
            XElement xcontent = xdockable.getElement( "content" );
            if( xcontent != null ){
              PerspectiveElement element = conversion.convert( conversion.getSituation().readCompositionXML( xcontent ) );
                if( element instanceof CommonElementPerspective ){
                  dockable = ((CommonElementPerspective)element).getElement().asDockable();
                  if( dockable != null ){
                    perspective.putDockable( dockable );
                  }
View Full Code Here

     
      Map<String, DockLayoutComposition> stations = conversion.getSituation().readCompositions( in );
      factory.setStations( stations );
     
      for( DockLayoutComposition composition : stations.values() ){
        PerspectiveElement station = conversion.convert( composition );
        if( station instanceof CommonElementPerspective ){
          CStationPerspective stationPerspective = ((CommonElementPerspective)station).getElement().asStation();
          if( stationPerspective != null ){
            perspective.addStation( stationPerspective );
          }
View Full Code Here

               composition = conversion.getSituation().readComposition( in );
            }
           
            CDockablePerspective dockable = perspective.getDockable( key );
            if( dockable == null && composition != null ){
              PerspectiveElement element = conversion.convert( composition );
                if( element instanceof CommonElementPerspective ){
                  dockable = ((CommonElementPerspective)element).getElement().asDockable();
                  if( dockable != null ){
                    perspective.putDockable( dockable );
                  }
View Full Code Here

     
      // layout
      for( String key : perspective.getStationKeys() ){
        CStationPerspective station = perspective.getStation( key );
        if( station.asDockable() == null || station.asDockable().getParent() == null ){
          setting.putRoot( key, conversion.convert( station.intern() ) );
        }
      }
     
      // invisible items (storing location of visible items as well)
      for( String key : perspective.getDockableKeys() ){
View Full Code Here

      }
     
      factory.setStations( stations );
     
      for( DockLayoutComposition composition : stations.values() ){
        PerspectiveElement station = conversion.convert( composition );
        if( station instanceof CommonElementPerspective ){
          CStationPerspective stationPerspective = ((CommonElementPerspective)station).getElement().asStation();
          if( stationPerspective != null ){
            cperspective.addStation( stationPerspective );
          }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.