@Test public void onCancelChangeButton() { elementView.onCancelChangeButton(clickEventMock); verify(elementPresenterMock, times(1)).onStopEditingItem(eq(elementView)); verify(clickEventMock, times(1)).stopPropagation(); }
@EventHandler("cancelChangeButton") public void onCancelChangeButton(ClickEvent clickEvent) { presenter.onStopEditingItem(this); clickEvent.stopPropagation(); }
ElementViewImpl implements ElementView<T> { @EventHandler("cancelChangeButton") public void onCancelChangeButton(ClickEvent clickEvent) { presenter.onStopEditingItem(this); clickEvent.stopPropagation(); } }
ElementViewImpl implements ElementView<T> { @EventHandler("cancelChangeButton") public void onCancelChangeButton(ClickEvent clickEvent) { presenter.onStopEditingItem(this); clickEvent.stopPropagation(); }  }
ElementViewImpl implements ElementView<T> { @EventHandler("cancelChangeButton") public void onCancelChangeButton(ClickEvent clickEvent) { presenter.onStopEditingItem(this); clickEvent.stopPropagation(); }  @Override void init(Presenter presenter); @Override void setItemId(String itemId); @Override String getItemId(); @Override LIElement getItemContainer(); @Override UListElement getInnerItemContainer(); @Override LIElement getItemSeparator(); @Override LIElement getSaveChange(); @Override SpanElement getFaAngleRight(); @Override ButtonElement getEditItemButton(); @Override ButtonElement getDeleteItemButton(); @Override boolean isShown(); @Override void toggleRowExpansion(boolean toExpand); @EventHandler("itemContainer") void onItemContainerClick(ClickEvent clickEvent); @EventHandler("innerItemContainer") void onInnerItemContainerClick(ClickEvent clickEvent); @EventHandler("itemSeparator") void onItemSeparatorClick(ClickEvent clickEvent); @EventHandler("faAngleRight") void onFaAngleRightClick(ClickEvent clickEvent); @EventHandler("editItemButton") void onEditItemButtonClick(ClickEvent clickEvent); @EventHandler("deleteItemButton") void onDeleteItemButtonClick(ClickEvent clickEvent); @EventHandler("saveChange") void onSaveChangeClick(ClickEvent clickEvent); @EventHandler("saveChangeButton") void onSaveChangeButtonClick(ClickEvent clickEvent); @EventHandler("cancelChangeButton") void onCancelChangeButton(ClickEvent clickEvent); }
ElementViewImpl implements ElementView<T> { @EventHandler("cancelChangeButton") public void onCancelChangeButton(ClickEvent clickEvent) { presenter.onStopEditingItem(this); clickEvent.stopPropagation(); }  @Override void init(Presenter presenter); @Override void setItemId(String itemId); @Override String getItemId(); @Override LIElement getItemContainer(); @Override UListElement getInnerItemContainer(); @Override LIElement getItemSeparator(); @Override LIElement getSaveChange(); @Override SpanElement getFaAngleRight(); @Override ButtonElement getEditItemButton(); @Override ButtonElement getDeleteItemButton(); @Override boolean isShown(); @Override void toggleRowExpansion(boolean toExpand); @EventHandler("itemContainer") void onItemContainerClick(ClickEvent clickEvent); @EventHandler("innerItemContainer") void onInnerItemContainerClick(ClickEvent clickEvent); @EventHandler("itemSeparator") void onItemSeparatorClick(ClickEvent clickEvent); @EventHandler("faAngleRight") void onFaAngleRightClick(ClickEvent clickEvent); @EventHandler("editItemButton") void onEditItemButtonClick(ClickEvent clickEvent); @EventHandler("deleteItemButton") void onDeleteItemButtonClick(ClickEvent clickEvent); @EventHandler("saveChange") void onSaveChangeClick(ClickEvent clickEvent); @EventHandler("saveChangeButton") void onSaveChangeButtonClick(ClickEvent clickEvent); @EventHandler("cancelChangeButton") void onCancelChangeButton(ClickEvent clickEvent);  }