Examples of CanvasLayout


Examples of com.volantis.mcs.layouts.CanvasLayout

     * @todo the fact that some of the tests don't need to call this method
     * at all indicates that we ought to refactor this so each test just
     * sets up what it needs. Otherwise, we can have unintended side effects...
     */
    private void privateSetUp() throws RepositoryException {
        canvasLayout = new CanvasLayout();
        pane = new Pane(canvasLayout);
        pane.setName(PANE_NAME);
        pane.setInstance(0);

        // Activate the device layout.
View Full Code Here

Examples of com.volantis.mcs.layouts.CanvasLayout

        attributes.setValue(xfValue);

        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);
View Full Code Here

Examples of com.volantis.mcs.layouts.CanvasLayout

            if (contentBuilder == null) {
                final InternalLayoutContentBuilder layoutBuilder =
                    InternalPolicyFactory.getInternalInstance().
                        createLayoutContentBuilder();
                final CanvasLayout layout = new CanvasLayout();
                layoutBuilder.setLayout(layout);
                contentBuilder = layoutBuilder;
            }
            final JiBXWriter writer = new JiBXWriter();
            final ByteArrayOutputStream baos = new ByteArrayOutputStream();
View Full Code Here

Examples of com.volantis.mcs.layouts.CanvasLayout

    /**
     * Setup the unit test framework by creating some classes ensuring that each
     * test case starts off with a clean slate to work from
     */
    private void privateSetUp() {
        canvasLayout = new CanvasLayout();
        //testable.setSupportsAccessKeyAttribute(false);
        element = domFactory.createElement();
        element.setName(elementName);
        buffer = new TestDOMOutputBuffer();
        document = domFactory.createDocument();
View Full Code Here

Examples of com.volantis.mcs.layouts.CanvasLayout

    {
        OutputBufferFactory factory = new TestDOMOutputBufferFactory();
        //pageHead.setMarinerPageContext(pageContext);
        pageHead.setOutputBufferFactory(factory);

        CanvasLayout canvasLayout = new CanvasLayout();
        Pane pane = new Pane(canvasLayout);
        pane.setName("pane");

        // Activate the device layout.
        RuntimeDeviceLayout runtimeDeviceLayout =
View Full Code Here

Examples of com.volantis.mcs.layouts.CanvasLayout

    public void testOpenGrid() {
        privateSetUp();
        GridAttributes attributes = new GridAttributes();
        attributes.setStyles(StylesBuilder.getDeprecatedStyles());

        attributes.setFormat(new Form(new CanvasLayout()));
        buffer.addStyledElement("table", attributes);
        protocol.openGrid(buffer, attributes);
        Element e = buffer.getCurrentElement();
        assertNull(e.getAttributeValue("columns"));
    }
View Full Code Here

Examples of com.volantis.mcs.layouts.CanvasLayout

     * @todo the fact that some of the tests don't need to call this method
     * at all indicates that we ought to refactor this so each test just
     * sets up what it needs. Otherwise, we can have unintended side effects...
     */
    private void privateSetUp() {
        canvasLayout = new CanvasLayout();
        pane = new Pane(canvasLayout);
        pane.setName(PANE_NAME);
        pane.setInstance(0);

        // Activate the device layout.
View Full Code Here

Examples of com.volantis.mcs.layouts.CanvasLayout

                type = (LayoutType) selected;
            }

            Layout layout = null;
            if (type == LayoutType.CANVAS) {
                layout = new CanvasLayout();
            } else if (type == LayoutType.MONTAGE) {
                layout = new MontageLayout(null);
            }

            if (type == null) {
View Full Code Here

Examples of com.volantis.mcs.layouts.CanvasLayout

//                                     "</td>" +
//                                     "</tr>" +
//                                     "</table>" +
//                                     "</td>");

        Pane pane = new Pane(new CanvasLayout());
        attributes.setPane(pane);

        // todo add in a test to make sure that the protocol is using the correct border handler for a netscape device.
        // Intialize the context.
        //context = new TestMarinerPageContext();
View Full Code Here

Examples of com.volantis.mcs.layouts.CanvasLayout

//            element.setAttribute("class", elementClassAttributes);
//        }

        // Pane attributes can't be null, must contain a valid pane.
        if (attributes.getPane() == null) {
            attributes.setPane(new Pane(new CanvasLayout()));
        }

        protocol.createEnclosingElement(dom, attributes);

        String actual = DOMUtilities.toString(dom.getRoot());
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.