Bold360 and BoldChat Developer Center

FormFieldOption

com.boldchat.visitor.api

Class FormFieldOption

  • java.lang.Object
    • com.boldchat.visitor.api.FormFieldOption


  • public class FormFieldOption
    extends java.lang.Object
    Container class for storing information about an option for FormFieldType.Select or FormFieldType.Radio.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      java.lang.String getAvailableLabel() 
      java.lang.String getName() 
      java.lang.String getValue() 
      boolean isAvailable() 
      boolean isDefaultValue() 
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • isDefaultValue

        public boolean isDefaultValue()
        Returns:
        true if the value is the default one for the FormFieldType.Select or FormFieldType.Radio field.
      • getName

        public java.lang.String getName()
        Returns:
        The name of the field, this is appropriate to show to a user.
      • getValue

        public java.lang.String getValue()
        Returns:
        The value of the field, this is not appropriate to show to a user.
      • getAvailableLabel

        public java.lang.String getAvailableLabel()
        Returns:
        For deparments selection fields that have online/offlinet status, this will return the status label to be displayed to the user.
      • isAvailable

        public boolean isAvailable()
        Returns:
        For deparments selection fields that have online/offlinet status, this will indicate that the department is online.