ggeorg / gwt-mosaic

Automatically exported from code.google.com/p/gwt-mosaic
1 stars 0 forks source link

DefaultComboBoxModel addAll method should be fixed #77

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
DefaultComboBoxModel addAll method should be changed as below code 
snippet. 

 public boolean addAll(int index, Collection<? extends E> c) {
    if (super.addAll(index, c)) {
      //fireContentsChanged(this, index, index + c.size() - 1);
        fireIntervalAdded(this, index, index + c.size() - 1);
       return true;
    }
    return false;
  }

The reason, fireContentsChanged method does not render the last element of 
the collection.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
gwt-mosaic-0.4.0-rc4, gwt2.0.3 , windows7
Please provide any additional information below.

Original issue reported on code.google.com by gurselk...@gmail.com on 13 May 2010 at 5:14