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

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


*/

public class SelectElement extends WidgetElement {
    public SelectElement(XDIMEContextInternal context) {
        super(WidgetElements.SELECT, context);
        protocolAttributes = new SelectAttributes();
    }
View Full Code Here


            return;
        }       

        require(WidgetScriptModules.BASE_BB_CONTROLS_SELECT, protocol, attributes);

        SelectAttributes selectAttributes = (SelectAttributes)attributes;
       
        // Render input element.
        DOMOutputBuffer buffer = getCurrentBuffer(protocol);
       
        selectElement = buffer.openStyledElement("select", attributes.getStyles());
       
        if (selectAttributes.getId() != null) {
            selectElement.setAttribute("id", selectAttributes.getId());
        } else {
            selectElement.setAttribute("id", protocol.getMarinerPageContext().generateUniqueFCID());           
        }       

        String mode = selectAttributes.getMode();
        if (mode != null && mode.equals("multiple")) {
            selectElement.setAttribute("multiple", "multiple");
        }
       
        // set default size=1
View Full Code Here

       
        DOMOutputBuffer currentBuffer = getCurrentBuffer(protocol);
        currentBuffer.closeElement("select");
       
        // Get widget attributes.
        SelectAttributes selectAttributes = (SelectAttributes) attributes;
       
        PropertyReference propertyReference = selectAttributes.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.SelectAttributes

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.