Examples of pushFormat()


Examples of com.volantis.mcs.accessors.LayoutBuilder.pushFormat()

    public RuntimeDeviceLayout createDeviceLayout(boolean inTemporal)
            throws LayoutException {
        LayoutBuilder builder = new LayoutBuilder(new RuntimeLayoutFactory());
        builder.createLayout(LayoutType.CANVAS);
        if(inTemporal){
            builder.pushFormat(FormatType.TEMPORAL_FORMAT_ITERATOR.getTypeName(),0);
            builder.setAttribute(FormatConstants.NAME_ATTRIBUTE, "temporal");
            builder.setAttribute(TemporalFormatIterator.TEMPORAL_ITERATOR_CELLS,
                    "variable");
            builder.setAttribute(TemporalFormatIterator.TEMPORAL_ITERATOR_CELL_COUNT,
                                "5");
View Full Code Here

Examples of com.volantis.mcs.accessors.LayoutBuilder.pushFormat()

            builder.setAttribute(TemporalFormatIterator.TEMPORAL_ITERATOR_CELL_COUNT,
                                "5");
            builder.setAttribute(TemporalFormatIterator.TEMPORAL_ITERATOR_CLOCK_VALUES,
                                "1,2,3,4,5");
        }
        builder.pushFormat(FormatType.GRID.getTypeName(),0);
        builder.setAttribute(Grid.COLUMNS_ATTRIBUTE,"1");
        builder.setAttribute(Grid.ROWS_ATTRIBUTE,"2");
        builder.attributesRead();
        builder.createSubComponent(Grid.COLUMN_FORMAT_TYPE,0);
        builder.attributesRead();
View Full Code Here

Examples of com.volantis.mcs.accessors.LayoutBuilder.pushFormat()

    public RuntimeDeviceLayout createDeviceLayout(boolean inTemporal)
            throws LayoutException {
        LayoutBuilder builder = new LayoutBuilder(new RuntimeLayoutFactory());
        builder.createLayout(LayoutType.CANVAS);
        if(inTemporal){
            builder.pushFormat(FormatType.TEMPORAL_FORMAT_ITERATOR.getTypeName(),0);
            builder.setAttribute(FormatConstants.NAME_ATTRIBUTE, "temporal");
            builder.setAttribute(TemporalFormatIterator.TEMPORAL_ITERATOR_CELLS,
                    "variable");
            builder.setAttribute(TemporalFormatIterator.TEMPORAL_ITERATOR_CELL_COUNT,
                                "5");
View Full Code Here

Examples of com.volantis.mcs.accessors.LayoutBuilder.pushFormat()

            builder.setAttribute(TemporalFormatIterator.TEMPORAL_ITERATOR_CELL_COUNT,
                                "5");
            builder.setAttribute(TemporalFormatIterator.TEMPORAL_ITERATOR_CLOCK_VALUES,
                                "1,2,3,4,5");
        }
        builder.pushFormat(FormatType.GRID.getTypeName(),0);
        builder.setAttribute(Grid.COLUMNS_ATTRIBUTE,"1");
        builder.setAttribute(Grid.ROWS_ATTRIBUTE,"2");
        builder.attributesRead();
        builder.createSubComponent(Grid.COLUMN_FORMAT_TYPE,0);
        builder.attributesRead();
View Full Code Here

Examples of com.volantis.mcs.accessors.LayoutBuilder.pushFormat()

        builder.attributesRead();
        builder.createSubComponent(Grid.COLUMN_FORMAT_TYPE,0);
        builder.attributesRead();
        builder.createSubComponent(Grid.ROW_FORMAT_TYPE,0);
        builder.attributesRead();
        builder.pushFormat(FormatType.PANE.getTypeName(),0);
        builder.setAttribute(FormatConstants.NAME_ATTRIBUTE,"one");
        builder.setAttribute(FormatConstants.DESTINATION_AREA_ATTRIBUTE,"Text");
        builder.attributesRead();
        //pop pane one
         builder.popFormat();
View Full Code Here

Examples of com.volantis.mcs.accessors.LayoutBuilder.pushFormat()

        builder.attributesRead();
        builder.createSubComponent(Grid.COLUMN_FORMAT_TYPE,0);
        builder.attributesRead();
        builder.createSubComponent(Grid.ROW_FORMAT_TYPE,0);
        builder.attributesRead();
        builder.pushFormat(FormatType.PANE.getTypeName(),0);
        builder.setAttribute(FormatConstants.NAME_ATTRIBUTE,"one");
        builder.setAttribute(FormatConstants.DESTINATION_AREA_ATTRIBUTE,"Text");
        builder.attributesRead();
        //pop pane one
         builder.popFormat();
View Full Code Here

Examples of com.volantis.mcs.accessors.LayoutBuilder.pushFormat()

        builder.setAttribute(FormatConstants.DESTINATION_AREA_ATTRIBUTE,"Text");
        builder.attributesRead();
        //pop pane one
         builder.popFormat();

        builder.pushFormat(FormatType.PANE.getTypeName(),1);
        builder.setAttribute(FormatConstants.NAME_ATTRIBUTE,"two");
        builder.setAttribute(FormatConstants.DESTINATION_AREA_ATTRIBUTE,"Image");
        builder.attributesRead();
        //pop pane two
        builder.popFormat();
View Full Code Here

Examples of com.volantis.mcs.accessors.LayoutBuilder.pushFormat()

        builder.setAttribute(FormatConstants.DESTINATION_AREA_ATTRIBUTE,"Text");
        builder.attributesRead();
        //pop pane one
         builder.popFormat();

        builder.pushFormat(FormatType.PANE.getTypeName(),1);
        builder.setAttribute(FormatConstants.NAME_ATTRIBUTE,"two");
        builder.setAttribute(FormatConstants.DESTINATION_AREA_ATTRIBUTE,"Image");
        builder.attributesRead();
        //pop pane two
        builder.popFormat();
View Full Code Here

Examples of com.volantis.mcs.accessors.LayoutBuilder.pushFormat()

         // here the anonymous layout device name is being used to specifically
         // identify the region as the anonymous one. This is then used when
         // creating the anonymous region to allow it not to specify a name.
         builder.createLayout(LayoutType.CANVAS);
         builder.setAnonymous(true);
         builder.pushFormat(FormatType.REGION.getTypeName(), 0);
         builder.setAttribute(FormatConstants.WIDTH_ATTRIBUTE, "100");
         builder.setAttribute(FormatConstants.WIDTH_UNITS_ATTRIBUTE,
                              FormatConstants.WIDTH_UNITS_VALUE_PERCENT);
         builder.attributesRead();
         builder.popFormat();
View Full Code Here

Examples of com.volantis.mcs.accessors.LayoutBuilder.pushFormat()

        // Create the layout.
        builder.createLayout(LayoutType.CANVAS);

        // Push spatial
        builder.pushFormat(FormatType.SPATIAL_FORMAT_ITERATOR.getTypeName(), 0);
        builder.setAttribute(SpatialFormatIterator.ROW_STYLE_CLASSES, "r1 r2");
        builder.setAttribute(SpatialFormatIterator.COLUMN_STYLE_CLASSES, "c1 c2 c3");
        builder.attributesRead();

        // Push grid
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.