@Test public void showCheck() { listGroupItemViewSpy.showCheck(true); verify(checkElementStyleMock, times(1)).setDisplay(eq(Style.Display.BLOCK)); verify(listGroupItemMock, times(1)).addClassName(eq(SELECTED)); reset(); listGroupItemViewSpy.showCheck(false); verify(checkElementStyleMock, times(1)).setDisplay(eq(Style.Display.NONE)); verify(listGroupItemMock, times(1)).removeClassName(eq(SELECTED)); }
@Override public void showCheck(boolean show) { if (show) { checkElement.getStyle().setDisplay(Style.Display.BLOCK); listGroupItem.addClassName(ConstantHolder.SELECTED); } else { checkElement.getStyle().setDisplay(Style.Display.NONE); listGroupItem.removeClassName(ConstantHolder.SELECTED); } }
ListGroupItemViewImpl implements ListGroupItemView { @Override public void showCheck(boolean show) { if (show) { checkElement.getStyle().setDisplay(Style.Display.BLOCK); listGroupItem.addClassName(ConstantHolder.SELECTED); } else { checkElement.getStyle().setDisplay(Style.Display.NONE); listGroupItem.removeClassName(ConstantHolder.SELECTED); } } }
ListGroupItemViewImpl implements ListGroupItemView { @Override public void showCheck(boolean show) { if (show) { checkElement.getStyle().setDisplay(Style.Display.BLOCK); listGroupItem.addClassName(ConstantHolder.SELECTED); } else { checkElement.getStyle().setDisplay(Style.Display.NONE); listGroupItem.removeClassName(ConstantHolder.SELECTED); } }  }
ListGroupItemViewImpl implements ListGroupItemView { @Override public void showCheck(boolean show) { if (show) { checkElement.getStyle().setDisplay(Style.Display.BLOCK); listGroupItem.addClassName(ConstantHolder.SELECTED); } else { checkElement.getStyle().setDisplay(Style.Display.NONE); listGroupItem.removeClassName(ConstantHolder.SELECTED); } }  @Override Widget asWidget(); @Override String getActualClassName(); @EventHandler("listGroupElement") void onFullClassNameClick(ClickEvent event); @EventHandler("faAngleRight") void onFaAngleRightClick(ClickEvent event); @Override void init(Presenter presenter); @Override void setToExpand(boolean toExpand); @Override boolean isToExpand(); @Override void unselect(); @Override void showCheck(boolean show); @Override boolean isCheckShown(); @Override void setFactName(String factName); @Override void setFactNameAndType(String factName, String factType); @Override void setParentPath(String parentPath); @Override String getParentPath(); @Override String getFactName(); @Override String getFactType(); @Override void addFactField(LIElement fieldElement); @Override void addExpandableFactField(DivElement fieldElement); @Override DivElement getListGroupExpansion(); DivElement getListGroupItem(); @Override void closeRow(); @Override void expandRow(); @Override boolean isShown(); @Override void setInstanceAssigned(boolean instanceAssigned); @Override boolean isInstanceAssigned(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
ListGroupItemViewImpl implements ListGroupItemView { @Override public void showCheck(boolean show) { if (show) { checkElement.getStyle().setDisplay(Style.Display.BLOCK); listGroupItem.addClassName(ConstantHolder.SELECTED); } else { checkElement.getStyle().setDisplay(Style.Display.NONE); listGroupItem.removeClassName(ConstantHolder.SELECTED); } }  @Override Widget asWidget(); @Override String getActualClassName(); @EventHandler("listGroupElement") void onFullClassNameClick(ClickEvent event); @EventHandler("faAngleRight") void onFaAngleRightClick(ClickEvent event); @Override void init(Presenter presenter); @Override void setToExpand(boolean toExpand); @Override boolean isToExpand(); @Override void unselect(); @Override void showCheck(boolean show); @Override boolean isCheckShown(); @Override void setFactName(String factName); @Override void setFactNameAndType(String factName, String factType); @Override void setParentPath(String parentPath); @Override String getParentPath(); @Override String getFactName(); @Override String getFactType(); @Override void addFactField(LIElement fieldElement); @Override void addExpandableFactField(DivElement fieldElement); @Override DivElement getListGroupExpansion(); DivElement getListGroupItem(); @Override void closeRow(); @Override void expandRow(); @Override boolean isShown(); @Override void setInstanceAssigned(boolean instanceAssigned); @Override boolean isInstanceAssigned(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); static final String LIST_VIEW_PF_EXPAND_ACTIVE; }