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

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


              }

              tr.addChild( TD ).addContent( dataHex );
              tr.addChild( TD ).addContent( dataBin );
              tr.addChild( TD ).addContent( dataDec );
              tr.addChild( TD ).addContent( dataASCII );
            }
            else
            {
              // error event...
              tr.addChild( TD ).addAttribute( "colspan", "4" ).addContent( eventName );
View Full Code Here


              tr.addChild( TD ).addContent( dataASCII );
            }
            else
            {
              // error event...
              tr.addChild( TD ).addAttribute( "colspan", "4" ).addContent( eventName );
            }
          }
        }
        return null;
      }
View Full Code Here

    aExporter.addCssStyle( ".w20 { width: 20%; } " );
    aExporter.addCssStyle( ".w15 { width: 15%; } " );
    aExporter.addCssStyle( ".w10 { width: 10%; } " );

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

    Element table, tr, thead, tbody;
View Full Code Here

    aExporter.addCssStyle( ".w15 { width: 15%; } " );
    aExporter.addCssStyle( ".w10 { width: 10%; } " );

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

    Element table, tr, thead, tbody;

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

    aExporter.addCssStyle( ".w10 { width: 10%; } " );

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

    Element table, tr, thead, tbody;

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

    body.addChild( DIV ).addAttribute( "class", "date" ).addContent( "{date-now}" );

    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( "Bus configuration" );
    tr = tbody.addChild( TR );
    tr.addChild( TD ).addAttribute( "class", "w30" ).addContent( "IDA0/..IDA15/" );
    tr.addChild( TD ).addContent( "0..15" );
View Full Code Here

    tr.addChild( TD ).addContent( "{wrt-bus-config}" );
    tr = tbody.addChild( TR );
    tr.addChild( TD ).addAttribute( "class", "w30" ).addContent( "SYNC" );
    tr.addChild( TD ).addContent( "{sync-bus-config}" );

    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 words" );
    tr.addChild( TD ).addContent( "{decoded-words}" );
View Full Code Here

    tr = tbody.addChild( TR );
    tr.addChild( TD ).addAttribute( "class", "w30" ).addContent( "Decoded words" );
    tr.addChild( TD ).addContent( "{decoded-words}" );

    table = body.addChild( TABLE ).addAttribute( "class", "w100" );
    thead = table.addChild( THEAD );
    tr = thead.addChild( TR );
    tr.addChild( TH ).addAttribute( "class", "w10" ).addContent( "Index" );
    tr.addChild( TH ).addAttribute( "class", "w10" ).addContent( "Clocks" );
    tr.addChild( TH ).addAttribute( "class", "w10" ).addContent( "Block" );
    tr.addChild( TH ).addAttribute( "class", "w10" ).addContent( "Address" );
View Full Code Here

    tr.addChild( TH ).addAttribute( "class", "w10" ).addContent( "Address" );
    tr.addChild( TH ).addAttribute( "class", "w10" ).addContent( "Value" );
    tr.addChild( TH ).addAttribute( "class", "w10" ).addContent( "Bus Grant" );
    tr.addChild( TH ).addAttribute( "class", "w10" ).addContent( "Type" );
    tr.addChild( TH ).addAttribute( "class", "w30" ).addContent( "Event" );
    tbody = table.addChild( TBODY );
    tbody.addContent( "{decoded-data}" );

    return aExporter;
  }
View Full Code Here

              }
            }

            tr = aParent.addChild( TR )
                .addAttribute( "style", "background-color: " + bgColor + "; text-align: center;" );
            tr.addChild( TD ).addContent( String.valueOf( index ) );
            tr.addChild( TD ).addContent( String.valueOf( data.getClocks() ) );
            tr.addChild( TD ).addContent( StringUtils.integerToHexString( data.getBlock(), 2 ) );
            tr.addChild( TD ).addContent( StringUtils.integerToHexString( data.getAddress(), 4 ) );
            tr.addChild( TD ).addContent( StringUtils.integerToHexString( data.getValue(), 4 ) );
            tr.addChild( TD ).addContent( data.getBusGrant() ? "X" : "-" );
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.