gpt4 book ai didi

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

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

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

XElement.setBoolean介绍

暂无

代码示例

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

public void writeXML( Boolean value, XElement element ){
    element.setBoolean( value );
  }
};

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

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

out.setBoolean( (Boolean)value );

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

@SuppressWarnings("unchecked")
public void write( CommonDockStationLayout layout, XElement element ){
  String factoryId = layout.getFactoryId();
  DockFactory<DockElement, ?, Object> factory = (DockFactory<DockElement, ?, Object>)control.intern().getDockFactory( factoryId );
  XElement content = layout.getLayoutXML();
  if( content == null ){
    layout.updateLayout( factory, null );
    DockLayout<?> data = layout.getLayout();
    if( data == null ){
      throw new XException( "data are null, but data were just updated" );
    }
    content = new XElement("content");
    factory.write( data.getData(), content );
  }
  
  String id = layout.getId();
  if( id != null ){
    element.addElement( "id" ).setString( id );
  }
  element.addElement( "root" ).setBoolean( layout.isRoot() );
  
  content.addString( "delegate", factoryId );
  element.addElement( content );
}

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

@SuppressWarnings("unchecked")
public void write( CommonDockStationLayout layout, XElement element ){
  String factoryId = layout.getFactoryId();
  DockFactory<DockElement, ?, Object> factory = (DockFactory<DockElement, ?, Object>)control.intern().getDockFactory( factoryId );
  XElement content = layout.getLayoutXML();
  if( content == null ){
    layout.updateLayout( factory, null );
    DockLayout<?> data = layout.getLayout();
    if( data == null ){
      throw new XException( "data are null, but data were just updated" );
    }
    content = new XElement("content");
    factory.write( data.getData(), content );
  }
  
  String id = layout.getId();
  if( id != null ){
    element.addElement( "id" ).setString( id );
  }
  element.addElement( "root" ).setBoolean( layout.isRoot() );
  
  content.addString( "delegate", factoryId );
  element.addElement( content );
}

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