@Test public void customLine() { p.add(new TextBoxFormLine(employee.firstName)); p.add(new StaticFormLine() { @Override public void render(FormPresenter p, FormLayout l, HTMLPanelBuilder hb) { hb.add("some custom html"); } }); assertThat(html().getHtml(), is(Join.join(new String[] { "<div class=\"form\">", "<div class=\"lines\"><ol>", "<li>", "<div class=\"label\"><label for=\"p-firstName\">First Name</label></div>", "<div class=\"value\"><div id=\"mpv-hb-3\"></div><div class=\"errors\"><div id=\"mpv-hb-4\"></div></div></div>", "</li>some custom html", "</ol></div>", "</div>" }, ""))); }
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);  }