Package com.volantis.mcs.layouts

Examples of com.volantis.mcs.layouts.Pane


     * are no stylistic attributes on the pane.
     */
    public void notestOpenPaneDoNothing() throws Exception {
        privateSetUp();
        DOMOutputBuffer dom = new DOMOutputBuffer();
        Pane pane = new Pane(null);
        pane.setName(PANE_NAME);
        PaneAttributes attributes = new PaneAttributes();
        Element parent = null;
        Element element = null;

        dom.initialise();

        attributes.setPane(pane);
        pane.setBackgroundColour(null);
        pane.setBorderWidth(null);
        pane.setCellPadding(null);
        pane.setCellSpacing(null);
        pane.setHeight(null);
        pane.setWidth(null);
        pane.setHorizontalAlignment(null);
        pane.setVerticalAlignment(null);

        context.setFormatInstance(new TestPaneInstance());
        protocol.setMarinerPageContext(context);

        // Make the test framework behave as if no style class is required!
View Full Code Here


        // Intialize the protocol
        protocol.setMarinerPageContext(context);

        // Initialize the attributes.
        attributes.setPane(new Pane(null));

        // Intialize the rendering.
        PaneInstance paneInstance = (PaneInstance) context.getDeviceLayoutContext().
                getCurrentFormatInstance(attributes.getPane());
        paneInstance.setRendering(rendering);
View Full Code Here

        attributes = new com.volantis.mcs.papi.NativeMarkupAttributes();
        element = new NativeMarkupElementImpl();

        canvasLayout = new CanvasLayout();

        pane = new Pane(canvasLayout);
        pane.setName("TestPane");               
       
        paneInstance = new TestPaneInstance();
        paneInstance.setFormat(pane);
       
View Full Code Here

        this.testable = (XHTMLBasicTestable) testable;
    }
   
    private void privateSetUp() {
        canvasLayout = new CanvasLayout();
        pane = new Pane(canvasLayout);
        pane.setName(PANE_NAME);
        pane.setInstance(0);

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

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

        // pane setup required by #exprElementStart
        Pane testPane =
                new Pane(new CanvasLayout());
        final String pane = "testPane";
        testPane.setName(pane);
        pageContext.addPaneMapping(testPane);

        PaneInstance paneInstance = new TestPaneInstance();
        paneInstance.setFormat(testPane);
        TestDeviceLayoutContext deviceLayoutContext =
View Full Code Here

    private Pane pane;
    private PaneInstance paneContext;


    public void setUp() {
        pane = new Pane(null);
        paneContext = new TestPaneInstance();

        deviceLayoutContext = new TestDeviceLayoutContext();

        tfi2 = new TemporalFormatIterator(null);
View Full Code Here

    private void create1d() {
        tearDown();
        setUp();

        // Create a 1d temporal format iterator containing a pane
        pane = new Pane(null);
        pane.setName("a");
        pane.setInstance(2);
        pane.setParent(tfi);
        paneContext.setDeviceLayoutContext(deviceLayoutContext);
        paneContext.setFormat(pane);
View Full Code Here

        tearDown();
        setUp();

        // Create a 2d temporal format iterator containing a temporal format
        // iterator which contains a pane.
        pane = new Pane(null);
        pane.setName("a");
        pane.setInstance(2);
        pane.setParent(tfi);
        paneContext.setDeviceLayoutContext(deviceLayoutContext);
        paneContext.setFormat(pane);
View Full Code Here

        tearDown();
        setUp();

        // Create a spatial format iterator containing a temporal format
        // iterator which contains a pane.
        pane = new Pane(null);
        pane.setName("a");
        pane.setInstance(2);
        pane.setParent(tfi);

        paneContext = new EmptyPaneInstance(null);
View Full Code Here

        MenuAttributes atts = new MenuAttributes();
        atts.setTitle("TestTitle");
        atts.addItem(createMenuItem("http://foo.com", "foo", "fooTitle"));
        atts.addItem(createMenuItem(
                "http://foobar.com", "foobar", "foobarTitle"));
        atts.setPane(new Pane(new CanvasLayout()));
        final StylingFactory factory = StylingFactory.getDefaultInstance();
        atts.setStyles(factory.createStyles(factory.createPropertyValues(
                StylePropertyDetails.getDefinitions())));
        MenuItemGroupAttributes group = createMenuGroup();
        group.addItem(createMenuItem("http://bar.com", "bar", "barTitle"));
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.