public void write( SplitDockStationLayout layout, DataOutputStream out ) throws IOException { Version.write( out, Version.VERSION_1_1_0 ); SplitDockStationLayout.Entry root = layout.getRoot(); if( root == null ){ out.writeBoolean( false ); } else{ out.writeBoolean( true ); writeEntry( root, out ); } out.writeInt( layout.getFullscreen() ); out.writeBoolean( layout.hasFullscreenAction() ); }
out.writeInt( node.getOrientation().ordinal() ); out.writeDouble( node.getDivider() ); writeEntry( node.getChildA(), out ); writeEntry( node.getChildB(), out );
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 ); } }
xchild.addString( "orientation", entry.asNode().getOrientation().name() ); xchild.addDouble( "divider", entry.asNode().getDivider() ); writeEntry( entry.asNode().getChildA(), xchild ); writeEntry( entry.asNode().getChildB(), xchild );