What is the difference between set(String)
and setValue(String)
in the SimpleStringProperty class?
I know that set(String)
is der
StringProperty.java :
@Override
public void setValue(String v) {
set(v);
}
StringPropertyBase.java:
@Override
public void set(String newValue) {
if (isBound()) {
throw new java.lang.RuntimeException("A bound value cannot be set.");
}
if ((value == null)? newValue != null : !value.equals(newValue)) {
value = newValue;
markInvalid();
}
}
In common case, you can open sources from open javafx and see that.