gpt4 book ai didi

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

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

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

XElement.setInt介绍

暂无

代码示例

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

public void writeXML( Integer value, XElement element ) {
    element.setInt( value );
  }
};

代码示例来源: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() );
  }
}

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

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

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

/**
 * Writes the contents of this map into <code>out</code>.
 * @param out the element to fill, its attributes will not be modified
 */
public void write( XElement out ){
  out.addElement( "version" ).setInt( version );
  out.addElement( "format" ).setString( format.toString() );
  
  for( Map.Entry<Key, Map<String, Object>> entry : data.entrySet() ){
    XElement xplaceholder = out.addElement( "entry" );
    ((PlaceholderKey)entry.getKey()).write( xplaceholder.addElement( "key" ) );
    Map<String, Object> map = entry.getValue();
    for( Map.Entry<String, Object> mapEntry : map.entrySet() ){
      XElement xitem = xplaceholder.addElement( "item" );
      xitem.addString( "key", mapEntry.getKey() );
      write( mapEntry.getValue(), xitem );
    }
  }
}

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

public void write( StackDockStationLayout layout, XElement element ){
  if (layout.getSelected() >= 0)
    element.addElement( "selected" ).setInt( layout.getSelected() );
  if( layout instanceof RetroStackDockStationLayout ){
    RetroStackDockStationLayout retroLayout = (RetroStackDockStationLayout)layout;
    XElement xchildren = element.addElement( "children" );
    for (int i : retroLayout.getChildren()) {
      xchildren.addElement( "child" ).addInt( "id", i );
    }
  }
  else{
    layout.getPlaceholders().write( element.addElement( "placeholders" ) );
  }
}

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

public void write( StackDockStationLayout layout, XElement element ){
  if (layout.getSelected() >= 0)
    element.addElement( "selected" ).setInt( layout.getSelected() );
  if( layout instanceof RetroStackDockStationLayout ){
    RetroStackDockStationLayout retroLayout = (RetroStackDockStationLayout)layout;
    XElement xchildren = element.addElement( "children" );
    for (int i : retroLayout.getChildren()) {
      xchildren.addElement( "child" ).addInt( "id", i );
    }
  }
  else{
    layout.getPlaceholders().write( element.addElement( "placeholders" ) );
  }
}

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

out.setInt( (Integer)value );

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