Package com.webobjects.foundation

Examples of com.webobjects.foundation._NSDelegate.respondsTo()


    protected Object perform(String methodName, Object args[], Object defaultResult) {
        Object result = null;
      synchronized (delegates) {
            for (int i = 0; (result == null || result.equals(defaultResult)) && i < delegates.count(); i++) {
                _NSDelegate delegate = (_NSDelegate) delegates.objectAtIndex(i);
                if (delegate.respondsTo(methodName)) {
                    result = delegate.perform(methodName, args);
                }
            }
      }
View Full Code Here


  public Object fetch() {
    if (isBatching()) {
      _NSDelegate delegate = null;
      if (delegate() != null) {
        delegate = new _NSDelegate(WODisplayGroup.Delegate.class, delegate());
        if (delegate.respondsTo("displayGroupShouldFetch") && !delegate.booleanPerform("displayGroupShouldFetch", this)) {
                return null;
        }
      }
     
      if (undoManager() != null) {
View Full Code Here

      }
      NSNotificationCenter.defaultCenter().postNotification("WODisplayGroupWillFetch", this);
      refetch();
      if (delegate != null) {
        // was initialized above
        if (delegate.respondsTo("displayGroupDidFetchObjects")) {
          delegate.perform("displayGroupDidFetchObjects", this, _displayedObjects);
        }
      }
      return null;
    }
View Full Code Here

      // refetch();
      NSMutableArray<T> selectedObjects = (NSMutableArray<T>) selectedObjects();
      NSArray<T> obj = allObjects();
      if (delegate() != null) {
        _NSDelegate delegate = new _NSDelegate(WODisplayGroup.Delegate.class, delegate());
        if (delegate.respondsTo("displayGroupDisplayArrayForObjects")) {
          delegate.perform("displayGroupDisplayArrayForObjects", this, obj);
        }
      }
      // _displayedObjects = new NSMutableArray(obj);
      setSelectedObjects(selectedObjects);
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.