Package bibliothek.util.xml

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


            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() );
            }
           
            XElement xproperties = xentry.addElement( "properties" );
            for( Map.Entry<Path, B> next : entry.properties.entrySet() ){
                XElement xproperty = xproperties.addElement( "property" );
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

                    }

                    XElement xlocation = xitem.getElement( "location" );
                    if( xlocation != null ){
                      XElement xcopy = xlocation.copy();
                      xcopy.addElement( "mode" ).setString( MaximizedMode.IDENTIFIER.toString() );
                      lastMaximizedLocation.put( key, getConverter().readPropertyXML( xcopy ) );
                    }
                }
            }
        }
View Full Code Here

                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

                    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.