예제 #1
0
  @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);
        }
      }
    }
  }
예제 #2
0
 @UiHandler("perunFacs")
 public void click2(ClickEvent handler) {
   perunFacs.setActive(true);
 }
예제 #3
0
 @UiHandler("perunVos")
 public void click1(ClickEvent handler) {
   perunVos.setActive(true);
 }
예제 #4
0
 @UiHandler("perunExtsrc")
 public void click9(ClickEvent handler) {
   perunExtsrc.setActive(true);
 }
예제 #5
0
 @UiHandler("perunName")
 public void click8(ClickEvent handler) {
   perunName.setActive(true);
 }
예제 #6
0
 @UiHandler("perunOwn")
 public void click6(ClickEvent handler) {
   perunOwn.setActive(true);
 }
예제 #7
0
 @UiHandler("perunServ")
 public void click5(ClickEvent handler) {
   perunServ.setActive(true);
 }
예제 #8
0
 @UiHandler("perunAttrs")
 public void click4(ClickEvent handler) {
   perunAttrs.setActive(true);
 }
예제 #9
0
 @UiHandler("perunUsr")
 public void click3(ClickEvent handler) {
   perunUsr.setActive(true);
 }