Package com.volantis.mcs.protocols

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


    public void testAddPhoneNumberContentsPopulatedDom() throws Exception {
        DOMOutputBuffer contentDom = new DOMOutputBuffer();
        contentDom.initialise();
        contentDom.openElement("content");
        contentDom.addElement("example");
        contentDom.appendEncoded("with text");
        contentDom.closeElement("content");

        doPhoneNumberContentTest(contentDom,
                                 "<block><prompt><content>" +
View Full Code Here


        if (elementDetails != null) {
            styles = elementDetails.getStyles();
        }

        DOMOutputBuffer outputBuffer = (DOMOutputBuffer) buffer;
        Element element = outputBuffer.addElement("plain-image");
        if (styles != null) {
            element.setStyles(styles);
        }

        try {
View Full Code Here

    public void render(OutputBuffer buffer)
        throws RendererException {

        DOMOutputBuffer outputBuffer = (DOMOutputBuffer) buffer;
        outputBuffer.addElement("br");
    }
}

/*
===========================================================================
View Full Code Here

            styles = elementDetails.getStyles();
        }


        DOMOutputBuffer outputBuffer = (DOMOutputBuffer) buffer;
        Element element = outputBuffer.addElement("rollover-image");

        if (styles != null) {
            element.setStyles(styles);
        }
View Full Code Here

     */
    public void createMarkerElement() {
         markerElement = protocol.getDOMFactory().createElement("DELETE_ME");
         DOMOutputBuffer outputBuffer =
             ((DOMOutputBuffer) protocol.getPageHead().getHead());
         outputBuffer.addElement(markerElement);   
    }
 
    /**
     * Returns set of referencable modules (as opposed to embedded ones)   
     *
 
View Full Code Here

     */
    protected String renderFoldedMarker(VolantisProtocol protocol, String defaultMarkerValue,
                   Styles markerStyles, Styles alternativeMarkerStyles) throws ProtocolException{

        DOMOutputBuffer currentBuffer = getCurrentBuffer(protocol);
        Element markerElement = currentBuffer.addElement("span");

        if(markerStyles != null) {
            markerElement.setStyles(markerStyles);
        } else {
            markerElement.setStyles(alternativeMarkerStyles);           
View Full Code Here

     */
    protected String renderUnfoldedMarker(VolantisProtocol protocol, String defaultMarkerValue,
                        Styles markerStyles, Styles alternativeMarkerStyles) throws ProtocolException {

        DOMOutputBuffer currentBuffer = getCurrentBuffer(protocol);
        Element markerElement = currentBuffer.addElement("span");

        if(markerStyles != null) {
            markerStyles.getPropertyValues().setComputedAndSpecifiedValue(StylePropertyDetails.DISPLAY, DisplayKeywords.NONE);
            markerElement.setStyles(markerStyles);
        } else {
View Full Code Here

            // Calculate the url to the validate script. This could be done
            // once for the whole application.
            String validateURL = "/" + context.getVolantisBean().getPageBase() +
                    "/" + context.getVolantisBean().getScriptsBase() + "/validate.js";

            Element element = dom.addElement ("script");
            element.setAttribute ("language", "JavaScript");
            element.setAttribute ("src", validateURL);
            dom = getScriptBuffer ();
           
            String formFunction = attributes.getFormData().getName();
View Full Code Here

        // create the marker element
        markerElement = protocol.getDOMFactory().createElement("DELETE_ME");
        DOMOutputBuffer outputBuffer =
            ((DOMOutputBuffer) protocol.getPageHead().getHead());
        outputBuffer.addElement(markerElement);
    }

    /**
     * Closes the manager.
     */
 
View Full Code Here

        // Inherit javadoc.
        public boolean visit(Pane pane, Object object) {

            DOMOutputBuffer dom = (DOMOutputBuffer) object;
            Element element = dom.addElement("region");

            // id must be Text or Image depending on what is stored in the pane
            // We assume that the user fills in the destination area property
            // using the GUI to save us from having to work this out.
            String destinationArea = pane.getDestinationArea();
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.