Package com.webobjects.foundation

Examples of com.webobjects.foundation.NSSelector


      if (factoryMethodName.endsWith(":")) {
        _valueFactoryMethodName = factoryMethodName.substring(0, factoryMethodName.length() - 1);
      } else {
        _valueFactoryMethodName = factoryMethodName;
      }
      _valueFactoryMethod = new NSSelector(_valueFactoryMethodName, _classForArgumentType());
    } else {
      _valueFactoryMethodName = null;
      _valueFactoryMethod = null;
    }
  }
View Full Code Here


  private void _setAdaptorValueConversionMethodName(String conversionMethodName) {
    if (conversionMethodName != null && conversionMethodName.length() != 0) {
      _adaptorValueConversionMethodName = conversionMethodName;
      if(adaptorValueConversionClass()!=null) {
        Class valueClass = _NSUtilities.classWithName(className());         
        _adaptorValueConversionMethod = new NSSelector(_adaptorValueConversionMethodName, new Class[]{valueClass});
      } else {
        _adaptorValueConversionMethod = new NSSelector(_adaptorValueConversionMethodName, null);
      }
    } else {
      _adaptorValueConversionMethodName = null;
      _adaptorValueConversionMethod = null;
    }
View Full Code Here

        _colorDict = null;
        _initializedDimensionArrayFromBindings = false;
        _recordGroupDisplayTypes = new NSArray(new Object[]{"SINGLE_TOTAL" , "TABLE" , "TOTALS"});
        _reportStyles = new NSArray(new Object[]{"VERTICAL_ROWS" , "NESTED_CELLS"});

        NSSelector rebuildModelSelector = new NSSelector("rebuildModel", ERXConstant.NotificationClassArray);
        NSNotificationCenter.defaultCenter().addObserver(this, rebuildModelSelector, DRReportModel.DRReportModelRebuildNotification, null);
    }
View Full Code Here

        log.debug("flatAttributeList: "+ _flatAttributeList);
        log.debug("flatAttributeListTotal: "+_flatAttributeListTotal);
        buildGrandTotal();
        buildOrderings();
       
        NSSelector synchModelSelector = new NSSelector("synchModel", ERXConstant.NotificationClassArray);
       
        NSNotificationCenter.defaultCenter().addObserver(this, synchModelSelector, DRReportModel.DRReportModelUpdateNotification, this);
        NSNotificationCenter.defaultCenter().addObserver(this, synchModelSelector, DRReportModel.DRReportModelRebuildNotification, this);
        return this;
    }
View Full Code Here

        if(v !=null)
            _key = v;
        else
            _key = null;
        if (_useMethod) {
            _selKey = new NSSelector(_key);
        }
    }
View Full Code Here

                    + "added to ClassPaths property in the Localizable.strings file.";
            }
            sourceCode = writer.toString();
            try {
                Class JavaCCtoHTML = Class.forName("JavaCCtoHTML");
                NSSelector prettyString = new NSSelector("prettyString", new Class [] {String.class});
                prettyString.invoke(JavaCCtoHTML, sourceCode);
                // sourceCode = JavaCCtoHTML.prettyString(sourceCode);
            } catch (Exception ex) {
                log.error(ex);
            }
            sourceCode = ERXStringUtilities.replaceStringByStringInString("\n\n", "<br>", sourceCode);
View Full Code Here

        super();
        setPageRefreshOnBacktrackEnabled(true);
        EOEventCenter.setPassword("4Events");
        setDefaultRequestHandler(requestHandlerForKey(directActionRequestHandlerKey()));
        statisticsStore().setPassword("4Stats");
        NSNotificationCenter.defaultCenter().addObserver(this, new NSSelector("didFinishedLaunching", ERXConstant.NotificationClassArray), WOApplication.ApplicationDidFinishLaunchingNotification, null);
        /* ** Put your application initialization code here ** */
        System.out.println("Welcome to " + this.name() + "!");
    }
View Full Code Here

    public static void registerPayPalNotificationListenerObservers() {
        Object observer = PayPalNotificationListener.observer();
        _retainer.addObject(observer);

        NSNotificationCenter.defaultCenter().addObserver(observer,
                              new NSSelector("handleDeniedPaymentNotification", NotificationClassArray),
                              PayPalNotificationListener.DeniedPayPalPaymentReceivedNotification,
                              null);
        NSNotificationCenter.defaultCenter().addObserver(observer,
                              new NSSelector("handleFailedPaymentNotification", NotificationClassArray),
                              PayPalNotificationListener.FailedPayPalPaymentReceivedNotification,
                              null);
        NSNotificationCenter.defaultCenter().addObserver(observer,
                              new NSSelector("handleInvalidPaymentNotification", NotificationClassArray),
                              PayPalNotificationListener.InvalidPayPalPaymentReceivedNotification,
                              null);
        NSNotificationCenter.defaultCenter().addObserver(observer,
                              new NSSelector("handlePendingPaymentNotification", NotificationClassArray),
                              PayPalNotificationListener.PendingPayPalPaymentReceivedNotification,
                              null);
        NSNotificationCenter.defaultCenter().addObserver(observer,
                              new NSSelector("handleValidPaymentNotification", NotificationClassArray),
                              PayPalNotificationListener.ValidPayPalPaymentReceivedNotification,
                              null);
    }
View Full Code Here

    protected NSArray _criteriaArray;
    protected String _componentName;
   
    public WRQuickReport(WOContext c){
        super(c);
        NSSelector synchModelSelector = new NSSelector("synchModel", ERXConstant.NotificationClassArray);
        NSNotificationCenter.defaultCenter().addObserver(this, synchModelSelector, DRReportModel.DRReportModelUpdateNotification, null);
        NSNotificationCenter.defaultCenter().addObserver(this, synchModelSelector, DRReportModel.DRReportModelRebuildNotification, null);
    }
View Full Code Here

    }


    protected static void initialize() {
        NSNotificationCenter center = NSNotificationCenter.defaultCenter();
        NSSelector sel = ERXSelectorUtilities.notificationSelector("updateTimestampForEditingContext");
        Observer observer = new Observer();
        ERXRetainer.retain(observer);
        center.addObserver(observer, sel, ERXExtensions.objectsWillChangeInEditingContext, null);
    }
View Full Code Here

TOP

Related Classes of com.webobjects.foundation.NSSelector

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.