Package bibliothek.util.xml

Examples of bibliothek.util.xml.XElement.addString()


     * element will not be changed.
     */
    public void writeXML( XElement element ){
        for( Map.Entry<String, ApplicationResource> resource : resources.entrySet() ){
            XElement xresource = element.addElement( "resource" );
            xresource.addString( "name", resource.getKey() );
            resource.getValue().writeXML( xresource );
        }
    }
   
    /**
 
View Full Code Here


     */
    public void writeXML( XElement element ){
      XElement delement = element.addElement( "dockables" );
      for( DockableEntry entry : dockables ){
            XElement xentry = delement.addElement( "entry" );
            xentry.addString( "id", entry.id );
            if( entry.current != null )
                xentry.addString( "current", entry.current.toString() );
           
            XElement xhistory = xentry.addElement( "history" );
            for( Path history : entry.history ){
View Full Code Here

      XElement delement = element.addElement( "dockables" );
      for( DockableEntry entry : dockables ){
            XElement xentry = delement.addElement( "entry" );
            xentry.addString( "id", entry.id );
            if( entry.current != null )
                xentry.addString( "current", entry.current.toString() );
           
            XElement xhistory = xentry.addElement( "history" );
            for( Path history : entry.history ){
                xhistory.addElement( "mode" ).setString( history.toString() );
            }
View Full Code Here

            }
           
            XElement xproperties = xentry.addElement( "properties" );
            for( Map.Entry<Path, B> next : entry.properties.entrySet() ){
                XElement xproperty = xproperties.addElement( "property" );
                xproperty.addString( "id", next.getKey().toString() );
                converter.writePropertyXML( next.getValue(), xproperty );
            }
        }
     
      XElement melement = element.addElement( "modes" );
View Full Code Here

        }
     
      XElement melement = element.addElement( "modes" );
      for( ModeSetting<A> mode : modes.values() ){
        XElement xmode = melement.addElement( "entry" );
        xmode.addString( "id", mode.getModeId().toString() );
        mode.write( xmode, converter );
      }
    }
   
    /**
 
View Full Code Here

        CDockablePerspective dockable = perspective.getDockable( key );
        Location location = getInvisibleLocation( dockable );
       
        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" ) );
          }
         
View Full Code Here

          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() );
          transformer.writeXML( location.getLocation(), xlocation );
        }
      }
     
View Full Code Here

            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() );
          transformer.writeXML( location.getLocation(), xlocation );
        }
      }
     
      // store more location information
View Full Code Here

    if( id != null ){
      element.addElement( "id" ).setString( id );
    }
    element.addElement( "root" ).setBoolean( layout.isRoot() );
   
    content.addString( "delegate", factoryId );
    element.addElement( content );
  }
 
  @SuppressWarnings("unchecked")
  public CommonDockStationLayout read( XElement element, PlaceholderStrategy placeholders ){
View Full Code Here

                Path mode = lastMaximizedMode.get( key );
                Location location = lastMaximizedLocation.get( key );

                if( mode != null || location != null ){
                    XElement xitem = xmaximized.addElement( "item" );
                    xitem.addString( "id", key );
                    if( mode != null ){
                        xitem.addElement( "mode" ).setString( mode.toString() );
                    }
                    if( location != null ){
                      converter.writePropertyXML( converter.convertToSetting( location ), xitem.addElement( "location" ) );
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.