Package nl.lxtreme.ols.util.ExportUtils.HtmlExporter

Examples of nl.lxtreme.ols.util.ExportUtils.HtmlExporter.Element.addChild()


    aExporter.addCssStyle( ".w8 { width: 8%; } " );
    aExporter.addCssStyle( ".w7 { width: 7%; } " );

    final Element body = aExporter.getBody();
    body.addChild( H1 ).addContent( "DMX512 Analysis results" );
    body.addChild( HR );
    body.addChild( DIV ).addAttribute( "class", "date" ).addContent( "Generated: ", "{date-now}" );

    Element table, tr, thead, tbody;

    table = body.addChild( TABLE ).addAttribute( "class", "w100" );
View Full Code Here


    aExporter.addCssStyle( ".w7 { width: 7%; } " );

    final Element body = aExporter.getBody();
    body.addChild( H1 ).addContent( "DMX512 Analysis results" );
    body.addChild( HR );
    body.addChild( DIV ).addAttribute( "class", "date" ).addContent( "Generated: ", "{date-now}" );

    Element table, tr, thead, tbody;

    table = body.addChild( TABLE ).addAttribute( "class", "w100" );
View Full Code Here

    Element table, tr, thead, tbody;

    table = body.addChild( TABLE ).addAttribute( "class", "w100" );

    tbody = table.addChild( TBODY );
    tr = tbody.addChild( TR );
    tr.addChild( TH ).addAttribute( "colspan", "2" ).addContent( "Statistics" );
    tr = tbody.addChild( TR );
    tr.addChild( TD ).addAttribute( "class", "w30" ).addContent( "Decoded bytes" );
    tr.addChild( TD ).addContent( "{decoded-bytes}" );
View Full Code Here

    tr = tbody.addChild( TR );
    tr.addChild( TD ).addAttribute( "class", "w30" ).addContent( "Number of slots" );
    tr.addChild( TD ).addContent( "{slot-count}" );

    table = body.addChild( TABLE ).addAttribute( "class", "w100" );
    thead = table.addChild( THEAD );
    tr = thead.addChild( TR );
    tr.addChild( TH ).addAttribute( "class", "w30" ).addAttribute( "colspan", "2" );
    tr.addChild( TH ).addAttribute( "class", "w35" ).addAttribute( "colspan", "4" ).addContent( "Data" );
    tr = thead.addChild( TR );
    tr.addChild( TH ).addAttribute( "class", "w15" ).addContent( "Index" );
View Full Code Here

    tr.addChild( TH ).addAttribute( "class", "w15" ).addContent( "Time" );
    tr.addChild( TH ).addAttribute( "class", "w10" ).addContent( "Hex" );
    tr.addChild( TH ).addAttribute( "class", "w10" ).addContent( "Bin" );
    tr.addChild( TH ).addAttribute( "class", "w8" ).addContent( "Dec" );
    tr.addChild( TH ).addAttribute( "class", "w7" ).addContent( "ASCII" );
    tbody = table.addChild( TBODY );
    tbody.addContent( "{decoded-data}" );

    return aExporter;
  }
View Full Code Here

              // symbol
              bgColor = ( i % 2 ) == 0 ? "#ffffff" : "#eeeeee";
            }

            tr = aParent.addChild( TR ).addAttribute( "style", "background-color: " + bgColor + ";" );
            tr.addChild( TD ).addContent( String.valueOf( i ) );
            tr.addChild( TD ).addContent( Unit.Time.format( aDataSet.getTime( ds.getStartSampleIndex() ) ) );
            if ( eventName == null )
            {
              // normal symbol...
              int data = ds.getData();
View Full Code Here

              bgColor = ( i % 2 ) == 0 ? "#ffffff" : "#eeeeee";
            }

            tr = aParent.addChild( TR ).addAttribute( "style", "background-color: " + bgColor + ";" );
            tr.addChild( TD ).addContent( String.valueOf( i ) );
            tr.addChild( TD ).addContent( Unit.Time.format( aDataSet.getTime( ds.getStartSampleIndex() ) ) );
            if ( eventName == null )
            {
              // normal symbol...
              int data = ds.getData();
View Full Code Here

              if ( isPrintableCharacter( data ) )
              {
                dataASCII = String.valueOf( ( char )data );
              }

              tr.addChild( TD ).addContent( dataHex );
              tr.addChild( TD ).addContent( dataBin );
              tr.addChild( TD ).addContent( dataDec );
              tr.addChild( TD ).addContent( dataASCII );
            }
            else
View Full Code Here

              {
                dataASCII = String.valueOf( ( char )data );
              }

              tr.addChild( TD ).addContent( dataHex );
              tr.addChild( TD ).addContent( dataBin );
              tr.addChild( TD ).addContent( dataDec );
              tr.addChild( TD ).addContent( dataASCII );
            }
            else
            {
View Full Code Here

                dataASCII = String.valueOf( ( char )data );
              }

              tr.addChild( TD ).addContent( dataHex );
              tr.addChild( TD ).addContent( dataBin );
              tr.addChild( TD ).addContent( dataDec );
              tr.addChild( TD ).addContent( dataASCII );
            }
            else
            {
              // error event...
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.