Is your field added to a FormPanel?
Printable View
No, I add it into ContentPanel with AbsoluteLayout.
Try wrapping then to a FormPanel.
This is needed for Field events to work properly.
Regards,
Michel.
Thanks for the nice component!
please tell me how to create a Template for Date and Time SpinnerField ?
like HH:mm
or
DD:MM:YYYY ?
i've found a litte ¿bug?
When readOnly is true, spinner stills change the value of property in key events.
Mi solution:
1º setHideTrigger(true)
2º inspect readOnly in onSpinnerUpClick and onSpinnerDownClick
the result:
Suggestions:Code:protected void onSpinnerUpClick(ComponentEvent ce) {
if (getValue() == null || isValid() == false) {
return;
}
Number newValue = getValue().doubleValue() + getStepValue().doubleValue();
if (newValue.doubleValue() <= getMaxValue().doubleValue() && !readOnly) {
setValue(newValue);
fireEvent(SpinnerUpClick, ce);
}
}
protected void onSpinnerDownClick(ComponentEvent ce) {
if (getValue() == null || isValid() == false) {
return;
}
Number newValue = getValue().doubleValue() - getStepValue().doubleValue();
if (newValue.doubleValue() >= getMinValue().doubleValue() && !readOnly) {
setValue(newValue);
fireEvent(SpinnerDownClick, ce);
}
}
i think it would be more visual to a new arrow to indicate the readOnly state.
like atum, be nice if Spinner dismiss TimeField (with his combo behavior)
Thaks a lot for this field, i love it!!!
How to set new value of spinnerfield. method setValue do not work!
Thanks man this is what i was searching for :) pleased to get it free :) Cheers