addAll needs to notify change model
authorJaroslav Tulach <jaroslav.tulach@apidesign.org>
Thu, 04 Apr 2013 09:47:35 +0200
branchmodel
changeset 928ac45e76f196e
parent 927 1b7c8f6cb621
child 929 b43aaf398748
addAll needs to notify change
javaquery/api/src/main/java/org/apidesign/bck2brwsr/htmlpage/KOList.java
     1.1 --- a/javaquery/api/src/main/java/org/apidesign/bck2brwsr/htmlpage/KOList.java	Thu Apr 04 09:47:03 2013 +0200
     1.2 +++ b/javaquery/api/src/main/java/org/apidesign/bck2brwsr/htmlpage/KOList.java	Thu Apr 04 09:47:35 2013 +0200
     1.3 @@ -48,6 +48,20 @@
     1.4      }
     1.5  
     1.6      @Override
     1.7 +    public boolean addAll(Collection<? extends T> c) {
     1.8 +        boolean ret = super.addAll(c);
     1.9 +        notifyChange();
    1.10 +        return ret;
    1.11 +    }
    1.12 +
    1.13 +    @Override
    1.14 +    public boolean addAll(int index, Collection<? extends T> c) {
    1.15 +        boolean ret = super.addAll(index, c);
    1.16 +        notifyChange();
    1.17 +        return ret;
    1.18 +    }
    1.19 +
    1.20 +    @Override
    1.21      public boolean remove(Object o) {
    1.22          boolean ret = super.remove(o);
    1.23          notifyChange();