equal
deleted
inserted
replaced
345 public void addItem(String item) { |
345 public void addItem(String item) { |
346 addItem(item, -1); |
346 addItem(item, -1); |
347 } |
347 } |
348 |
348 |
349 /** |
349 /** |
350 * Adds the specified item to the the scrolling list |
350 * Adds the specified item to the scrolling list |
351 * at the position indicated by the index. The index is |
351 * at the position indicated by the index. The index is |
352 * zero-based. If the value of the index is less than zero, |
352 * zero-based. If the value of the index is less than zero, |
353 * or if the value of the index is greater than or equal to |
353 * or if the value of the index is greater than or equal to |
354 * the number of items in the list, then the item is added |
354 * the number of items in the list, then the item is added |
355 * to the end of the list. |
355 * to the end of the list. |
362 public void add(String item, int index) { |
362 public void add(String item, int index) { |
363 addItem(item, index); |
363 addItem(item, index); |
364 } |
364 } |
365 |
365 |
366 /** |
366 /** |
367 * Adds the specified item to the the list |
367 * Adds the specified item to the list |
368 * at the position indicated by the index. |
368 * at the position indicated by the index. |
369 * |
369 * |
370 * @param item the item to be added |
370 * @param item the item to be added |
371 * @param index the position at which to add the item |
371 * @param index the position at which to add the item |
372 * @deprecated replaced by <code>add(String, int)</code>. |
372 * @deprecated replaced by <code>add(String, int)</code>. |