Class Field


  • public final class Field
    extends Object
    A Field represents a control inside an Action.
    • Constructor Detail

      • Field

        public Field​(String name)
    • Method Detail

      • getName

        public String getName()
        Returns the name attribute.
        Returns:
        the name
      • setName

        public void setName​(String name)
        Sets the name attribute.
        Parameters:
        name - the name to set
      • getType

        public Field.FieldType getType()
        Returns the type attribute.
        Returns:
        the type
      • setType

        public void setType​(Field.FieldType type)
        Sets the type attribute.
        Parameters:
        type - the type to set
      • getValue

        public String getValue()
        Returns the value attribute.
        Returns:
        the value
      • setValue

        public void setValue​(String value)
        Sets the value attribute.
        Parameters:
        value - the value to set
      • getTitle

        public String getTitle()
        Returns the title attribute.
        Returns:
        the title
      • setTitle

        public void setTitle​(String title)
        Sets the title attribute.
        Parameters:
        title - the title to set
      • getOptional

        public boolean getOptional()
        Returns the optional attribute
        Returns:
        The optional attribute
      • setOptional

        public void setOptional​(boolean optional)
        Sets the optional attribute.
        Parameters:
        optional - Whether the field should be considered optional
      • isMulti

        public boolean isMulti()
        Returns the multi attribute
        Returns:
        The multi attribute
      • setMulti

        public void setMulti​(boolean multi)
        Sets the multi attribute
        Parameters:
        multi - Whether the field can contain multiple values
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object