Package com.github.gwtbootstrap.client.ui

Examples of com.github.gwtbootstrap.client.ui.Paragraph


        setNotDirty();

        //Dump model
        final Well dtreeWidget = new Well();
        dtreeWidget.add( new Label( "Decision Tree" ) );
        dtreeWidget.add( new Paragraph( "Package: " + model.getPackageName() ) );
        dtreeWidget.add( new Paragraph( "Name: " + model.getTreeName() ) );

        final TypeNode root = model.getRoot();
        final Well typeWidget = new Well();
        typeWidget.add( new Label( "Type" ) );
        typeWidget.add( new Paragraph( "Class Name: " + root.getClassName() ) );
        dtreeWidget.add( typeWidget );

        for ( Node child : root.getChildren() ) {
            final Well childWidget = new Well();
            if ( child instanceof ConstraintNode ) {
                childWidget.add( new Label( "Constraint" ) );
                childWidget.add( new Paragraph( "Field: " + ( (ConstraintNode) child ).getFieldName() ) );
                childWidget.add( new Paragraph( "Operator: " + ( (ConstraintNode) child ).getOperator() ) );
                final Value value = ( (ConstraintNode) child ).getValue();
                if ( value instanceof StringValue ) {
                    childWidget.add( new Paragraph( "Value: " + ( (StringValue) value ).getValue() ) );
                } else if ( value instanceof IntegerValue ) {
                    childWidget.add( new Paragraph( "Value: " + ( (IntegerValue) value ).getValue() ) );
                }
                typeWidget.add( childWidget );
            }
        }
        container.getElement().getStyle().setPadding( 10,
View Full Code Here


        for ( final YouTubeVideo video : VIDEOS ) {

            final Hero infoCube = new Hero();
            final Heading heading = new Heading( 2, video.getName() );
            final Paragraph paragraph = new Paragraph( video.getDescription() );
            infoCube.add( heading );
            infoCube.add( paragraph );
            infoCube.addDomHandler( new ClickHandler() {
                @Override
                public void onClick( final ClickEvent e ) {
View Full Code Here

TOP

Related Classes of com.github.gwtbootstrap.client.ui.Paragraph

Copyright © 2018 www.massapicom. 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.