Class ItemRef

    • Constructor Detail

      • ItemRef

        public ItemRef()
        Constructor
    • Method Detail

      • getItem

        public Item getItem()
        Get the referred item
        Specified by:
        getItem in interface Column
        Returns:
        the item
      • isReadonly

        public boolean isReadonly()
        Get value of readOnly attribute
        Specified by:
        isReadonly in interface Input
        Returns:
        true if item must be readonly
      • isMandatory

        public boolean isMandatory()
        Get value of mandatory attribute
        Specified by:
        isMandatory in interface Input
        Returns:
        true if item must be filled
      • getDisplayerName

        public String getDisplayerName()
        Get name of displayer used to show the item
        Specified by:
        getDisplayerName in interface Input
        Returns:
        displayer name
      • getValue

        public String getValue()
        Get default value
        Specified by:
        getValue in interface Input
        Returns:
        default value
      • setItem

        public void setItem​(Item item)
        Set the referred item
        Specified by:
        setItem in interface Column
        Parameters:
        item - Item to refer
      • setReadonly

        public void setReadonly​(boolean readonly)
        Set the readonly attribute
        Specified by:
        setReadonly in interface Input
      • setMandatory

        public void setMandatory​(boolean mandatory)
        Set value of mandatory attribute
        Specified by:
        setMandatory in interface Input
        Parameters:
        mandatory - true if item must be filled
      • setDisplayerName

        public void setDisplayerName​(String displayerName)
        Set name of displayer used to show the item
        Specified by:
        setDisplayerName in interface Input
        Parameters:
        displayerName - displayer name
      • setValue

        public void setValue​(String value)
        Set default value
        Specified by:
        setValue in interface Input
        Parameters:
        value - default value
      • getLabels

        public ContextualDesignations getLabels()
        Description copied from interface: Input
        Get all the labels
        Specified by:
        getLabels in interface Input
        Returns:
        an object containing the collection of the labels
      • getLabel

        public String getLabel​(String role,
                               String language)
        Description copied from interface: Input
        Get label in specific language for the given role
        Specified by:
        getLabel in interface Input
        Parameters:
        role - role for which the label is
        language - label's language
        Returns:
        wanted label as a String object. If label is not found, search label with given role and default language, if not found again, return the default label in given language, if not found again, return the default label in default language, if not found again, return empty string.