/** * Select an item. * * @param item the item. */ private void selectItem(final Label item) { if (activeItemIndex != null) { hashTags.getWidget(activeItemIndex).removeStyleName(style.activeHashTag()); } item.addStyleName(style.activeHashTag()); activeItemIndex = hashTags.getWidgetIndex(item); }