@Test public void testActive() { customGroupItem.setActive( true ); assertTrue( customGroupItem.getStyleName().contains( "active" ) ); customGroupItem.setActive( false ); assertTrue( !customGroupItem.getStyleName().contains( "active" ) ); }
public void setActive(boolean active) { if (active) { addStyleName("active"); } else { removeStyleName("active"); } }
CustomGroupItem extends Anchor { public void setActive(boolean active) { if (active) { addStyleName("active"); } else { removeStyleName("active"); } } }
CustomGroupItem extends Anchor { public void setActive(boolean active) { if (active) { addStyleName("active"); } else { removeStyleName("active"); } } CustomGroupItem(final String text,
                           final IconType icon,
                           final Command command); }
CustomGroupItem extends Anchor { public void setActive(boolean active) { if (active) { addStyleName("active"); } else { removeStyleName("active"); } } CustomGroupItem(final String text,
                           final IconType icon,
                           final Command command); void setActive(boolean active); }
CustomGroupItem extends Anchor { public void setActive(boolean active) { if (active) { addStyleName("active"); } else { removeStyleName("active"); } } CustomGroupItem(final String text,
                           final IconType icon,
                           final Command command); void setActive(boolean active);  }