Lines Matching defs:list
48 * model's <code>value</code> or <code>list</code> properties changes.
62 private List<?> list;
82 this.list = values;
102 this.list = Arrays.asList(values);
109 * The model's list will contain a single
120 * @return the value of the <code>list</code> property
124 return list;
129 * Changes the list that defines this sequence and resets the index
130 * of the models <code>value</code> to zero. Note that <code>list</code>
133 * This method fires a <code>ChangeEvent</code> if <code>list</code> is
134 * not equal to the current list.
136 * @param list the sequence that this model represents
137 * @throws IllegalArgumentException if <code>list</code> is
141 public void setList(List<?> list) {
142 if ((list == null) || (list.size() == 0)) {
143 throw new IllegalArgumentException("invalid list");
145 if (!list.equals(this.list)) {
146 this.list = list;
161 return list.get(index);
184 int index = list.indexOf(elt);
205 return (index >= (list.size() - 1)) ? null : list.get(index + 1);
219 return (index <= 0) ? null : list.get(index - 1);
230 int max = list.size();
238 Object value = list.get(counter);