Package com.volantis.mcs.layouts

Examples of com.volantis.mcs.layouts.Pane


        public VolantisProtocol getProtocol() {
            return protocol;
        }

        public Pane getCurrentPane() {
            Pane pane = new Pane(null);
            pane.setWidth("100");
            pane.setHeight("100");
            return pane;
        }
View Full Code Here


        // Intitialise the context
        pageContext.pushRequestContext(requestContext);
        ContextInternals.setMarinerPageContext(requestContext, pageContext);
        ContextInternals.setEnvironmentContext(requestContext,
                new TestEnvironmentContext());
        Pane testPane = new Pane(layout);
        testPane.setName("pane");
        pageContext.addPaneMapping(testPane);

        // Activate the device layout.
        RuntimeDeviceLayout runtimeDeviceLayout =
                RuntimeDeviceLayoutTestHelper.activate(layout);
View Full Code Here

        temporal.setAttribute(
            TemporalFormatIterator.TEMPORAL_ITERATOR_CELLS,"fixed");
        activateTemporal(temporal);

        //Create a new pane
        Pane pane = (Pane) createPane();
        //Pretend to get the buffers for two different format instances
        int[] idx = { 2 };
        PaneInstance ctx2 = (PaneInstance) dlContext.getFormatInstance(pane,
                new NDimensionalIndex(idx));
        ctx2.getCurrentBuffer().writeText("non-empty");
View Full Code Here

        temporal.setAttribute(
            TemporalFormatIterator.TEMPORAL_ITERATOR_CELLS,"fixed");
        activateTemporal(temporal);

        //Create a new pane
        Pane pane = (Pane) createPane();
        //Pretend to get the buffers for two different format instances
        int[] idx = { 2 };
        PaneInstance ctx2 = (PaneInstance) dlContext.getFormatInstance(pane,
                new NDimensionalIndex(idx));
        ctx2.getCurrentBuffer().writeText("non-empty");
View Full Code Here

     */
    private void createTemporal(FormatRenderer renderer,
                                TemporalFormatIterator temporal)
            throws LayoutException, RendererException {
        //Create a new pane
        Pane pane = (Pane) createPane();
        //Pretend to get the buffers for two different format instances
        int[] idx = { 2 };
        PaneInstance ctx2 = (PaneInstance) dlContext.getFormatInstance(pane,
                new NDimensionalIndex(idx));
        ctx2.getCurrentBuffer().writeText("non-empty");
View Full Code Here

        DOMOutputBuffer buffer = new DOMOutputBuffer();
        buffer.initialise();

        Element el = null;

        Pane pane = null;
        PaneAttributes attributes = null;

        pane = new Pane(null);
        pane.setName("test");
        attributes = new PaneAttributes();
        attributes.setStyles(StylesBuilder.getStyles("background-color: red"));
        attributes.setPane(pane);

        // Set up the required contexts
View Full Code Here

        MutablePropertyValues properties = createPropertyValues();

        Element element = domFactory.createElement();
        ColumnIteratorPaneAttributes attrs =
                new ColumnIteratorPaneAttributes();
        Pane pane = new Pane(new CanvasLayout());
        // Mimic an element created by openColumnIteratorPane and assign
        // an optimization level
        element.setName("table");
        pane.setOptimizationLevel(
                FormatConstants.OPTIMIZATION_LEVEL_VALUE_LITTLE_IMPACT);
        attrs.setPane(pane);

        protocol.addColumnIteratorPaneAttributes(element, attrs);
View Full Code Here

        DOMOutputBuffer dom = new DOMOutputBuffer();
        dom.initialise();
        PaneAttributes attributes = new PaneAttributes();
        attributes.setStyles(StylesBuilder.getDeprecatedStyles());
        Pane pane = new Pane(new CanvasLayout());
        attributes.setPane(pane);

        // @todo 2005060816 annotate child with style information if it's not inherited from the parent
        dom.openStyledElement("body", attributes);
        dom.openElement("table");
View Full Code Here

                pageContext, form, entryPaneName, entryPaneInstance);

        if ((captionPaneName == null) && (entryPaneName == null)) {
            // Neither have been specified so use the current pane if this is being
            // rendered inline, otherwise use the forms default pane.
            Pane pane;
            if (form == null) {
                pane = pageContext.getCurrentPane();
            } else {
                pane = form.getDefaultPane();
            }

            // If the pane exists then use it for both caption and entry pane.
            if (pane != null) {
                captionPaneName = entryPaneName = pane.getName();
                captionPaneInstance =
                        (PaneInstance) pageContext.getFormatInstance(
                                pane, ZEROTH_INDEX);
                entryPaneInstance = captionPaneInstance;
            }
View Full Code Here

                paneName = form.getDefaultPane().getName();
            }

            FormatReference formatRef = FormatReferenceParser.parsePane(
                    paneName, pageContext);
            Pane pane = pageContext.getPane(formatRef.getStem());
            if (pane != null) {
                // We have the associated pane to use. Now get the zeroth
                // instance.
                result = (AbstractPaneInstance) pageContext.getFormatInstance(
                        pane, formatRef.getIndex());
            }

            // If this field is not being rendered inline then make sure that
            // the pane instance is in the current form, if it is not then
            // ignore it.
            if ((form != null) &&
                    (pane != null) &&
                    (pane.getEnclosingForm() != form)) {

                logger.warn("pane-not-in-form",
                        new Object[]{paneName, form.getName()});
                result = null;
            }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.layouts.Pane

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.