private void initBulkActions(
      final ExtendedPagedTable<ProcessInstanceSummary> extendedPagedTable) {
    bulkAbortNavLink = new AnchorListItem(constants.Bulk_Abort());
    bulkSignalNavLink = new AnchorListItem(constants.Bulk_Signal());

    final ButtonGroup bulkActions =
        new ButtonGroup() {
          {
            add(
                new org.gwtbootstrap3.client.ui.Button(constants.Bulk_Actions()) {
                  {
                    setDataToggle(Toggle.DROPDOWN);
                  }
                });
            add(
                new DropDownMenu() {
                  {
                    setPull(Pull.RIGHT);
                    add(bulkAbortNavLink);
                    add(bulkSignalNavLink);
                  }
                });
          }
        };

    bulkAbortNavLink.setIcon(IconType.BAN);
    bulkAbortNavLink.setIconFixedWidth(true);
    bulkAbortNavLink.addClickHandler(
        new ClickHandler() {
          @Override
          public void onClick(ClickEvent event) {
            presenter.bulkAbort(selectedProcessInstances);
            selectedProcessInstances.clear();
            extendedPagedTable.redraw();
          }
        });

    bulkSignalNavLink.setIcon(IconType.BELL);
    bulkSignalNavLink.setIconFixedWidth(true);
    bulkSignalNavLink.addClickHandler(
        new ClickHandler() {
          @Override
          public void onClick(ClickEvent event) {
            presenter.bulkSignal(selectedProcessInstances);
            selectedProcessInstances.clear();
            extendedPagedTable.redraw();
          }
        });

    extendedPagedTable.getRightActionsToolbar().add(bulkActions);

    controlBulkOperations();
  }
 public ResetPerspectivesMenuBuilder() {
   link.setIcon(IconType.MEDKIT);
   link.setTitle(CommonConstants.INSTANCE.ResetPerspectivesTooltip());
   link.addClickHandler(
       new ClickHandler() {
         @Override
         public void onClick(ClickEvent event) {
           if (Window.confirm(CommonConstants.INSTANCE.PromptResetPerspectives())) {
             final PerspectiveActivity currentPerspective =
                 perspectiveManager.getCurrentPerspective();
             perspectiveManager.removePerspectiveStates(
                 new Command() {
                   @Override
                   public void execute() {
                     if (currentPerspective != null) {
                       // Use ForcedPlaceRequest to force re-loading of the current Perspective
                       final PlaceRequest pr =
                           new ForcedPlaceRequest(
                               currentPerspective.getIdentifier(),
                               currentPerspective.getPlace().getParameters());
                       placeManager.goTo(pr);
                     }
                   }
                 });
           }
         }
       });
 }
  @Inject
  PerunRegistrarView(final PerunRegistrarViewUiBinder binder) {

    initWidget(binder.createAndBindUi(this));

    // put logo
    Image logo = Utils.perunInstanceLogo();
    logo.setWidth("auto");
    logo.setHeight("50px");
    navbarHeader.insert(logo, 0);

    // FIXME - temporary disabled
    help.setVisible(false);

    // init buttons
    application.setText(translation.application());
    myApplications.setText(translation.myApplications());
    help.setText(translation.help());
    language.setText(translation.language());
    logout.setText(translation.logout());

    if (Utils.getNativeLanguage() != null) {

      if ("default".equals(LocaleInfo.getCurrentLocale().getLocaleName())
          || "en".equalsIgnoreCase(LocaleInfo.getCurrentLocale().getLocaleName())) {
        // use english name of native language
        czech.setText(Utils.getNativeLanguage().get("englishName"));
        english.setIcon(IconType.CHECK);
        english.setIconPosition(IconPosition.RIGHT);
        czech.setIcon(null);
      } else {
        // use native name of native language
        czech.setText(Utils.getNativeLanguage().get("nativeName"));
        czech.setIcon(IconType.CHECK);
        czech.setIconPosition(IconPosition.RIGHT);
        english.setIcon(null);
      }
      english.setText(translation.english());

    } else {
      // no language switching
      language.setVisible(false);
    }

    english.setText(translation.english());
  }
 public AboutMenuBuilder() {
   link.setIcon(IconType.INFO_CIRCLE);
   link.setTitle(CommonConstants.INSTANCE.About());
   link.addClickHandler(
       new ClickHandler() {
         @Override
         public void onClick(ClickEvent event) {
           popup.show();
         }
       });
 }