public interface Display {
HasText ageTxtBox();
HasClickHandlers incrementButton();
}
View implements Presenter.Display interface:
@UiField Button incrementButton;
@UiField TextBox ageTxtBox;
@Override
public HasText ageTxtBox() {
return ageTxtBox;
}
@Override
public HasClickHandlers incrementButton() {
return incrementButton;
}
How do we do this for a Listbox in a view?
@UiField ListBox listBoxAdmin;
The methods on listBox I am using are:
addItem
getItemCount
getSelectedIndex
getItemText
getValue
removeItem
clear
How can I test my listbox functionality which is in Presenter with a
mock Listbox? What interface it need to implement?
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment