Examples of SummaryFunction


Examples of com.smartgwt.client.widgets.grid.SummaryFunction

                        });
                        field.setWidth(240);
                    } else if ("conditionValue".equals(field.getName())) {
                        field.setWidth(140);
                    } else if ("acknowledgingSubject".equals(field.getName())) {
                        field.setSummaryFunction(new SummaryFunction() {
                            public Object getSummaryValue(Record[] records, ListGridField field) {
                                int count = 0;
                                for (Record record : records) {
                                    if (record.getAttribute("acknowledgingSubject") != null) {
                                        count++;
View Full Code Here

Examples of org.openfaces.component.table.SummaryFunction

        String functionStr = getPropertyValue(propertyName);
        if (functionStr == null) return;

        if (setAsValueExpressionIfPossible(component, propertyName, functionStr)) return;

        SummaryFunction fn = ApplicationParams.getSummaryFunctionByName(functionStr);
        if (fn != null)
            component.getAttributes().put(propertyName, fn);
        else
            throw new FacesException("Invalid value of the " + propertyName + " attribute. No such standard function with " +
                "the following name is available or registered in the application: \"" + functionStr + "\"");
View Full Code Here

Examples of org.openfaces.component.table.SummaryFunction

    public Map<String, SummaryFunction> getCustomFieldsToDefaultFunctions() {
        if (customFieldsToDefaultFunctions == null) {
            customFieldsToDefaultFunctions = new HashMap<String, SummaryFunction>();
            for (String prefix : CUSTOM_FIELD_PREFIXES) {
                for (String suffix : CUSTOM_FIELD_SUFFIXES) {
                    SummaryFunction function = !prefix.equals("string") && !prefix.equals("boolean")
                            ? (
                            suffix.equals("0") ? new SumFunction() :
                                    suffix.equals("1") ? new MinFunction() :
                                            suffix.equals("2") ? new MaxFunction() : 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.