Package er.grouping

Examples of er.grouping.DRGroup



    public NSArray topHorzGroupCriteriaList() {
        NSArray hList = model().hList();
        if (hList.count() > 0) {
            DRGroup group = (DRGroup)hList.objectAtIndex(0);
            NSArray sortedCriteriaList = group.sortedCriteriaList();
            return sortedCriteriaList;
        }
        return NSArray.EmptyArray;
    }
View Full Code Here



    public NSArray topVertGroupCriteriaList() {
        NSArray arr = model().vList();
        if (arr.count() > 0) {
            DRGroup grp = (DRGroup)arr.objectAtIndex(0);
            return grp.sortedCriteriaList();
        }
        return NSArray.EmptyArray;
    }
View Full Code Here

    }
   

    public NSArray vertSubList() {
        DRMasterCriteria masterCritForCrit = topCriteriaV().masterCriteria();
        DRGroup drg = (DRGroup)model().vList().lastObject();
       
        if(drg != null){
            DRMasterCriteria bottomMasterCrit = drg.masterCriteria();
            if (masterCritForCrit.equals(bottomMasterCrit)) {
                return null;
            }
        }
        DRGroup innerGroup = (DRGroup)model().vList().objectAtIndex(currentLevelV - 1);
        return innerGroup.sortedCriteriaList();
    }
View Full Code Here

    public NSArray horzSubList() {
        // current DRGroup for row is: hGroup
        // current DRCriteria for nesting is: topCriteria
        // need list of sub criteria if any give the above
        DRGroup innerGroup;
        DRMasterCriteria masterCritForCrit = topCriteria().masterCriteria();
        if (masterCritForCrit.equals(hGroup.masterCriteria())) {
            return null;
        }
        innerGroup = (DRGroup)model().hList().objectAtIndex(currentLevel-1);
        return innerGroup.sortedCriteriaList();
    }
View Full Code Here

    }


    public NSArray horzSubList2() {
        DRMasterCriteria masterCritForCrit = topCriteria().masterCriteria();
        DRGroup grp = (DRGroup)model().hList().lastObject();
        DRMasterCriteria bottomMasterCrit = grp.masterCriteria();

        if (masterCritForCrit.equals(bottomMasterCrit)) {
            return null;
        }

        DRGroup innerGroup = (DRGroup)model().hList().objectAtIndex(currentLevel-1);
        return innerGroup.sortedCriteriaList();
    }
View Full Code Here

        if(keypaths != null && keypaths.count() > 0) {
            for (Enumeration en = keypaths.objectEnumerator(); en.hasMoreElements(); ) {
                String keypath = (String)en.nextElement();
                DRMasterCriteria crit = model().masterCriteriaForKeyPath(keypath);
                if(crit != null) {
                    DRGroup group = model().groupForMasterCriteria(crit);
                    if("Z".equals(dimension))
                        model().addToZList(group);
                    else if("H".equals(dimension))
                        model().addToHList(group);
                    else if("V".equals(dimension))
View Full Code Here

        NSMutableDictionary dict = new NSMutableDictionary();
        Enumeration en = model().groups().objectEnumerator();
        //log.debug( "currCritDict:"+currCritDict);

        while (en.hasMoreElements()) {
            DRGroup grp = (DRGroup)en.nextElement();
            DRMasterCriteria dmc = grp.masterCriteria();
            DRCriteria crt = (DRCriteria)currCritDict.objectForKey(dmc.label());
            if(crt != null) {
                dict.setObjectForKey(crt, dmc.keyDesc());

                if (crt.isTotal()) {
View Full Code Here

        return false;
    }


    public String vIndentCriteriaLabel() {
        DRGroup grp = (DRGroup)model().vList().objectAtIndex(vheadingIndex());
        String ky = grp.masterCriteria().label();
        DRCriteria crt = (DRCriteria)_currentZCriteria.objectForKey(ky);
        return crt.label();
    }
View Full Code Here

        int nm = 1;
        Enumeration en = model().hList().objectEnumerator();
        //log.debug( "this.model().hList():"+this.model().hList());

        while (en.hasMoreElements()) {
            DRGroup grp = (DRGroup)en.nextElement();
            nm = nm*grp.sortedCriteriaList().count();
        }

        //log.debug( "nm:"+nm);
        return nm;
    }
View Full Code Here

    public NSArray recordGroups() {
        Session s = (Session)session();
        NSArray recGrps = new NSArray();
        NSArray grps = s.reportModel().groups();
        if(grps.count() > 0){
            DRGroup grp = (DRGroup)grps.objectAtIndex(0);
            recGrps = grp.recordGroupList();
        }
        return recGrps;
    }
View Full Code Here

TOP

Related Classes of er.grouping.DRGroup

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.