@Test public void test_dontPaintHasFormItemClickHandlersAttributeWhenNoHandlerRegistered() throws PaintException { final PaintTarget paintTarget = mock(JsonPaintTarget.class); formItemIcon.paintContent(paintTarget); verify(paintTarget, never()).addAttribute(eq("*hasFormItemClickHandlers"), anyBoolean()); }
@Override public void paintContent(PaintTarget target) throws PaintException { if (!formItemClickHandlers.isEmpty()) { target.addAttribute("*hasFormItemClickHandlers", true); } super.paintContent(target); }
FormItemIcon extends DataClass implements HasFormItemClickHandlers { @Override public void paintContent(PaintTarget target) throws PaintException { if (!formItemClickHandlers.isEmpty()) { target.addAttribute("*hasFormItemClickHandlers", true); } super.paintContent(target); } }
FormItemIcon extends DataClass implements HasFormItemClickHandlers { @Override public void paintContent(PaintTarget target) throws PaintException { if (!formItemClickHandlers.isEmpty()) { target.addAttribute("*hasFormItemClickHandlers", true); } super.paintContent(target); }  }
FormItemIcon extends DataClass implements HasFormItemClickHandlers { @Override public void paintContent(PaintTarget target) throws PaintException { if (!formItemClickHandlers.isEmpty()) { target.addAttribute("*hasFormItemClickHandlers", true); } super.paintContent(target); }  void setHeight(Integer height); void setName(String name); String getName(); void setNeverDisable(Boolean neverDisable); Boolean getNeverDisable(); void setPrompt(String prompt); String getPrompt(); void setShowFocused(Boolean showFocused); Boolean getShowFocused(); void setShowFocusedWithItem(Boolean showFocusedWithItem); Boolean getShowFocusedWithItem(); void setShowOver(Boolean showOver); Boolean getShowOver(); void setSrc(String src); String getSrc(); void setTabIndex(Integer tabIndex); Integer getTabIndex(); void setWidth(Integer width); @Override HandlerRegistration addFormItemClickHandler(final FormItemClickHandler handler); @Override void paintContent(PaintTarget target); @Override void changeVariables(Object source, Map<String, Object> variables); }
FormItemIcon extends DataClass implements HasFormItemClickHandlers { @Override public void paintContent(PaintTarget target) throws PaintException { if (!formItemClickHandlers.isEmpty()) { target.addAttribute("*hasFormItemClickHandlers", true); } super.paintContent(target); }  void setHeight(Integer height); void setName(String name); String getName(); void setNeverDisable(Boolean neverDisable); Boolean getNeverDisable(); void setPrompt(String prompt); String getPrompt(); void setShowFocused(Boolean showFocused); Boolean getShowFocused(); void setShowFocusedWithItem(Boolean showFocusedWithItem); Boolean getShowFocusedWithItem(); void setShowOver(Boolean showOver); Boolean getShowOver(); void setSrc(String src); String getSrc(); void setTabIndex(Integer tabIndex); Integer getTabIndex(); void setWidth(Integer width); @Override HandlerRegistration addFormItemClickHandler(final FormItemClickHandler handler); @Override void paintContent(PaintTarget target); @Override void changeVariables(Object source, Map<String, Object> variables);  }