Exemple #1
0
 public void set(Integer value) {
   if (value == null)
     throw new NullPointerException("Null not allowed as the value for index");
   if (value >= getItems().size())
     throw new IllegalArgumentException(
         "Index out of bounds: "
             + value
             + ", valid values are 0-"
             + (getItems().size() - 1));
   super.set(value);
 }
Exemple #2
0
 public void set(Pos value) {
   if (value == null)
     throw new NullPointerException("Null not allowed as the value for alignment");
   super.set(value);
 }
Exemple #3
0
 public void set(ArrowPosition value) {
   if (value == null)
     throw new NullPointerException("Null not allowed as the value for arrowPosition");
   super.set(value);
 }
Exemple #4
0
 public void set(ObservableList<T> value) {
   if (value == null)
     throw new NullPointerException("Null not allowed as the value for items");
   super.set(value);
 }
Exemple #5
0
 public void set(Boolean value) {
   if (value == null)
     throw new NullPointerException("Null not allowed as the value for editable");
   super.set(value);
 }
Exemple #6
0
 public void set(T value) {
   if (getItems().indexOf(value) < 0)
     throw new IllegalArgumentException("Value does not exist in the list: " + value);
   super.set(value);
 }