Package org.jboss.dashboard.ui

Examples of org.jboss.dashboard.ui.Dashboard.filter()


            Object maxValue = result[2];
            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();
            }
        }
        return null;
    }
View Full Code Here


                Object maxValue = result[2];
                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

        DataProperty groupByProperty = dataSetTable.getGroupByProperty();
        Dashboard dashboard = DashboardHandler.lookup().getCurrentDashboard();
        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);
View Full Code Here

            }
        } 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

                Object maxValue = result[2];
                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

        DataProperty groupByProperty = dataSetTable.getGroupByProperty();
        Dashboard dashboard = DashboardHandler.lookup().getCurrentDashboard();
        if (groupByProperty != null) {
            // When the table is grouped then get the interval selected.
            Interval selectedInterval = groupByProperty.getDomain().getIntervals()[rowIndex];
            dashboard.filter(selectedProperty.getPropertyId(), selectedInterval, FilterByCriteria.ALLOW_ANY);
        } else {
            Object selectedValue = dataSetTable.getValueAt(rowIndex, columnIndex);
            Collection values = new ArrayList();
            values.add(selectedValue);
            dashboard.filter(selectedProperty.getPropertyId(), null, false, null, false, values, FilterByCriteria.ALLOW_ANY);
View Full Code Here

            dashboard.filter(selectedProperty.getPropertyId(), selectedInterval, FilterByCriteria.ALLOW_ANY);
        } else {
            Object selectedValue = dataSetTable.getValueAt(rowIndex, columnIndex);
            Collection values = new ArrayList();
            values.add(selectedValue);
            dashboard.filter(selectedProperty.getPropertyId(), null, false, null, false, values, FilterByCriteria.ALLOW_ANY);
        }
    }

    public CommandResponse actionExportData(String format) throws Exception {
        if (ExportTool.FORMAT_EXCEL.equalsIgnoreCase(format))
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.