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); }
public void set(Pos value) { if (value == null) throw new NullPointerException("Null not allowed as the value for alignment"); super.set(value); }
public void set(ArrowPosition value) { if (value == null) throw new NullPointerException("Null not allowed as the value for arrowPosition"); super.set(value); }
public void set(ObservableList<T> value) { if (value == null) throw new NullPointerException("Null not allowed as the value for items"); super.set(value); }
public void set(Boolean value) { if (value == null) throw new NullPointerException("Null not allowed as the value for editable"); super.set(value); }
public void set(T value) { if (getItems().indexOf(value) < 0) throw new IllegalArgumentException("Value does not exist in the list: " + value); super.set(value); }