Package com.alkacon.acacia.shared

Examples of com.alkacon.acacia.shared.AttributeConfiguration


     * @see com.alkacon.acacia.client.I_WidgetService#getAttributeFormWidget(java.lang.String)
     */
    public I_FormEditWidget getAttributeFormWidget(String attributeName) {

        if (m_attributeConfigurations != null) {
            AttributeConfiguration config = m_attributeConfigurations.get(attributeName);
            if (config != null) {
                I_WidgetFactory factory = m_widgetFactories.get(config.getWidgetName());
                if (factory != null) {
                    return factory.createFormWidget(config.getWidgetConfig());
                }
            }
        }
        // no configuration or widget factory found, return default string widget
        return new FormWidgetWrapper(new StringWidget());
View Full Code Here


     * @see com.alkacon.acacia.client.I_WidgetService#getAttributeInlineWidget(java.lang.String, com.google.gwt.user.client.Element)
     */
    public I_EditWidget getAttributeInlineWidget(String attributeName, Element element) {

        if (m_attributeConfigurations != null) {
            AttributeConfiguration config = m_attributeConfigurations.get(attributeName);
            if (config != null) {
                I_WidgetFactory factory = m_widgetFactories.get(config.getWidgetName());
                if (factory != null) {
                    return factory.createInlineWidget(config.getWidgetConfig(), element);
                }
            }
        }
        // no configuration or widget factory found, return default string widget
        return new StringWidget(element);
View Full Code Here

    /**
     * @see com.alkacon.acacia.client.I_WidgetService#getDefaultAttributeValue(java.lang.String)
     */
    public String getDefaultAttributeValue(String attributeName) {

        AttributeConfiguration config = m_attributeConfigurations.get(attributeName);
        return (config != null) && (config.getDefaultValue() != null) ? config.getDefaultValue() : "";

    }
View Full Code Here

TOP

Related Classes of com.alkacon.acacia.shared.AttributeConfiguration

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.