@Test public void setLink() throws Exception { presenter.setLink("http: verify(view).setLinkModeVisibility(true); verify(view).setEditModeVisibility(false); verify(view).setLink("http: verify(view).setText("http: }
public void setLink(final String text) { if (text == null || text.trim() .isEmpty()) { view.setText(""); showEdit(); } else { showLink(); view.setText(text); view.setLink(text); } }
ExternalLinkPresenter implements IsWidget { public void setLink(final String text) { if (text == null || text.trim() .isEmpty()) { view.setText(""); showEdit(); } else { showLink(); view.setText(text); view.setLink(text); } } }
ExternalLinkPresenter implements IsWidget { public void setLink(final String text) { if (text == null || text.trim() .isEmpty()) { view.setText(""); showEdit(); } else { showLink(); view.setText(text); view.setLink(text); } } @Inject  ExternalLinkPresenter(final ExternalLinkView view); }
ExternalLinkPresenter implements IsWidget { public void setLink(final String text) { if (text == null || text.trim() .isEmpty()) { view.setText(""); showEdit(); } else { showLink(); view.setText(text); view.setLink(text); } } @Inject  ExternalLinkPresenter(final ExternalLinkView view); void onEdit(); @Override Widget asWidget(); void setLink(final String text); void addChangeCallback(final Callback<String> callback); void onTextChange(final String text); void onTextChangeDone(); }
ExternalLinkPresenter implements IsWidget { public void setLink(final String text) { if (text == null || text.trim() .isEmpty()) { view.setText(""); showEdit(); } else { showLink(); view.setText(text); view.setLink(text); } } @Inject  ExternalLinkPresenter(final ExternalLinkView view); void onEdit(); @Override Widget asWidget(); void setLink(final String text); void addChangeCallback(final Callback<String> callback); void onTextChange(final String text); void onTextChangeDone();  }