Examples of DashboardFilterProperty


Examples of org.jboss.dashboard.ui.components.DashboardFilterProperty

    }

    public DashboardFilterProperty getPropertyInParentDashboards(String propId) {
        Dashboard parent = getDashboard().getParent();
        while (parent != null) {
            DashboardFilterProperty parentProp = parent.getDashboardFilter().getFilterPropertyById(propId);
            if (parentProp != null) return parentProp;
            parent = parent.getParent();
        }
        return null;
    }
View Full Code Here

Examples of org.jboss.dashboard.ui.components.DashboardFilterProperty

            while (it.hasNext()) {
                DataProvider dataProvider = (DataProvider) it.next();
                DataProperty[] properties = dataProvider.getDataSet().getProperties();
                for (int i = 0; i < properties.length; i++) {
                    DataProperty property = properties[i];
                    results.add(new DashboardFilterProperty(property, this));
                }
            }
        } catch (Exception e) {
            log.error("Cannot get data provider results.", e);
        }
View Full Code Here

Examples of org.jboss.dashboard.ui.components.DashboardFilterProperty

         DashboardFilterProperty[] properties = new DashboardFilterProperty[defaultProperties.length];
         // Static properties.
        for (int i = 0; i < defaultProperties.length; i++) {
            Properties staticProperty = defaultProperties[i];
            String propertyId = staticProperty.getProperty("propertyid");
            DashboardFilterProperty prop = new DashboardFilterProperty(propertyId,this);
            prop.setStaticProperty(true);
            properties[i] = prop;
        }
        return properties;
     }
View Full Code Here

Examples of org.jboss.dashboard.ui.components.DashboardFilterProperty

         if (defaultProperties == null) return null;
         for (int i = 0; i < defaultProperties.length; i++) {
            Properties staticProperty = defaultProperties[i];
            String propertyId = staticProperty.getProperty("propertyid");
            if (id.equals(propertyId)) {
                DashboardFilterProperty prop = new DashboardFilterProperty(propertyId,this);
                prop.setStaticProperty(true);
                return prop;
            }
        }
        return null;
     }
View Full Code Here

Examples of org.jboss.dashboard.ui.components.DashboardFilterProperty

    }

    public boolean filter(String propertyId, Object minValue, boolean minValueIncluded, Object maxValue, boolean maxValueIncluded, Collection allowedValues, int allowMode) throws Exception {

        // Get the filter property configuration.
        DashboardFilterProperty dashboardFilterProperty = dashboardFilter.getPropertyInFilterComponents(propertyId);

        // Apply drill-down.
        if (dashboardFilterProperty != null && dashboardFilterProperty.isDrillDownEnabled()) {
            Dashboard targetDashboard = dashboardFilterProperty.getDrillDownDashboard();
            DashboardFilter targetFilter = targetDashboard.getDashboardFilter();
            if (targetDashboard.drillDown(this, propertyId)) {
                targetFilter.addProperty(propertyId, minValue, minValueIncluded, maxValue, maxValueIncluded, allowedValues, FilterByCriteria.ALLOW_ANY);
                targetDashboard.filter();
                return true;
View Full Code Here

Examples of org.jboss.dashboard.ui.components.DashboardFilterProperty

    }

    public DashboardFilterProperty getFilterPropertyById(String id) {
        try {
            // Static properties.
            DashboardFilterProperty prop = getStaticPropertyById(id);
            if (prop != null) return prop;

            // Dynamic properties.
            DataProperty dp = getDashboard().getDataPropertyById(id);
            if (dp != null) return new DashboardFilterProperty(dp, this);
            return new DashboardFilterProperty(id, this);
        } catch (Exception e) {
            log.error("Cannot get data provider results.", e);
            return null;
        }
    }
View Full Code Here

Examples of org.jboss.dashboard.ui.components.DashboardFilterProperty

        Iterator it = dashboard.getSection().getPanels().iterator();
        while (it.hasNext()) {
            Panel p = (Panel) it.next();
            DashboardFilterHandler handler = getHandler(p);
            if (handler != null) {
                DashboardFilterProperty prop = handler.getDashboardFilterProperty(propertyId);
                if (prop != null) return prop;
            }
        }
        return null;
    }
View Full Code Here

Examples of org.jboss.dashboard.ui.components.DashboardFilterProperty

    }

    public boolean filter(String propertyId, Object minValue, boolean minValueIncluded, Object maxValue, boolean maxValueIncluded, Collection allowedValues, int allowMode) throws Exception {

        // Get the filter property configuration.
        DashboardFilterProperty dashboardFilterProperty = dashboardFilter.getPropertyInFilterComponents(propertyId);

        // Apply drill-down.
        if (dashboardFilterProperty != null && dashboardFilterProperty.isDrillDownEnabled()) {
            Dashboard targetDashboard = dashboardFilterProperty.getDrillDownDashboard();
            DashboardFilter targetFilter = targetDashboard.getDashboardFilter();
            if (targetDashboard.drillDown(this, propertyId)) {
                targetFilter.addProperty(propertyId, minValue, minValueIncluded, maxValue, maxValueIncluded, allowedValues, FilterByCriteria.ALLOW_ANY);
                targetDashboard.filter();
                return true;
View Full Code Here

Examples of org.jboss.dashboard.ui.components.DashboardFilterProperty

    }

    public DashboardFilterProperty getFilterPropertyById(String id) {
        try {
            // Static properties.
            DashboardFilterProperty prop = getStaticPropertyById(id);
            if (prop != null) return prop;

            // Dynamic properties.
            DataProperty dp = getDashboard().getDataPropertyById(id);
            if (dp != null) return new DashboardFilterProperty(dp, this);
            return new DashboardFilterProperty(id, this);
        } catch (Exception e) {
            log.error("Cannot get data provider results.", e);
            return null;
        }
    }
View Full Code Here

Examples of org.jboss.dashboard.ui.components.DashboardFilterProperty

    public DashboardFilterProperty getPropertyInFilterComponents(String propertyId) {
        if (dashboard.getSection() == null) return null;
        for (Panel panel : dashboard.getSection().getPanels()) {
            DashboardFilterHandler handler = getHandler(panel);
            if (handler != null) {
                DashboardFilterProperty prop = handler.getDashboardFilterProperty(propertyId);
                if (prop != null) return prop;
            }
        }
        return null;
    }
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.