json/src/main/java/org/netbeans/html/json/spi/Proto.java
branchNonMutable258088
changeset 1054 4c40ceb185e5
parent 1028 453e44c757ff
child 1055 c61d247f087a
     1.1 --- a/json/src/main/java/org/netbeans/html/json/spi/Proto.java	Sun Dec 13 21:12:26 2015 +0100
     1.2 +++ b/json/src/main/java/org/netbeans/html/json/spi/Proto.java	Mon Feb 22 06:09:33 2016 +0100
     1.3 @@ -48,6 +48,7 @@
     1.4  import net.java.html.BrwsrCtx;
     1.5  import net.java.html.json.ComputedProperty;
     1.6  import net.java.html.json.Model;
     1.7 +import net.java.html.json.Property;
     1.8  import org.netbeans.html.json.impl.Bindings;
     1.9  import org.netbeans.html.json.impl.JSON;
    1.10  import org.netbeans.html.json.impl.JSON.WS;
    1.11 @@ -463,7 +464,10 @@
    1.12       * @param <T> the type of the list elements
    1.13       * @param propName name of a property this list is associated with
    1.14       * @param onChange index of the property to use when the list is modified
    1.15 -     *   during callback to {@link Type#onChange(java.lang.Object, int)}
    1.16 +     *   during callback to {@link Type#onChange(java.lang.Object, int)}.
    1.17 +     *   If the value is {@link Integer#MIN_VALUE}, then the list is
    1.18 +     *   not fully {@link Property#mutable()} and throws {@link UnsupportedOperationException}
    1.19 +     *   on such attempts.
    1.20       * @param dependingProps the array of {@link ComputedProperty derived properties}
    1.21       *   that depend on the value of the list
    1.22       * @return new, empty list associated with this proto-object and its model