@Test public void testShowValue() { presenter.setValue(10d); verify(view).setValue("10.0"); }
public void setValue(Number input) { Command backup = onChangeCommand; try { onChangeCommand = null; value = input; view.setValue(format(value)); } finally { onChangeCommand = backup; } }
NumberParameterEditor implements FunctionParameterEditor { public void setValue(Number input) { Command backup = onChangeCommand; try { onChangeCommand = null; value = input; view.setValue(format(value)); } finally { onChangeCommand = backup; } } }
NumberParameterEditor implements FunctionParameterEditor { public void setValue(Number input) { Command backup = onChangeCommand; try { onChangeCommand = null; value = input; view.setValue(format(value)); } finally { onChangeCommand = backup; } } @Inject  NumberParameterEditor(View view); }
NumberParameterEditor implements FunctionParameterEditor { public void setValue(Number input) { Command backup = onChangeCommand; try { onChangeCommand = null; value = input; view.setValue(format(value)); } finally { onChangeCommand = backup; } } @Inject  NumberParameterEditor(View view); @Override Widget asWidget(); void setOnChangeCommand(Command onChangeCommand); Number getValue(); void setValue(Number input); void setWidth(int width); @Override void setFocus(boolean focus); Number parse(String s); String format(Number n); }
NumberParameterEditor implements FunctionParameterEditor { public void setValue(Number input) { Command backup = onChangeCommand; try { onChangeCommand = null; value = input; view.setValue(format(value)); } finally { onChangeCommand = backup; } } @Inject  NumberParameterEditor(View view); @Override Widget asWidget(); void setOnChangeCommand(Command onChangeCommand); Number getValue(); void setValue(Number input); void setWidth(int width); @Override void setFocus(boolean focus); Number parse(String s); String format(Number n);  }