gpt4 book ai didi

bibliothek.util.xml.XElement.addElement()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-19 05:48:40 26 4
gpt4 key购买 nike

本文整理了Java中bibliothek.util.xml.XElement.addElement()方法的一些代码示例,展示了XElement.addElement()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XElement.addElement()方法的具体详情如下:
包路径:bibliothek.util.xml.XElement
类名称:XElement
方法名:addElement

XElement.addElement介绍

[英]Adds a new element to this element.
[中]将新元素添加到此元素。

代码示例

代码示例来源:origin: xyz.cofe/docking-frames-common

@Override
public void writeXML( DockSituation situation, PropertyTransformer transformer, boolean entry, XElement element ) {
  super.writeXML( situation, transformer, entry, element.addElement( "base" ) );
  modes.writeXML( element.addElement( "modes" ) );
}

代码示例来源:origin: org.opentcs.thirdparty.dockingframes/docking-frames-common

@Override
public void writeXML( DockSituation situation, PropertyTransformer transformer, boolean entry, XElement element ) {
  super.writeXML( situation, transformer, entry, element.addElement( "base" ) );
  modes.writeXML( element.addElement( "modes" ) );
}

代码示例来源:origin: xyz.cofe/docking-frames-core

/**
 * Creates and adds a new element.
 * @param name the name of the new element
 * @return the new element
 */
public XElement addElement( String name ){
  XElement element = new XElement( name );
  addElement( element );
  return element;
}

代码示例来源:origin: xyz.cofe/docking-frames-core

public void store( XElement element ){
  element.addElement( "placeholder" ).setString( placeholder.toString() );
  if( backup instanceof SplitDockProperty ){
    backup.store( element.addElement( "backup-location" ) );
  }
  else if( backup instanceof SplitDockPathProperty ){
    backup.store( element.addElement( "backup-path" ) );
  }
}

代码示例来源:origin: xyz.cofe/docking-frames-core

public void store( XElement element ) {
  // element.setInt( index );
  element.addElement( "index" ).setInt( index );
  element.addElement( "holding" ).setBoolean( holding );
  if( size >= 0 ){
    element.addElement( "size" ).setInt( size );
  }
  if( placeholder != null ){
    element.addElement( "placeholder" ).setString( placeholder.toString() );
  }
}

代码示例来源:origin: org.opentcs.thirdparty.dockingframes/docking-frames-common

/**
 * Writes the content of this manager in xml format.
 * @param element the element to write into, the attributes of this
 * 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 );
  }
}

代码示例来源:origin: xyz.cofe/docking-frames-ext-toolbar

@Override
public void store( XElement element ){
  element.addElement("index").setInt(index);
  if (placeholder != null){
    element.addElement("placeholder").setString(placeholder.toString());
  }
}

代码示例来源:origin: xyz.cofe/docking-frames-ext-toolbar

@Override
public void store( XElement element ){
  element.addElement("index").setInt(index);
  if (placeholder != null){
    element.addElement("placeholder").setString(placeholder.toString());
  }
}

代码示例来源:origin: xyz.cofe/docking-frames-common

public void writeXML( XElement element ) {
    String key = getSelectedKey();
    if( key != null ){
      element.addElement( "key" ).setString( key );
    }
  }                
});

代码示例来源:origin: org.opentcs.thirdparty.dockingframes/docking-frames-common

public void writeXML( XElement element ) {
    String key = getSelectedKey();
    if( key != null ){
      element.addElement( "key" ).setString( key );
    }
  }                
});

代码示例来源:origin: org.opentcs.thirdparty.dockingframes/docking-frames-common

public void write( Path layout, XElement element ){
    if( layout != null ){
      element.addElement( "type" ).setString( layout.toString() );
    }
  }
}

代码示例来源:origin: xyz.cofe/docking-frames-common

public void writePropertyXML( Location b, XElement element ) {
  element.addElement( "mode" ).setString( b.getMode().toString() );
  element.addElement( "root" ).setString( b.getRoot() );
  element.addElement( "applicationDefined" ).setBoolean( b.isApplicationDefined() );
  transformer.writeXML( b.getLocation(), element.addElement( "location" ) );
}

代码示例来源:origin: xyz.cofe/docking-frames-common

public void write( CommonMultipleDockableLayout layout, XElement element ) {
    element.addElement( "id" ).setString( layout.getId() );
    if( layout.getArea() != null )
      element.addElement( "area" ).setString( layout.getArea() );
    layout.getLayout().writeXML( element.addElement( "multiple" ) );
  }
}

代码示例来源:origin: org.opentcs.thirdparty.dockingframes/docking-frames-common

public void writePropertyXML( Location b, XElement element ) {
  element.addElement( "mode" ).setString( b.getMode().toString() );
  element.addElement( "root" ).setString( b.getRoot() );
  transformer.writeXML( b.getLocation(), element.addElement( "location" ) );
}

代码示例来源:origin: org.opentcs.thirdparty.dockingframes/docking-frames-common

public void write( CommonMultipleDockableLayout layout, XElement element ) {
    element.addElement( "id" ).setString( layout.getId() );
    if( layout.getArea() != null )
      element.addElement( "area" ).setString( layout.getArea() );
    layout.getLayout().writeXML( element.addElement( "multiple" ) );
  }
}

代码示例来源:origin: xyz.cofe/docking-frames-ext-toolbar

@Override
public void write( ToolbarGroupDockStationLayout layout, XElement element ){
  final XElement xplaceholders = element.addElement( "placeholders" );
  layout.getPlaceholders().write( xplaceholders );
  element.addElement( "expanded" ).setString( layout.getState().name() );
}

代码示例来源:origin: xyz.cofe/docking-frames-ext-toolbar

@Override
public void write( ToolbarDockStationLayout layout, XElement element ){
  final XElement xplaceholders = element.addElement( "placeholders" );
  layout.getPlaceholders().write( xplaceholders );
  element.addElement( "expanded" ).setString( layout.getState().name() );
}

代码示例来源:origin: xyz.cofe/docking-frames-common

public void write( CommonSingleDockableLayout layout, XElement element ) {
  element.addElement( "id" ).setString( layout.getId() );
  XElement xarea = element.addElement( "area" );
  if( layout.getArea() != null ){
    xarea.setString( layout.getArea() );
  }
}

代码示例来源:origin: org.opentcs.thirdparty.dockingframes/docking-frames-common

/**
 * Writes which {@link LookAndFeel} is currently used.
 * @param element the element to write into, the attributes of
 * <code>element</code> will not be changed.
 */
public void writeXML( XElement element ){
  element.addElement( "key" ).setString( keyOfFull( getLookAndFeel() ) );
}

代码示例来源:origin: xyz.cofe/docking-frames-core

public void write( SplitDockStationLayout layout, XElement element ) {
  if( layout.getFullscreen() != -1 ){
    element.addElement( "fullscreen" ).addInt( "id", layout.getFullscreen() );
  }
  
  element.addElement( "fullscreen-action" ).setBoolean( layout.hasFullscreenAction() );
  
  if( layout.getRoot() != null ){
    writeEntry( layout.getRoot(), element );
  }
}

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com