@Override public void setActiveMenuItem(String token) { int count = perunAdminMenuPills.getWidgetCount(); for (int i = 0; i < count; i++) { if (perunAdminMenuPills.getWidget(i) instanceof AnchorListItem) { AnchorListItem item = (AnchorListItem) perunAdminMenuPills.getWidget(i); if (Objects.equals(token, item.getTargetHistoryToken())) { item.setActive(true); } else { item.setActive(false); } } } int count2 = voManagerMenuPills.getWidgetCount(); for (int i = 0; i < count2; i++) { if (voManagerMenuPills.getWidget(i) instanceof AnchorListItem) { AnchorListItem item = (AnchorListItem) voManagerMenuPills.getWidget(i); if (Objects.equals(token, item.getTargetHistoryToken())) { item.setActive(true); } else { item.setActive(false); } } } int count3 = groupManagerMenuPills.getWidgetCount(); for (int i = 0; i < count3; i++) { if (groupManagerMenuPills.getWidget(i) instanceof AnchorListItem) { AnchorListItem item = (AnchorListItem) groupManagerMenuPills.getWidget(i); if (Objects.equals(token, item.getTargetHistoryToken())) { item.setActive(true); } else { item.setActive(false); } } } int count4 = facilityManagerMenuPills.getWidgetCount(); for (int i = 0; i < count4; i++) { if (facilityManagerMenuPills.getWidget(i) instanceof AnchorListItem) { AnchorListItem item = (AnchorListItem) facilityManagerMenuPills.getWidget(i); if (Objects.equals(token, item.getTargetHistoryToken())) { item.setActive(true); } else { item.setActive(false); } } } }
@UiHandler("perunFacs") public void click2(ClickEvent handler) { perunFacs.setActive(true); }
@UiHandler("perunVos") public void click1(ClickEvent handler) { perunVos.setActive(true); }
@UiHandler("perunExtsrc") public void click9(ClickEvent handler) { perunExtsrc.setActive(true); }
@UiHandler("perunName") public void click8(ClickEvent handler) { perunName.setActive(true); }
@UiHandler("perunOwn") public void click6(ClickEvent handler) { perunOwn.setActive(true); }
@UiHandler("perunServ") public void click5(ClickEvent handler) { perunServ.setActive(true); }
@UiHandler("perunAttrs") public void click4(ClickEvent handler) { perunAttrs.setActive(true); }
@UiHandler("perunUsr") public void click3(ClickEvent handler) { perunUsr.setActive(true); }