sivarajankumar / google-web-toolkit-incubator

Automatically exported from code.google.com/p/google-web-toolkit-incubator
0 stars 0 forks source link

Can't insert anything in LineCellEditor #309

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
using insertItem(String item, int index, ColType value), we can't insert 
anything at all in the box because of the following code:

 public void insertItem(String item, int index, ColType value)
      throws IndexOutOfBoundsException {
    if (index < 0 || index >= listBox.getItemCount()) {
      throw new IndexOutOfBoundsException();
    }
    listBox.insertItem(item, index);
    itemValues.add(index, value);
  }

So assuming we used the no argument constructor, no matter what we pass in 
as inex will be out of bounds.

Original issue reported on code.google.com by pjul...@gmail.com on 20 Sep 2009 at 3:54