Package com.volantis.mcs.protocols

Examples of com.volantis.mcs.protocols.DOMOutputBuffer.initialise()


        String actionType = "submit";
        String caption = "The caption";
        String value = "This is my value";

        DOMOutputBuffer buffer = new DOMOutputBuffer();
        buffer.initialise();

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

        attributes.setName(name);
View Full Code Here


    }

    protected void checkActionInputShortcut() throws ProtocolException {

        DOMOutputBuffer buffer = new DOMOutputBuffer();
        buffer.initialise();
        XFActionAttributes attributes = new XFActionAttributes();
        attributes.setStyles(StylesBuilder.getInitialValueStyles());

        // Setup test for normal behaviour for input tag generation (submit)
        String shortcut = "1";
View Full Code Here

    /**
     * Test the method doImage
     */
    public void testDoImage() throws Exception {
        DOMOutputBuffer buffer = new DOMOutputBuffer();
        buffer.initialise();

        // Needed to allow the call to getTextFromReference within doImage to work
        context = new TestMarinerPageContext();

        protocol.setMarinerPageContext(context);
View Full Code Here

     * Tests cellspacing with a column iterator's table.
     */
    public void testOpenColumnIteratorPaneCellspacing() throws Exception {
        privateSetUp();
        DOMOutputBuffer buffer = new DOMOutputBuffer();
        buffer.initialise();

        ColumnIteratorPaneAttributes cipAttrs =
                new ColumnIteratorPaneAttributes();
        cipAttrs.setStyles(StylesBuilder.getDeprecatedStyles());
        cipAttrs.setPane(pane);
View Full Code Here

    public void testOpenGridCellspacing() throws Exception {
        privateSetUp();
        context.setDevice(INTERNAL_DEVICE_FACTORY.createInternalDevice(
            new DefaultDevice(DEVICE_NAME, new HashMap(), null)));
        DOMOutputBuffer buffer = new DOMOutputBuffer();
        buffer.initialise();

        GridAttributes gridAttrs = new GridAttributes();
        gridAttrs.setStyles(StylesBuilder.getDeprecatedStyles());
        gridAttrs.setFormat(pane);
View Full Code Here

     * Tests cellspacing with a table.
     */
    public void testOpenTableCellspacing() throws Exception {
        privateSetUp();
        DOMOutputBuffer buffer = new DOMOutputBuffer();
        buffer.initialise();

        TableAttributes tableAttrs = new TableAttributes();
        tableAttrs.setStyles(StylesBuilder.getInitialValueStyles());

        protocol.openTable(buffer, tableAttrs);
View Full Code Here

                new TestProtocolRegistry.TestVoiceXMLVersion1_0Factory(),
                internalDevice);
        protocol.setMarinerPageContext(context);
       
        DOMOutputBuffer buffer = new DOMOutputBuffer();
        buffer.initialise();
       
        NuanceGrammar grammar = new NuanceGrammar();
        grammar.generateBooleanGrammar(buffer, "sugar",
                falseReference, trueReference);
       
View Full Code Here

        SpanAttributes attributes = new SpanAttributes();
        attributes.setSrc(new LiteralTextAssetReference(text));

        DOMOutputBuffer buffer = new DOMOutputBuffer();
        buffer.initialise();

        protocol.openSpan(buffer, attributes);
        protocol.closeSpan(buffer, attributes);

        String expectedString =
View Full Code Here

        SpanAttributes attributes = new SpanAttributes();
        attributes.setSrc(new LiteralTextAssetReference(text));

        DOMOutputBuffer buffer = new DOMOutputBuffer();
        buffer.initialise();

        protocol.openSpan(buffer, attributes);
        protocol.closeSpan(buffer, attributes);

        Document document = domFactory.createDocument();
View Full Code Here

    public void testOpenCloseSpanNoSrcAttribute() throws Exception {

        SpanAttributes attributes = new SpanAttributes();

        DOMOutputBuffer buffer = new DOMOutputBuffer();
        buffer.initialise();

        protocol.openSpan(buffer, attributes);
        protocol.closeSpan(buffer, attributes);

        String expectedString =
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.