Package org.jboss.dashboard.ui.controller.responses

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


        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

        if (groupByProperty != null) {
            // When the table is grouped then get the interval selected.
            Interval selectedInterval = (Interval) dataSetTable.getDataSet().getValueAt(rowIndex, 0);
            if (dashboard.filter(selectedProperty.getPropertyId(), selectedInterval, FilterByCriteria.ALLOW_ANY)) {
                // If drill-down then force the whole screen to be refreshed.
                return new ShowCurrentScreenResponse();
            }
        } else {
            Object selectedValue = dataSetTable.getValueAt(rowIndex, columnIndex);
            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

    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

    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

        }

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

        return new ShowCurrentScreenResponse();
    }
View Full Code Here

        }

        // If modal has been switched off, return new screen response without ajax so as to
        // force to repaint all screen without the component.
        if (modalSwitchedOff) {
            getControllerStatus().setResponse(new ShowCurrentScreenResponse());
            return true;
        }

        // If no AJAX then just return the current response
        // The modal window is embedded into content.jsp so it will be displayed if the whole screen is repainted.
View Full Code Here

                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

    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

        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

TOP

Related Classes of org.jboss.dashboard.ui.controller.responses.ShowCurrentScreenResponse

Copyright © 2018 www.massapicom. 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.