public static ControlInfo coerce(Argument arg) throws ArgumentFormatException { if (arg instanceof ControlInfo) { return (ControlInfo) arg; } else { return valueOf(arg.toString()); } }
public static PArray coerce(Argument arg) throws ArgumentFormatException { if (arg instanceof PArray) { return (PArray) arg; } else { return valueOf(arg.toString()); } }
private Integer getInteger(Argument val) { if (val.isEmpty()) { return null; } else { try { return PNumber.coerce(val).toIntValue(); } catch (ArgumentFormatException ex) { return null; } } }
void setValueImpl(Argument value, boolean send) { if (value == null) { throw new NullPointerException(); } Argument oldValue = this.value; if (send) { send(CallArguments.create(value)); } this.value = value; if (!Argument.equivalent(null, oldValue, value)) { pcs.firePropertyChange(property, oldValue, value); } }