Package com.volantis.mcs.layouts

Examples of com.volantis.mcs.layouts.CanvasLayout


        String prevShortcut = "TestPreviousShardShortcut";
        String prevLink = "TestPreviousShardLink";
        String prevClass = "TestPreviousShardLinkClass";

        // Create the DissectingPaneAttributes from the test data.
        CanvasLayout canvasLayout = new CanvasLayout();
        DissectingPane pane = new DissectingPane(canvasLayout);
        pane.setName(paneName);
        pane.setAttribute(FormatConstants.NEXT_SHARD_SHORTCUT_ATTRIBUTE,
                          nextShortcut);
        pane.setAttribute(FormatConstants.NEXT_SHARD_LINK_CLASS_ATTRIBUTE,
View Full Code Here


    protected void setUp() throws Exception {
        super.setUp();
        requestContext = getRequestContext();
        pageContext = getPageContext();
        pageContext.setCurrentPane(new Pane(new CanvasLayout()));
        ContextInternals.setMarinerPageContext(requestContext, pageContext);
        pageContext.pushRequestContext(requestContext);
    }
View Full Code Here

    private void privateSetUp() throws RepositoryException {
   
        requestContext = new TestMarinerRequestContext();
        protocol = new VolantisProtocolStub();
   
        canvasLayout = new CanvasLayout();
        deviceLayoutContext = new TestDeviceLayoutContext();

        pane = new Pane(canvasLayout);
        pane.setName("pane");
       
View Full Code Here

    private FormatRendererContext formatRendererContext;

    protected void setUp() throws Exception {
        super.setUp();

        canvasLayout = new CanvasLayout();

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

        // Javadoc inherited
        public RuntimeDeviceLayout getDeviceLayout() {
            return new RuntimeLayoutAdapter(
                    "Name",
                    new CanvasLayout() {
                // Javadoc inherited
                public String getDefaultFormFragmentName() {
                    return "default";
                }
            }, null, null);
View Full Code Here

                new TestProtocolRegistry.TestDOMProtocolFactory(),
                InternalDeviceTestHelper.createTestDevice());
        pageContext.setProtocol(protocol);

        // Set the Layout (needed for FormatReference and panes)
        CanvasLayout layout = new CanvasLayout();

        // Don't actual resolve anything as it requires repository connections,
        // branding information, etc.
        PolicyFactory factory = PolicyFactory.getDefaultInstance();
        RolloverImagePolicyBuilder rolloverBuilder =
View Full Code Here

  public FormatReferenceParserTestCase(String arg0) {
    super(arg0);
  }
   
    public void setUp() {
        CanvasLayout deviceLayout = new CanvasLayout();

        pane = new TestPane(deviceLayout);
        pane.setName("beer");
        context.addPaneMapping(pane);
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);
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

        if (formats == null) {
            formats = new ArrayList();
        }
        Iterator iterator = FormatType.iterator();
        List exceptions = new ArrayList();
        Object canvasArgs [] = { new CanvasLayout() };
        Object montageArgs [] = { new MontageLayout() };

        while(iterator.hasNext()) {
            FormatType type = (FormatType) iterator.next();
            Class formatClass = type.getFormatClass();
View Full Code Here

TOP

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

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.