(Object[] options, Object val)
| 250 | } |
| 251 | |
| 252 | private int getOptionIndex(Object[] options, Object val) { |
| 253 | if (options != null) |
| 254 | for (int i = 0; i < options.length; i++) { |
| 255 | if (options[i] == val) |
| 256 | return i; |
| 257 | } |
| 258 | return -1; |
| 259 | } |
| 260 | |
| 261 | public Object getValue() { |
| 262 | if (wantsInput || options == null) |