Class EnumUIDefinition


  • public class EnumUIDefinition
    extends UIDefinition
    Implementation of the enum ui definition.
    Author:
    mtaal
    • Constructor Detail

      • EnumUIDefinition

        public EnumUIDefinition()
    • Method Detail

      • getParentType

        public String getParentType()
        Overrides:
        getParentType in class UIDefinition
        Returns:
        the Smartclient type from which this type inherits.
      • getFormEditorType

        public String getFormEditorType()
        Overrides:
        getFormEditorType in class UIDefinition
        Returns:
        the form item type used for editing this reference in a form.
      • getGridFieldProperties

        public String getGridFieldProperties​(Field field)
        Description copied from class: UIDefinition
        Computes properties to initialize and set the field in a Smartclient grid cell. This can be the default value or the sets of values in the valuemap. Note: the result should be either empty, if not empty then it start with a comma and end without a comma, this to generate correct javascript.
        Overrides:
        getGridFieldProperties in class UIDefinition
        Parameters:
        field - the field for which the information should be computed.
        Returns:
        a JSONObject string which is used to initialize the formitem.
      • getFieldProperties

        public String getFieldProperties​(Field field,
                                         boolean getValueFromSession)
        Description copied from class: UIDefinition
        Computes properties to initialize and set the field in a Smartclient form. This can be the default value or the sets of values in the valuemap.
        Overrides:
        getFieldProperties in class UIDefinition
        Parameters:
        field - the field for which the information should be computed.
        Returns:
        a JSONObject string which is used to initialize the formitem.
      • getFieldPropertiesWithoutCombo

        public String getFieldPropertiesWithoutCombo​(Field field,
                                                     boolean getValueFromSession)
        Description copied from class: UIDefinition
        It returns the same as getFieldProperties except in the case of combo UIDefinitions. In combo UI definitions, a call to the super will be done, but the combo computation itself will not be done (so only the default value, or the current request value, will be considered).
        Overrides:
        getFieldPropertiesWithoutCombo in class UIDefinition
      • getFilterEditorProperties

        public String getFilterEditorProperties​(Field field)
        Description copied from class: UIDefinition
        Computes properties to initialize and set the field in a Smartclient grid filter. This can be the default value or the sets of values in the valuemap. Note: the result should be either empty, if not empty then it start with a comma and end without a comma, this to generate correct javascript.
        Overrides:
        getFilterEditorProperties in class UIDefinition
        Parameters:
        field - the field for which the information should be computed.
        Returns:
        a JSONObject string which is used to initialize the formitem.