@Test public void cancelButtonDoesNotTouchProperties() { final DummyUiCommand command = new DummyUiCommand(); final StringProperty name = stringProperty("name").max(10); p.add(new TextBoxFormLine(name)); ButtonFormAction action = new ButtonFormAction(command, "cancel", false); p.add(action); assertThat(name.isTouched(), is(false)); ((StubButton) action.getButton()).click(); assertThat(name.isTouched(), is(false)); assertThat(command.getExecutions(), is(1)); }
public void add(FormLine line) { formLines.add(line); line.bind(this, all, binder); renderNeeded(); }
FormPresenter extends BasicPresenter<IsFlowPanel> { public void add(FormLine line) { formLines.add(line); line.bind(this, all, binder); renderNeeded(); } }
FormPresenter extends BasicPresenter<IsFlowPanel> { public void add(FormLine line) { formLines.add(line); line.bind(this, all, binder); renderNeeded(); } FormPresenter(String id);  FormPresenter(String id, FormLayout layout); }
FormPresenter extends BasicPresenter<IsFlowPanel> { public void add(FormLine line) { formLines.add(line); line.bind(this, all, binder); renderNeeded(); } FormPresenter(String id);  FormPresenter(String id, FormLayout layout); @Override void onBind(); PropertyGroup allValid(); void add(FormLine line); void add(FormAction action); void focusFirstLine(); String getId(); ArrayList<FormLine> getFormLines(); ArrayList<FormAction> getFormActions(); void setDefaultAction(FormAction defaultAction); void watchForEnterKey(final HasAllKeyHandlers source); }
FormPresenter extends BasicPresenter<IsFlowPanel> { public void add(FormLine line) { formLines.add(line); line.bind(this, all, binder); renderNeeded(); } FormPresenter(String id);  FormPresenter(String id, FormLayout layout); @Override void onBind(); PropertyGroup allValid(); void add(FormLine line); void add(FormAction action); void focusFirstLine(); String getId(); ArrayList<FormLine> getFormLines(); ArrayList<FormAction> getFormActions(); void setDefaultAction(FormAction defaultAction); void watchForEnterKey(final HasAllKeyHandlers source);  }