Package com.volantis.mcs.protocols.widgets.attributes

Examples of com.volantis.mcs.protocols.widgets.attributes.InputAttributes


public class InputElement extends WidgetElement {
   
    public InputElement(XDIMEContextInternal context){
        super(WidgetElements.INPUT, context);
        protocolAttributes = new InputAttributes();
    }
View Full Code Here


        }
        super.callCloseOnProtocol(context);
    }
   
    protected void initialiseElementSpecificAttributes(XDIMEContextInternal context, XDIMEAttributes attributes) throws XDIMEException {
        InputAttributes inputAttributes = (InputAttributes) protocolAttributes;
       
        // Get value and type attributes
        inputAttributes.setValue(attributes.getValue("", "value"));
        inputAttributes.setType(attributes.getValue("", "type"));
       
        // Get optional property attribute
        String propertyAttributeValue = attributes.getValue("", "property");

        if (propertyAttributeValue != null) {
            inputAttributes.setPropertyReference(new PropertyReferenceImpl(propertyAttributeValue));
        }
    }   
View Full Code Here

            return;
        }       

        require(WidgetScriptModules.BASE_BB_CONTROLS_INPUT, protocol, attributes);
       
        InputAttributes inputAttributes = (InputAttributes)attributes;
       
        // Render input element.
        DOMOutputBuffer buffer = getCurrentBuffer(protocol);
       
        inputElement = buffer.openStyledElement("input", attributes.getStyles());
       
        if (inputAttributes.getName() != null) {
            inputElement.setAttribute("name", inputAttributes.getName());
        }

        if (inputAttributes.getValue() != null) {
            inputElement.setAttribute("value", inputAttributes.getValue());
        }       

        if (inputAttributes.getType() != null) {
            inputElement.setAttribute("type", inputAttributes.getType());
        }               
       
        if (inputAttributes.getId() != null) {
            inputElement.setAttribute("id", inputAttributes.getId());
        } else {
            inputElement.setAttribute("id", protocol.getMarinerPageContext().generateUniqueFCID());           
        }          
    }
View Full Code Here

       
        DOMOutputBuffer currentBuffer = getCurrentBuffer(protocol);
        currentBuffer.closeElement("input");
       
        // Get widget attributes.
        InputAttributes inputAttributes = (InputAttributes) attributes;
       
        PropertyReference propertyReference = inputAttributes.getPropertyReference();
       
        // Finally, render the JavaScript part.
        StringBuffer scriptBuffer = new StringBuffer();
       
        if (attributes.getId() != null) {
View Full Code Here

TOP

Related Classes of com.volantis.mcs.protocols.widgets.attributes.InputAttributes

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.