Class Field


  • public final class Field
    extends java.lang.Object
    A Field represents a control inside an Action.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Field.FieldType  
    • Constructor Summary

      Constructors 
      Constructor Description
      Field​(java.lang.String name)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      java.lang.String getName()
      Returns the name attribute.
      boolean getOptional()
      Returns the optional attribute
      java.lang.String getTitle()
      Returns the title attribute.
      Field.FieldType getType()
      Returns the type attribute.
      java.lang.String getValue()
      Returns the value attribute.
      int hashCode()  
      boolean isMulti()
      Returns the multi attribute
      void setMulti​(boolean multi)
      Sets the multi attribute
      void setName​(java.lang.String name)
      Sets the name attribute.
      void setOptional​(boolean optional)
      Sets the optional attribute.
      void setTitle​(java.lang.String title)
      Sets the title attribute.
      void setType​(Field.FieldType type)
      Sets the type attribute.
      void setValue​(java.lang.String value)
      Sets the value attribute.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Field

        public Field​(java.lang.String name)
    • Method Detail

      • getName

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

        public void setName​(java.lang.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 java.lang.String getValue()
        Returns the value attribute.
        Returns:
        the value
      • setValue

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

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

        public void setTitle​(java.lang.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
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object