Examples of ShowCurrentScreenResponse


Examples of org.jboss.dashboard.ui.controller.responses.ShowCurrentScreenResponse

            File file = (File) request.getFilesByParamName().get("importFile");
            ImportResult[] results = getExportManager().load(new FileInputStream(file));
            getSessionInfo().setImportResult(results);
            return new ShowPanelPage(panel, request, PAGE_IMPORT_PREVIEW);
        }
        return new ShowCurrentScreenResponse();
    }
View Full Code Here

Examples of org.jboss.dashboard.ui.controller.responses.ShowCurrentScreenResponse

                log.error("Error importing KPIs from file (" + file + ")", e);
                messagesHandler.addError(new ExportHandlerMessage("import.kpis.importAbortedError", new Object[] {}).getMessage(LocaleManager.currentLocale()));
            }
            setComponentIncludeJSP(getKpiImportResultJSP());
        }
        return new ShowCurrentScreenResponse();
    }
View Full Code Here

Examples of org.jboss.dashboard.ui.controller.responses.ShowCurrentScreenResponse

        Dashboard dashboard = DashboardHandler.lookup().getCurrentDashboard();
        Object selectedValue = dataSetTable.getValueAt(rowIndex, columnIndex);
        if (selectedValue instanceof Interval) {
            if (dashboard.filter(selectedProperty.getPropertyId(), (Interval) selectedValue, FilterByCriteria.ALLOW_ANY)) {
                // If drill-down then force the whole screen to be refreshed.
                return new ShowCurrentScreenResponse();
            }
        } else {
            Collection values = new ArrayList();
            values.add(selectedValue);
            if (dashboard.filter(selectedProperty.getPropertyId(), null, false, null, false, values, FilterByCriteria.ALLOW_ANY)) {
                // If drill-down then force the whole screen to be refreshed.
                return new ShowCurrentScreenResponse();
            }
        }
        return null;
    }
View Full Code Here

Examples of org.jboss.dashboard.ui.controller.responses.ShowCurrentScreenResponse

        });
        modalDialog.show();

        // Force the current screen to be refreshed so the error report will be displayed.
        ControllerStatus controllerStatus = ControllerStatus.lookup();
        controllerStatus.setResponse(new ShowCurrentScreenResponse());
    }
View Full Code Here

Examples of org.jboss.dashboard.ui.controller.responses.ShowCurrentScreenResponse

    public CommandResponse actionNavigateTo(CommandRequest request) {
        String path = request.getParameter("path");
        TreeNode node = tree.getNodeByPath(path);
        if (node == null) {
            log.error("Node with path " + path + " does not exist.");
            return new ShowCurrentScreenResponse();
        }
        treeStatus.edit(node);
        return new ShowCurrentScreenResponse();
    }
View Full Code Here

Examples of org.jboss.dashboard.ui.controller.responses.ShowCurrentScreenResponse

    public CommandResponse actionExpandOrCollapse(CommandRequest request) {
        String path = request.getParameter("path");
        TreeNode node = tree.getNodeByPath(path);
        if (node == null) {
            log.error("Node with path " + path + " does not exist.");
            return new ShowCurrentScreenResponse();
        }
        if (treeStatus.isExpanded(node)) {
            treeStatus.collapse(node);
        } else {
            treeStatus.expand(node);
        }
        return new ShowCurrentScreenResponse();
    }
View Full Code Here

Examples of org.jboss.dashboard.ui.controller.responses.ShowCurrentScreenResponse

                if (allowedValues == null && minValue == null && maxValue == null) continue;

                // Set the filter with this property.
                Dashboard currentDashboard = DashboardHandler.lookup().getCurrentDashboard();
                if (currentDashboard.filter(dashboardFilterProperty.getPropertyId(), minValue, true, maxValue, true, allowedValues, FilterByCriteria.ALLOW_ANY)) {
                    return new ShowCurrentScreenResponse();
                }
            }
        } catch (Exception e) {
            log.error("Error trying to filter properties for dashboard", e);
        }
View Full Code Here

Examples of org.jboss.dashboard.ui.controller.responses.ShowCurrentScreenResponse

    public CommandResponse actionClear(CommandRequest request) {
        try {
            Dashboard dashboard = getDashboard();
            if (dashboard.unfilter()) {
                return new ShowCurrentScreenResponse();
            }
        } catch (Exception e) {
            log.error("Cannot refresh dashboard.",e);
        }
        return null;
View Full Code Here

Examples of org.jboss.dashboard.ui.controller.responses.ShowCurrentScreenResponse

        if (propertyToDelete == null || propertyToDelete.trim().length() == 0) return null;

        try {
            Dashboard dashboard = getDashboard();
            if (dashboard.unfilter(propertyToDelete)) {
                return new ShowCurrentScreenResponse();
            }
        } catch (Exception e) {
            log.error("Cannot remove filter property.",e);
        }
        return null;
View Full Code Here

Examples of org.jboss.dashboard.ui.controller.responses.ShowCurrentScreenResponse

        }

        String lang = request.getParameter("editing");
        if (lang != null && lang.trim().length() > 0) formStatus.setValue("lang", lang);

        return new ShowCurrentScreenResponse();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.