Class FormImpl

    • Constructor Detail

      • FormImpl

        public FormImpl()
        Constructor
    • Method Detail

      • getName

        public String getName()
        Get the name of this form
        Specified by:
        getName in interface Form
        Returns:
        form's name
      • getRole

        public String getRole()
        Description copied from interface: Form
        Get the role
        Specified by:
        getRole in interface Form
        Returns:
        the role name
      • getHTMLFileName

        public String getHTMLFileName()
        Get the name of HTML file to show this form if no HTML file is defined, XMLForm will be used to create the form
        Specified by:
        getHTMLFileName in interface Form
        Returns:
        form's name
      • setHTMLFileName

        public void setHTMLFileName​(String htmlFileName)
        Set the name of HTML file to show this form if no HTML file is defined, XMLForm will be used to display the form
        Specified by:
        setHTMLFileName in interface Form
      • getInputs

        public Input[] getInputs()
        Get the inputs
        Specified by:
        getInputs in interface Form
        Returns:
        the inputs as an array
      • getInput

        public Input getInput​(int idx)
        Description copied from interface: Form
        Get the input specified by the index
        Specified by:
        getInput in interface Form
        Parameters:
        idx - the index
        Returns:
        the items as a Vector
      • getInput

        public Input getInput​(Input reference)
        Description copied from interface: Form
        Get the input specified by item and / or value
        Specified by:
        getInput in interface Form
        Parameters:
        reference - the reference object
        Returns:
        the items as a Vector
      • addInput

        public void addInput​(Input input)
        Description copied from interface: Form
        Add an input
        Specified by:
        addInput in interface Form
      • iterateInput

        public Iterator<Input> iterateInput()
        Description copied from interface: Form
        Iterate through the inputs
        Specified by:
        iterateInput in interface Form
        Returns:
        an iterator
      • createInput

        public Input createInput()
        Description copied from interface: Form
        Create and return and object implementing Input
        Specified by:
        createInput in interface Form
      • getTitles

        public ContextualDesignations getTitles()
        Description copied from interface: Form
        Get all the titles
        Specified by:
        getTitles in interface Form
        Returns:
        an object containing the collection of the tables
      • getTitle

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

        public void setName​(String name)
        Set the name of this form
        Specified by:
        setName in interface Form
        Parameters:
        name - form's name
      • setRole

        public void setRole​(String role)
        Description copied from interface: Form
        Set the role name
        Specified by:
        setRole in interface Form
        Parameters:
        role - name to set