Package er.extensions.appserver

Examples of er.extensions.appserver.ERXDisplayGroup


    /**
     * The display group's objects, filtered by the display group qualifier (if any)
     */
    public NSArray filteredObjects() {
        if (displayGroup() instanceof ERXDisplayGroup) {
            ERXDisplayGroup dg = (ERXDisplayGroup) displayGroup();
            return dg.filteredObjects();
        }
        return displayGroup().qualifier() == null ? displayGroup().allObjects() : EOQualifier.filteredArrayWithQualifier(displayGroup().allObjects(), displayGroup().qualifier());
    }
View Full Code Here


  protected void createDisplayGroup() {
    boolean useBatchingDisplayGroup = useBatchingDisplayGroup();
    if (useBatchingDisplayGroup) {
      _displayGroup = new ERXBatchingDisplayGroup();
    } else {
      _displayGroup = new ERXDisplayGroup();
    }
  }
View Full Code Here

        super(context);
        createDisplayGroup();
    }

    protected void createDisplayGroup() {
        displayGroup = new ERXDisplayGroup();
    }
View Full Code Here

        displayGroup().queryMin().removeAllObjects();
        displayGroup().queryMax().removeAllObjects();
        displayGroup().queryOperator().removeAllObjects();
        displayGroup().queryMatch().removeAllObjects();
       if (displayGroup() instanceof ERXDisplayGroup) {
            ERXDisplayGroup dg = (ERXDisplayGroup) displayGroup();
            dg.clearExtraQualifiers();
        }
        return context().page();
    }
View Full Code Here

    public WOComponent clearFilter(){
        displayGroup().setQualifier(null);
        displayGroup().updateDisplayedObjects();
       
        if (displayGroup() instanceof ERXDisplayGroup) {
            ERXDisplayGroup dg = (ERXDisplayGroup) displayGroup();
            dg.clearExtraQualifiers();
        }

        return null;
    }
View Full Code Here

    }
   
    public void setValue(Object newValue) {
        _value = newValue;
        //log.info(displayGroup());
        ERXDisplayGroup dg = (ERXDisplayGroup)displayGroup();
        EOQualifier q = null;
        if(newValue != null) {
            if(newValue != null && newValue.toString().indexOf("*") == 0) {
                newValue = newValue.toString().substring(1);
            }
            if(false) {
                q = ERXEOControlUtilities.qualifierMatchingAnyKey(queryAttributes(), EOQualifier.QualifierOperatorCaseInsensitiveLike, "*" +newValue + "*");
            } else {
                q = ERXEOControlUtilities.qualifierMatchingAnyKey(queryAttributes(), ERXRegExQualifier.MatchesSelector, newValue);
            }
        }
        dg.setQualifierForKey(q, key());
    }
View Full Code Here

  public NSArray objects() {
    NSArray objects = null;
    if(displayGroup() != null){
      if (displayGroup() instanceof ERXDisplayGroup) {
        ERXDisplayGroup dg = (ERXDisplayGroup) displayGroup();
        objects =  dg.filteredObjects();
      } else {
        objects =  displayGroup().allObjects();
      }
    }
    return objects;
View Full Code Here

    }

    public int filteredObjectsCount() {
        WODisplayGroup dg=displayGroup();
        if (dg instanceof ERXDisplayGroup) {
      ERXDisplayGroup erxdg = (ERXDisplayGroup) dg;
      return erxdg.filteredObjects().count();
    }
        int result=0;
        EOQualifier q=dg.qualifier();
        if (q!=null) {
            result=EOQualifier.filteredArrayWithQualifier(dg.allObjects(),q).count();
View Full Code Here

TOP

Related Classes of er.extensions.appserver.ERXDisplayGroup

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.