gpt4 book ai didi

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

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

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

XElement.setString介绍

暂无

代码示例

代码示例来源: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-core

public void write( XElement out ){
  out.addBoolean( "shared", shared );
  
  if( anchor != null ){
    out.addElement( "anchor" ).setString( anchor );
  }
  
  for( Path placeholder : placeholders ){
    out.addElement( "placeholder" ).setString( placeholder.toString() );
  }
}

代码示例来源:origin: xyz.cofe/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 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-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-ext-toolbar

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

代码示例来源: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 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 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: xyz.cofe/docking-frames-core

public void store( XElement element ) {
  if( index >= 0 ){
    element.addElement( "index" ).setInt( index );
  }
  
  if( placeholder != null ){
    element.addElement( "placeholder" ).setString( placeholder.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-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-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-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: xyz.cofe/docking-frames-core

public void store( XElement element ) {
  element.addElement( "x" ).setInt( x );
  element.addElement( "y" ).setInt( y );
  element.addElement( "width" ).setInt( width );
  element.addElement( "height" ).setInt( height );
  element.addElement( "fullscreen" ).setBoolean( fullscreen );
  if( placeholder != null ){
    element.addElement( "placeholder" ).setString( placeholder.toString() );
  }
}

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