Package com.volantis.mcs.protocols.layouts

Examples of com.volantis.mcs.protocols.layouts.PaneInstance


        ContextInternals.setMarinerPageContext(requestContext, context);
        protocol.setMarinerPageContext(context);

        int idx[] = {1, 0};
        NDimensionalIndex index = new NDimensionalIndex(idx);
        PaneInstance paneInstance = new PaneInstance(index);

        paneInstance.setStyleClass("fred");
        context.setFormatInstance(paneInstance);

        PageHead head = new PageHead();
        testable.setPageHead(head);
        testable.setStyleSheetRenderer(CSSStyleSheetRenderer.getSingleton());
View Full Code Here


        buffer.initialise();
        testable.setCurrentBuffer(null, buffer);

        TestMarinerPageContext context = new TestMarinerPageContext();

        PaneInstance paneInstance = new TestPaneInstance() {
            public OutputBuffer getCurrentBuffer() {
                return buffer;
            }
        };
        context.setFormatInstance(paneInstance);
View Full Code Here

        deviceContext.setDeviceLayout(runtimeDeviceLayout);
        context.pushDeviceLayoutContext(deviceContext);
        ContextInternals.setMarinerPageContext(requestContext, context);
        protocol.setMarinerPageContext(context);
        PaneInstance paneInstance = new TestPaneInstance();
        paneInstance.setStyleClass("fred");
        context.setFormatInstance(paneInstance);

        PageHead head = new PageHead();
        testable.setPageHead(head);
        testable.setStyleSheetRenderer(CSSStyleSheetRenderer.getSingleton());
View Full Code Here

    }

    public void testAddActionResetFormAttributesInitialValue() throws Exception {
        XFTextInputAttributes field = new XFTextInputAttributes();
        field.setName("Name");
        field.setEntryContainerInstance(new PaneInstance(null));

        String expected = "<refresh><setvar name=\"Name\" value=\"\"/></refresh>";
        doTestAddActionReset(expected, field);
    }
View Full Code Here

        attributes.setFormAttributes(formAttributes);

        XFTextInputAttributes field = new XFTextInputAttributes();
        field.setInitial("InitialValue");
        field.setName("Name");
        field.setEntryContainerInstance(new PaneInstance(null));
        formAttributes.addField(field);
        protocol.addActionReset(buffer, attributes);
        String expected = transformMarkup(
                "<refresh><setvar name=\"Name\" value=\"InitialValue\"/>" +
                "</refresh>",
View Full Code Here

        RuntimeDeviceLayout runtimeDeviceLayout =
                RuntimeDeviceLayoutTestHelper.activate(canvasLayout);

        pageContext.setDeviceLayout(runtimeDeviceLayout);
        pageContext.setCurrentPane(pane);
        PaneInstance paneInstance = new TestPaneInstance();
        TestDeviceLayoutContext dlc = new TestDeviceLayoutContext();
        dlc.setFormatInstance(pane, NDimensionalIndex.ZERO_DIMENSIONS, paneInstance);
        dlc.setMarinerPageContext(pageContext);
        dlc.setDeviceLayout(runtimeDeviceLayout);
        dlc.initialise();
View Full Code Here

        attribute.setTitle("My title");

        context.pushDeviceLayoutContext(deviceContext);
        protocol.setMarinerPageContext(context);

        PaneInstance paneInstance = new TestPaneInstance();
        paneInstance.setStyleClass("fred");
        context.setFormatInstance(paneInstance);
        context.setDeviceName(NETSCAPE4_DEVICE_NAME);
        PageHead head = new PageHead();
//        head.addFormatStyleClass(LAYOUT_NAME, PANE, CLASS_NAME);
        testable.setPageHead(head);
View Full Code Here

        privateSetUp();

        XFSelectAttributes attributes = new XFSelectAttributes();
        attributes.setStyles(StylesBuilder.getInitialValueStyles());

        attributes.setEntryContainerInstance(new PaneInstance(null));
        attributes.setShortcut(new LiteralTextAssetReference("shortcut"));
        attributes.setName("name");
        FormInstance formInstance = new FormInstance(NDimensionalIndex.ZERO_DIMENSIONS);
        formInstance.setFormat(new Form(null));
        attributes.setFormData(formInstance);
View Full Code Here

    public void doTestSimpleOptGroup() {
        privateSetUp();

        XFSelectAttributes attributes = new XFSelectAttributes();

        attributes.setEntryContainerInstance(new PaneInstance(null));
        attributes.setName("name");
        attributes.setInitial("E");

        FormInstance formInstance = new FormInstance(
                NDimensionalIndex.ZERO_DIMENSIONS);
View Full Code Here

            (TestMarinerPageContext)protocol.getMarinerPageContext();

        context.pushRequestContext(requestContext);
        ContextInternals.setMarinerPageContext(requestContext, context);

        PaneInstance paneInstance = new TestPaneInstance() {
            public OutputBuffer getCurrentBuffer() {
                return buffer;
            }
        };
        context.setFormatInstance(paneInstance);
View Full Code Here

TOP

Related Classes of com.volantis.mcs.protocols.layouts.PaneInstance

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.