Package com.volantis.mcs.protocols.widgets

Examples of com.volantis.mcs.protocols.widgets.PropertyReference


        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) {
            scriptBuffer.append("Widget.register(")
                .append(createJavaScriptString(attributes.getId()))
                .append(",");
           
            addCreatedWidgetId(attributes.getId());
        }

        scriptBuffer.append("new Widget.Input(")
            .append(createJavaScriptString(inputElement.getAttributeValue("id")))
            .append(",{");
       
        if (propertyReference != null) {
            scriptBuffer.append("property:")
                .append(createJavaScriptExpression(propertyReference));
           
            addUsedWidgetId(propertyReference.getWidgetId());
        }
       
        scriptBuffer.append("})");
       
        if (attributes.getId() != null) {
View Full Code Here


        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) {
            scriptBuffer.append("Widget.register(")
                .append(createJavaScriptString(attributes.getId()))
                .append(",");
           
            addCreatedWidgetId(attributes.getId());
        }

        scriptBuffer.append("new Widget.Select(")
            .append(createJavaScriptString(selectElement.getAttributeValue("id")))
            .append(",{");
       
        if (propertyReference != null) {
            scriptBuffer.append("property:")
                .append(createJavaScriptExpression(propertyReference));
           
            addUsedWidgetId(propertyReference.getWidgetId());
        }
       
        scriptBuffer.append("})");
       
        if (attributes.getId() != null) {
View Full Code Here

        protocol.writeCloseSpan(spanAttributes);

        // Render the Property Display controller.
        DisplayAttributes propertyDisplayAttributes = (DisplayAttributes) attributes;
       
        PropertyReference propertyReference = propertyDisplayAttributes.getPropertyReference();
       
        StringBuffer scriptBuffer = new StringBuffer();
       
        // Finally, render the JavaScript part.
        if (attributes.getId() != null) {
            scriptBuffer.append("Widget.register(")
                .append(createJavaScriptString(attributes.getId()))
                .append(",");
           
            addCreatedWidgetId(attributes.getId());
        }

        scriptBuffer.append("new Widget.Display(")
            .append(createJavaScriptString(spanAttributes.getId()))
            .append(",{");
       
        if (propertyReference != null) {
            scriptBuffer.append("property:")
                .append(createJavaScriptExpression(propertyReference));
           
            addUsedWidgetId(propertyReference.getWidgetId());
        }
       
        String content = propertyDisplayAttributes.getContent();
       
        if (content != null){
View Full Code Here

TOP

Related Classes of com.volantis.mcs.protocols.widgets.PropertyReference

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.