Package org.appng.api

Class FieldWrapper

    • Constructor Detail

      • FieldWrapper

        public FieldWrapper​(FieldDef fieldDef,
                            org.springframework.beans.BeanWrapper beanWrapper)
        Creates a new FieldWrapper for the given FieldDef, using the given BeanWrapper.
        Parameters:
        fieldDef - the FieldDef
        beanWrapper - the BeanWrapper
    • Method Detail

      • getObject

        public Object getObject()
        Returns the property that this FieldWrapper handles.
        Returns:
        the property
      • setObject

        public void setObject​(Object object)
        Sets the property that this FieldWrapper handles.
        Parameters:
        object - the property
      • getStringValue

        public String getStringValue()
        Returns the String-value of the property that this FieldWrapper handles.
        Returns:
        the String-value
      • setStringValue

        public void setStringValue​(String stringValue)
        Sets the String-value of the property that this FieldWrapper handles.
        Parameters:
        stringValue - the String-value to set
      • getBeanWrapper

        public org.springframework.beans.BeanWrapper getBeanWrapper()
        Returns the BeanWrapper used by this FieldWrapper to access the property.
        Returns:
        the BeanWrapper
      • getTargetClass

        public Class<?> getTargetClass()
        Returns the target-type for the property that this FieldWrapper handles.
        Returns:
        the target-type
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getSort

        public Sort getSort()
        Description copied from class: FieldDef
        Gets the value of the sort property.
        Overrides:
        getSort in class FieldDef
        Returns:
        possible object is Sort
      • setSort

        public void setSort​(Sort value)
        Description copied from class: FieldDef
        Sets the value of the sort property.
        Overrides:
        setSort in class FieldDef
        Parameters:
        value - allowed object is Sort
      • getLabel

        public Label getLabel()
        Description copied from class: FieldDef
        Gets the value of the label property.
        Overrides:
        getLabel in class FieldDef
        Returns:
        possible object is Label
      • setLabel

        public void setLabel​(Label value)
        Description copied from class: FieldDef
        Sets the value of the label property.
        Overrides:
        setLabel in class FieldDef
        Parameters:
        value - allowed object is Label
      • getIcons

        public List<Icon> getIcons()
        Description copied from class: FieldDef
        Gets the value of the icons property.

        This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the icons property.

        For example, to add a new item, do as follows:

            getIcons().add(newItem);
         

        Objects of the following type(s) are allowed in the list Icon

        Overrides:
        getIcons in class FieldDef
      • setCondition

        public void setCondition​(Condition value)
        Description copied from class: FieldDef
        Sets the value of the condition property.
        Overrides:
        setCondition in class FieldDef
        Parameters:
        value - allowed object is Condition
      • getPermissions

        public List<FieldPermissions> getPermissions()
        Description copied from class: FieldDef
        Gets the value of the permissions property.

        This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the permissions property.

        For example, to add a new item, do as follows:

            getPermissions().add(newItem);
         

        Objects of the following type(s) are allowed in the list FieldPermissions

        Overrides:
        getPermissions in class FieldDef
      • setMessages

        public void setMessages​(Messages value)
        Description copied from class: FieldDef
        Sets the value of the messages property.
        Overrides:
        setMessages in class FieldDef
        Parameters:
        value - allowed object is Messages
      • getFields

        public List<FieldDef> getFields()
        Description copied from class: FieldDef
        Gets the value of the fields property.

        This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the fields property.

        For example, to add a new item, do as follows:

            getFields().add(newItem);
         

        Objects of the following type(s) are allowed in the list FieldDef

        Overrides:
        getFields in class FieldDef
      • setName

        public void setName​(String value)
        Description copied from class: FieldDef
        Sets the value of the name property.
        Overrides:
        setName in class FieldDef
        Parameters:
        value - allowed object is String
      • setType

        public void setType​(FieldType value)
        Description copied from class: FieldDef
        Sets the value of the type property.
        Overrides:
        setType in class FieldDef
        Parameters:
        value - allowed object is FieldType
      • getDisplayLength

        public BigInteger getDisplayLength()
        Description copied from class: FieldDef
        The maximum number of characters when displaying the field's value as string.
        Overrides:
        getDisplayLength in class FieldDef
        Returns:
        possible object is BigInteger
      • setFormat

        public void setFormat​(String value)
        Description copied from class: FieldDef
        Sets the value of the format property.
        Overrides:
        setFormat in class FieldDef
        Parameters:
        value - allowed object is String
      • getReadonly

        public String getReadonly()
        Description copied from class: FieldDef
        If evaluating to true, the field's value is readonly.
        Overrides:
        getReadonly in class FieldDef
        Returns:
        possible object is String
      • setReadonly

        public void setReadonly​(String value)
        Description copied from class: FieldDef
        Sets the value of the readonly property.
        Overrides:
        setReadonly in class FieldDef
        Parameters:
        value - allowed object is String
      • getHidden

        public String getHidden()
        Description copied from class: FieldDef
        If evaluating to true, the field will not be visible to the user.
        Overrides:
        getHidden in class FieldDef
        Returns:
        possible object is String
      • setHidden

        public void setHidden​(String value)
        Description copied from class: FieldDef
        Sets the value of the hidden property.
        Overrides:
        setHidden in class FieldDef
        Parameters:
        value - allowed object is String
      • getBinding

        public String getBinding()
        Description copied from class: FieldDef
        This is the name of the property used with the JavaBeans API. If no value is set, the binding is the combination of MetaData.getBindClass() (if any, separated with a dot) and the field's name.
        Overrides:
        getBinding in class FieldDef
        Returns:
        possible object is String
      • setBinding

        public void setBinding​(String value)
        Description copied from class: FieldDef
        Sets the value of the binding property.
        Overrides:
        setBinding in class FieldDef
        Parameters:
        value - allowed object is String
      • getLinkpanel

        public Linkpanel getLinkpanel()
      • backupFields

        public void backupFields()
      • restoreFields

        public void restoreFields()
      • setLinkpanel

        public void setLinkpanel​(Linkpanel linkpanel)