@Test public void focusFirstLine() { TextBoxFormLine l = new TextBoxFormLine(employee.firstName); p.add(l); p.focusFirstLine(); assertThat(((StubTextBox) l.getTextBox()).isFocused(), is(true)); }
public void focusFirstLine() { if (formLines.size() > 0) { formLines.get(0).focus(); } }
FormPresenter extends BasicPresenter<IsFlowPanel> { public void focusFirstLine() { if (formLines.size() > 0) { formLines.get(0).focus(); } } }
FormPresenter extends BasicPresenter<IsFlowPanel> { public void focusFirstLine() { if (formLines.size() > 0) { formLines.get(0).focus(); } } FormPresenter(String id);  FormPresenter(String id, FormLayout layout); }
FormPresenter extends BasicPresenter<IsFlowPanel> { public void focusFirstLine() { if (formLines.size() > 0) { formLines.get(0).focus(); } } 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 focusFirstLine() { if (formLines.size() > 0) { formLines.get(0).focus(); } } 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);  }