Package org.jboss.dashboard.provider

Examples of org.jboss.dashboard.provider.DataProperty


    public int[] getNonGroupByColumnIndexes() {
        if (groupByProperty == null) return new int[] {};

        List temp = new ArrayList();
        for (int i=0; i<getColumnCount(); i++) {
            DataProperty prop = getDataProperty(i);
            if (prop != null && !groupByProperty.equals(prop)) {
                temp.add(new Integer(i));
            }
        }
        int [] results = new int[temp.size()];
View Full Code Here


        groupByProperty = null;
    }

    public void refreshGroupBy() {
        if (groupByProperty == null) return;
        DataProperty gbp = groupByProperty;
        switchGroupByOff();

        // Refresh the group by property in order the get the intervals from the current dataset.
        switchGroupByOn(gbp);
    }
View Full Code Here

    public DataProperty[] getDomainPropertiesAvailable() {
        List results = new ArrayList();
        try {
            DataProperty[] props = dataProvider.getDataSet().getProperties();
            for (int i = 0; i < props.length; i++) {
                DataProperty prop = props[i];
                results.add(prop);
            }
        } catch (Exception e) {
            log.error("Can not retrieve dataset properties.", e);
        }
View Full Code Here

    public DataProperty[] getRangePropertiesAvailable() {
        List results = new ArrayList();
        try {
            DataProperty[] props = dataProvider.getDataSet().getProperties();
            for (int i = 0; i < props.length; i++) {
                DataProperty prop = props[i];
                results.add(prop);
            }
        } catch (Exception e) {
            log.error("Can not retrieve dataset properties.", e);
        }
View Full Code Here

    public void setShowLabelsXAxis(boolean showLabelsXAxis) {
        this.showLabelsXAxis = showLabelsXAxis;
    }

    public DataSet buildXYDataSet() {
        DataProperty domainProperty = getDomainProperty();
        DataProperty rangeProperty = getRangeProperty();
        ScalarFunction scalarFunction = getRangeScalarFunction();
        DataSet sourceDataSet = domainProperty.getDataSet();
        CodeBlockTrace trace = new BuildXYDataSetTrace(domainProperty, rangeProperty, scalarFunction).begin();
        try {
            if (domainProperty == null || domainProperty.getDomain() == null) return null;
View Full Code Here

        if (table.getRowHoverClass() != null) {
            printIndent(out, indent);
            out.print("<rowhoverclass>"); out.print(StringEscapeUtils.escapeXml(table.getRowHoverClass())); out.println("</rowhoverclass>");
        }
        // Group by configuration (optional).
        DataProperty groupByProperty = table.getGroupByProperty();
        if (groupByProperty != null) {
            printIndent(out, indent++);
            out.println("<groupby>");
            DomainConfiguration domainConfig = new DomainConfiguration(groupByProperty);
            table.setGroupByConfiguration(domainConfig);
            formatDomain(domainConfig, out, indent);

            printIndent(out, indent);
            out.print("<showtotals>"); out.print(table.showGroupByTotals()); out.println("</showtotals>");

            printIndent(out, indent);
            out.print("<totalshtmlstyle>"); out.print(table.getGroupByTotalsHtmlStyle()); out.println("</totalshtmlstyle>");

            printIndent(out, --indent);
            out.println("</groupby>");
        }

        // Columns to display.
        for (int columnIndex=0; columnIndex<table.getColumnCount(); columnIndex++) {
            DataProperty columnProperty = table.getOriginalDataProperty(columnIndex);
            if (columnProperty == null) continue;
           
            TableColumn column = table.getColumn(columnIndex);
            printIndent(out, indent++);
            out.println("<column>");
View Full Code Here

        return holder.value.toString();
    }

    public String getDescription(Locale l) {
        DataFormatterRegistry dfr = DataFormatterRegistry.lookup();
        DataProperty property = getDomain().getProperty();
        if (property == null) return getLabel();

        DataPropertyFormatter dpf = dfr.getPropertyFormatter(property.getPropertyId());
        return dpf.formatValue(property, getLabel(), l);
    }
View Full Code Here

    }

    public int getPropertyColumn(DataProperty p) {
        if (p == null) return -1;
        for (int column = 0; column < properties.length; column++) {
            DataProperty property = properties[column];
            if (property == p) return column;
        }
        for (int column = 0; column < properties.length; column++) {
            DataProperty property = properties[column];
            if (property.equals(p)) return column;
        }
        return -1;
    }
View Full Code Here

    }

    public DataProperty getPropertyById(String id){
        if (id == null) return null;
        for (int i = 0; properties != null && i < properties.length; i++) {
            DataProperty property = properties[i];
            if (property.getPropertyId().equalsIgnoreCase(id)) return property;
        }
        return null;
    }
View Full Code Here

        // Create the result data set instance.
        DefaultDataSet _result = new DefaultDataSet(provider);
        _result.setPropertySize(propertyValues.length);
        for (int j=0; j<propertyValues.length; j++) {
            DataProperty dataProp = getPropertyByColumn(j);
            DataProperty _prop = dataProp.cloneProperty();
            _result.addProperty(_prop, j);
        }

        // Get only the subset of rows to be analyzed.
        Set<Integer> targetRows = preProcessFilter(targetFilter);
View Full Code Here

TOP

Related Classes of org.jboss.dashboard.provider.DataProperty

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.