Examples of NSKeyValueCoding


Examples of com.webobjects.foundation.NSKeyValueCoding

   
  // ERXModernNavigationMenu Support
 
    public NSKeyValueCoding navigationContext() {
     
        NSKeyValueCoding context = (NSKeyValueCoding)session().objectForKey("navigationContext");

        if (context().page() instanceof D2WPage) {
            context = ((D2WPage)context().page()).d2wContext();
        }
View Full Code Here

Examples of com.webobjects.foundation.NSKeyValueCoding

   
  // ERXModernNavigationMenu Support
 
    public NSKeyValueCoding navigationContext() {
     
        NSKeyValueCoding context = (NSKeyValueCoding)session().objectForKey("navigationContext");

        if (context().page() instanceof D2WPage) {
            context = ((D2WPage)context().page()).d2wContext();
        }
View Full Code Here

Examples of com.webobjects.foundation.NSKeyValueCoding

    public NavigationMenu(WOContext context) {
        super(context);
    }

    public NSKeyValueCoding navigationContext() {
        NSKeyValueCoding context = null;
        if (context().page() instanceof D2WPage) {
            context = ((D2WPage)context().page()).d2wContext();
        }
        return context;
    }
View Full Code Here

Examples of com.webobjects.foundation.NSKeyValueCoding

   * @return true if the keyPath is in the prefetchingKeyPaths option
   */
  protected boolean isKeyPathRequested(String keyPath) {
    if (_prefetchingKeyPaths == null) {
      NSMutableSet<String> prefetchingKeyPaths = new NSMutableSet<String>();
      NSKeyValueCoding options = options();
      if (options != null) {
        String prefetchingKeyPathsStr = (String) options.valueForKey("prefetchingKeyPaths");
        if (prefetchingKeyPathsStr != null) {
          for (String prefetchingKeyPath : prefetchingKeyPathsStr.split(",")) {
            prefetchingKeyPaths.addObject(prefetchingKeyPath);
          }
        }
View Full Code Here

Examples of com.webobjects.foundation.NSKeyValueCoding

     *
     * @param key
     */
    protected Object userPreferencesValueForKey(String key) {
        Object result = null;
        NSKeyValueCoding userPreferences = (NSKeyValueCoding) d2wContext().valueForKey("userPreferences");
        if (userPreferences != null) {
            result = userPreferences.valueForKey(key);
        }
        return result;
    }
View Full Code Here

Examples of com.webobjects.foundation.NSKeyValueCoding

  // ERXModernNavigationMenu Support

  public NSKeyValueCoding navigationContext()
  {

    NSKeyValueCoding context = (NSKeyValueCoding) session().objectForKey("navigationContext");

    if (context().page() instanceof D2WPage)
    {
      context = ((D2WPage) context().page()).d2wContext();
    }
View Full Code Here

Examples of com.webobjects.foundation.NSKeyValueCoding

   
  // ERXModernNavigationMenu Support
 
    public NSKeyValueCoding navigationContext() {
     
        NSKeyValueCoding context = (NSKeyValueCoding)session().objectForKey("navigationContext");

        if (context().page() instanceof D2WPage) {
            context = ((D2WPage)context().page()).d2wContext();
        }
View Full Code Here

Examples of com.webobjects.foundation.NSKeyValueCoding

   * @return 複数形処理されている文字列
   * </span>
   */
  public String plurifiedString(String name, int count) {
    if (name != null) {
      NSKeyValueCoding exceptions = (NSKeyValueCoding) valueForKey(KEY_LOCALIZER_EXCEPTIONS);
      if (exceptions != null) {
        String exception = (String) exceptions.valueForKey(name + "." + count);
        if (exception == null) {
          exception = (String) exceptions.valueForKey(name);
        }
        if (exception != null) {
          return exception;
        }
      }
View Full Code Here

Examples of com.webobjects.foundation.NSKeyValueCoding

   * @return 単数形処理されている文字列
   * </span>
   */
  public String singularifiedString(String value) {
    if (value != null) {
      NSKeyValueCoding exceptions = (NSKeyValueCoding) valueForKey(KEY_LOCALIZER_EXCEPTIONS);
      if (exceptions != null) {
        String exception = (String) exceptions.valueForKey(value + ".singular");
        if (exception != null) {
          return exception;
        }
      }
    }
View Full Code Here

Examples of com.webobjects.foundation.NSKeyValueCoding

    }
    return _userPreferences;
  }
 
  static NSKeyValueCoding userPreferences(WOSession session) {
    NSKeyValueCoding result = null;
    Class prefClass = ERXPatcher.classForName("ERCoreUserPreferences");
    if (prefClass == null) {
      result = (NSKeyValueCoding) session.objectForKey("ERCoreUserPreferences");
      if (result == null) {
        result = new NSMutableDictionary();
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.