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#getAttributeHelp(java.lang.String)
     */
    public String getAttributeHelp(String attributeName) {

        if (m_attributeConfigurations != null) {
            AttributeConfiguration config = m_attributeConfigurations.get(attributeName);
            if (config != null) {
                return config.getHelp();
            }
        }
        return null;
    }
View Full Code Here

     * @see com.alkacon.acacia.client.I_WidgetService#getAttributeInlineWidget(java.lang.String, com.google.gwt.dom.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 widget configured
        return null;
View Full Code Here

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

        if (m_attributeConfigurations != null) {
            AttributeConfiguration config = m_attributeConfigurations.get(attributeName);
            if (config != null) {
                return config.getLabel();
            }
        }
        return attributeName;
    }
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

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

        if (m_attributeConfigurations != null) {
            AttributeConfiguration config = m_attributeConfigurations.get(attributeName);
            if (config != null) {
                return config.isDisplayColumn();
            }
        }
        return false;
    }
View Full Code Here

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

        if (m_attributeConfigurations != null) {
            AttributeConfiguration config = m_attributeConfigurations.get(attributeName);
            if (config != null) {
                return config.isDisplaySingleLine();
            }
        }
        return false;
    }
View Full Code Here

        Map<String, I_Type> types = new HashMap<String, I_Type>();
        types.put(stringTypeName, string);
        types.put(addressTypeName, address);
        types.put(personTypeName, person);
        Map<String, AttributeConfiguration> attributes = new HashMap<String, AttributeConfiguration>();
        attributes.put(firstnameAttribute, new AttributeConfiguration(
            "Firstname",
            "The firtname",
            "string",
            null,
            "",
            "wide"));
        attributes.put(lastNameAttribute, new AttributeConfiguration(
            "Lastname",
            "The lastname",
            "string",
            null,
            "",
            "wide"));

        attributes.put(cityAttribute, new AttributeConfiguration("City", "The city", "string", null, "", "wide"));
        attributes.put(countryAttribute, new AttributeConfiguration(
            "Country",
            "The country",
            "select",
            "de=Deustchland|fr=Frankreich|it=Italien",
            "",
View Full Code Here

        Map<String, I_Type> types = new HashMap<String, I_Type>();
        types.put(stringTypeName, string);
        types.put(addressTypeName, address);
        types.put(personTypeName, person);
        Map<String, AttributeConfiguration> attributes = new HashMap<String, AttributeConfiguration>();
        attributes.put(firstnameAttribute, new AttributeConfiguration("Firstname", "The firtname", "string", null, ""));
        attributes.put(lastNameAttribute, new AttributeConfiguration("Lastname", "The lastname", "string", null, ""));

        attributes.put(cityAttribute, new AttributeConfiguration("City", "The city", "string", null, ""));
        attributes.put(countryAttribute, new AttributeConfiguration(
            "Country",
            "The country",
            "select",
            "de=Deustchland|fr=Frankreich|it=Italien",
            ""));
View Full Code Here

     * @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

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.