protected void initMoveButtons() { Action moveUpAction = new ItemTrackingAction("moveUp") .withCaption("") .withHandler(event -> { Set<CategoryAttribute> selected = categoryAttrsTable.getSelected(); .withCaption("") .withHandler(event -> { Set<CategoryAttribute> selected = categoryAttrsTable.getSelected();
.withCaption(getMessage("actions.Copy")) .withHandler(event -> { userManagementService.copyRole(rolesTable.getSingleSelected().getId()); .withCaption(getMessage("assignToUsers")) .withHandler(event -> { Set<Role> selected = rolesTable.getSelected();
.withCaption(getMessage("entityRestore.restore")) .withPrimary(true) .withHandler(event ->
.withCaption(getMessage("download")) .withHandler(event -> { FileDescriptor fileDescriptor = filesTable.getSingleSelected();
.withCaption(getMessage("copy")) .withHandler(event -> { Report report = reportsTable.getSingleSelected(); .withCaption(getMessage("runReport")) .withHandler(event -> { Report report = reportsTable.getSingleSelected();
.withCaption(getMessage("actions.constraint.moveToGroup")) .withIcon("icons/move.png") .withHandler(e ->
@Override public void init(Map<String, Object> params) { super.init(params); List<Report> reports = reportsParameter; if (reports == null) { reports = reportGuiManager.getAvailableReports(screenParameter, userSessionSource.getUserSession().getUser(), null); } if (reportsParameter != null) { gridFilter.setVisible(false); } for (Report report : reports) { reportDs.includeItem(report); } Action runAction = new ItemTrackingAction(RUN_ACTION_ID) .withCaption(getMessage("runReport")) .withHandler(e -> { Report report = reportsTable.getSingleSelected(); if (report != null) { report = getDsContext().getDataSupplier().reload(report, ReportService.MAIN_VIEW_NAME); reportGuiManager.runReport(report, ReportRun.this); } }); reportsTable.addAction(runAction); reportsTable.setItemClickAction(runAction); addAction(new BaseAction("applyFilter") .withShortcut(clientConfig.getFilterApplyShortcut()) .withHandler(e -> { filterReports(); })); }
.withCaption(getMessage("action.inspect")) .withHandler(event -> { Set<ManagedBeanInfo> selected = mbeansTable.getSelected();