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

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


*/

public class OptionElement extends WidgetElement {
    public OptionElement(XDIMEContextInternal context) {
        super(WidgetElements.OPTION, context);
        protocolAttributes = new OptionAttributes();
    }
View Full Code Here


       
        if(!isWidgetSupported(protocol)) {
            return;
        }       

        OptionAttributes optionAttributes = (OptionAttributes)attributes;
       
        // Render input element.
        DOMOutputBuffer buffer = getCurrentBuffer(protocol);
       
        optionElement = buffer.openStyledElement("option", attributes.getStyles());
                          
        if (optionAttributes.getValue() != null) {
            optionElement.setAttribute("value", optionAttributes.getValue());
        }
       
        String selected = optionAttributes.getSelected();
        if (selected != null && selected.equals("selected")) {
            optionElement.setAttribute("selected", selected);
        }               
    }
View Full Code Here

TOP

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

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.