return new StringScalarBox();
}
public void setData(final double value) {
if (widget instanceof TextFieldButton && isEditable()) {
final TextFieldButton tmpWidget = (TextFieldButton) widget;
// Mediator manage Confirmation message => if confirmation == true
// then the mediator
// show the confirmation message. We don't want this so we disable
// the confirmation
// message and set the value
final boolean conf = isAskConfirmation();
if (conf) {
setAskConfirmation(false);
}
// set text to new value and warn mediator (thanks to send()) which
// will change value on
// source
// tmpWidget.setText(String.valueOf(value));
// tmpWidget.send();
tmpWidget.warnMediators(new TextInformation(tmpWidget, String.valueOf(value)));
if (conf) {
// now we restore the user parameter
setAskConfirmation(conf);
}