Class ChoiceItem


  • public class ChoiceItem
    extends java.lang.Object
    Instances of this class are choice items used by the choice widget
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String instruction  
      private java.lang.String text  
    • Constructor Summary

      Constructors 
      Constructor Description
      ChoiceItem​(java.lang.String instruction)
      Constructor
      ChoiceItem​(java.lang.String instruction, java.lang.String text)
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getInstruction()  
      java.lang.String getText()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • instruction

        private final java.lang.String instruction
      • text

        private final java.lang.String text
    • Constructor Detail

      • ChoiceItem

        public ChoiceItem​(java.lang.String instruction,
                          java.lang.String text)
        Constructor
        Parameters:
        instruction - instruction of the choice
        text - text displayed under the instruction
      • ChoiceItem

        public ChoiceItem​(java.lang.String instruction)
        Constructor
        Parameters:
        instruction - instruction
    • Method Detail

      • getInstruction

        public java.lang.String getInstruction()
        Returns:
        the instruction
      • getText

        public java.lang.String getText()
        Returns:
        the text