Lines Matching refs:choice
47 * multiple-choice question.
56 * recognize your type as an enumeration, and offer a choice menu in
98 * public AlignmentEnum(int choice) {
99 * super(choice);
102 * public AlignmentEnum(String choice) {
103 * super(choice);
126 * Constructor, sets the choice to the default.
135 * @param choice enumerated value
137 protected BaseEnum(int choice) {
138 set(choice);
142 * Constructor to use when string of choice is available.
144 * @param choice enumerated value
146 protected BaseEnum(String choice) {
147 set(choice);
166 * of the choice.
168 * @param choice enumerated value
169 * @exception Error when an invalid choice is given
171 public void set(int choice) {
172 if (getHelper().isValid(choice))
173 currentChoice = new Integer(choice);
179 new Integer(choice),
187 * of the choice.
189 * @param choice string version of the enumerated value
190 * @exception Error when an invalid choice is given
192 public void set(String choice) {
193 if (getHelper().isValid(choice))
194 currentChoice = getHelper().getInteger(choice);
200 choice,