Package com.volantis.mcs.protocols.layouts

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


        XFFormAttributes formAttributes = new XFFormAttributes();
        String name = "This is the name";
        formAttributes.setName(name);
        Form form = new Form(new CanvasLayout());
        FormInstance formInstance = new FormInstance(
                NDimensionalIndex.ZERO_DIMENSIONS);
        formInstance.setFormat(form);

        formAttributes.setFormData(formInstance);
        attributes.setFormAttributes(formAttributes);
        attributes.setFormData(formInstance);
View Full Code Here


        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);

        DoSelectInputTestHelper helper = new DoSelectInputTestHelper();
        helper.addOption(attributes,"Caption","Prompt","Value",false);
       
View Full Code Here

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

        FormInstance formInstance = new FormInstance(
                NDimensionalIndex.ZERO_DIMENSIONS);
        formInstance.setFormat(new Form(null));
        attributes.setFormData(formInstance);
    }
View Full Code Here

        FormDescriptor descriptor = new FormDescriptor();
        XFFormElementImpl formElement = new XFFormElementImpl();
        Form form = new Form(new CanvasLayout());
        form.setName("form-name");
        FormInstance formInstance = new FormInstance(
                NDimensionalIndex.ZERO_DIMENSIONS);
        formInstance.setFormat(form);

        formElement.getProtocolAttributes().setFormData(formInstance);
        PrivateAccessor.setField(formElement, "formDescriptor", descriptor);

        pageContext.setCurrentElement(formElement);
View Full Code Here

        Form form = new Form(layout);
        final String formName = "form";
        final String fragmentName = "formFragment";
        form.setName(formName);

        FormInstance formInstance = new FormInstance(
                NDimensionalIndex.ZERO_DIMENSIONS);
        formInstance.setFormat(form);

        final PolicyReferenceResolverMock referenceResolverMock =
                new PolicyReferenceResolverMock("referenceResolverMock",
                        expectations);
        referenceResolverMock.expects.
View Full Code Here

        MarinerPageContextMock pageContext =
                new MarinerPageContextMock("requestContext", expectations);
        FormDescriptorMock fd = new FormDescriptorMock("descriptor", expectations);

        privateSetUp();
        FormInstance form = new FormInstance(NDimensionalIndex.ZERO_DIMENSIONS);

        com.volantis.mcs.protocols.XFFormAttributes formAttributes =
                new com.volantis.mcs.protocols.XFFormAttributes();
        formAttributes.setFormData(form);
View Full Code Here

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

        XFFormAttributes formAttributes = new XFFormAttributes();
        Form form = new Form(new CanvasLayout());
        FormInstance formInstance = new FormInstance(
                NDimensionalIndex.ZERO_DIMENSIONS);
        formInstance.setFormat(form);
        formAttributes.setAction(new LiteralLinkAssetReference("testaction"));
        formAttributes.setFormData(formInstance);
        formAttributes.setMethod("post");
        formAttributes.setFormSpecifier("test");
        attributes.setFormAttributes(formAttributes);
View Full Code Here

            public Pane getDefaultPane() {
                return pane;
            }
        };

        final FormInstance formInstance = new FormInstance(
                NDimensionalIndex.ZERO_DIMENSIONS);
        formInstance.setFormat(form);

        final com.volantis.mcs.protocols.XFFormAttributes formAttributes
                = new com.volantis.mcs.protocols.XFFormAttributes() {
                    public AbstractForm getFormData() {
                        return formInstance;
View Full Code Here

        Form form = new Form(null) {
            public boolean isFragmented() {
                return false;
            }
        };
        FormInstance formInstance = new FormInstance(
                NDimensionalIndex.ZERO_DIMENSIONS);
        formInstance.setFormat(form);

        XFFormAttributes formAtts = new XFFormAttributes();
        formAtts.setFormDescriptor(new FormDescriptor());

        atts.setFormData(formInstance);
View Full Code Here

        CanvasAttributes canvasAttributes = new CanvasAttributes();
        protocol.openCanvasPage(canvasAttributes);

        final TestMarinerPageContext pageContext =
            (TestMarinerPageContext)protocol.getMarinerPageContext();
        FormInstance formInstance = new FormInstance(NDimensionalIndex.ZERO_DIMENSIONS) {
            public OutputBuffer getContentBuffer(boolean create) {
                return pageContext.getCurrentOutputBuffer();
            }
        };
        formInstance.setDeviceLayoutContext(pageContext.getDeviceLayoutContext());
        pageContext.setFormatInstance(formInstance);

        invoker.invoke();

        final ByteArrayOutputStream stream = new ByteArrayOutputStream();
View Full Code Here

TOP

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

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.