gpt4 book ai didi

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

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

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

XElement.addBoolean介绍

[英]Adds a new attribute to this entry.
[中]将新属性添加到此条目。

代码示例

代码示例来源:origin: org.orbisgis/orbisgis-view

@Override
public XElement addBoolean(String name, boolean value) {
    return new XElementImpl(intern.addBoolean(name,value));
}

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

public void write( FlapDockStationLayout layout, XElement element ) {
  if( layout instanceof RetroFlapDockStationLayout ){
    RetroFlapDockStationLayout retroLayout = (RetroFlapDockStationLayout)layout;
    XElement window = element.addElement( "window" );
    window.addBoolean( "auto", layout.isAutoDirection() );
    window.addString( "direction", layout.getDirection().name() );
    XElement children = element.addElement( "children" );
    for( int i = 0, n = retroLayout.getChildren().length; i<n; i++ ){
      XElement child = children.addElement( "child" );
      child.addInt( "id", retroLayout.getChildren()[i] );
      child.addBoolean( "hold", retroLayout.getHolds()[i] );
      child.addInt( "size", retroLayout.getSizes()[i] );
    }
  }
  else{
    XElement window = element.addElement( "window" );
    window.addBoolean( "auto", layout.isAutoDirection() );
    window.addString( "direction", layout.getDirection().name() );
    XElement children = element.addElement( "placeholders" );
    layout.getPlaceholders().write( children );
  }
}

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

xchild.addBoolean( "location", false );
xchild.addBoolean( "location", true );
transformer.writeXML( getInvisibleLocation( i ), xchild.addElement( "location" ) );

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

xchild.addBoolean( "location", false );
xchild.addBoolean( "location", true );
transformer.writeXML( getInvisibleLocation( i ), xchild.addElement( "location" ) );

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

xchildren.addBoolean( "ignore", composition.isIgnoreChildren() );

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

xlocation.addString( "root", location.getRoot() );
xlocation.addString( "mode", dockable.getLocationHistory().getLastMode().getModeIdentifier().toString() );
xlocation.addBoolean( "applicationDefined", location.isApplicationDefined() );
transformer.writeXML( location.getLocation(), xlocation );

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