Examples of valueInComponent()


Examples of com.webobjects.appserver.WOAssociation.valueInComponent()

     }
     if(_styles.count() > 0) {
       for (Enumeration enumerator = _styles.keyEnumerator(); enumerator.hasMoreElements();) {
         String key = (String) enumerator.nextElement();
         WOAssociation association = (WOAssociation) _styles.objectForKey(key);
         Object value = association.valueInComponent(component);
         if(value != null) {
           String stringValue;
           if("background-image".equals(key)) {
             if (value instanceof NSData) {
               NSData data = (NSData) value;
View Full Code Here

Examples of com.webobjects.appserver.WOAssociation.valueInComponent()

             }

             if (displayStringAssociation != null || _value != null) {

        if (displayStringAssociation != null) {
                    Object displayString = displayStringAssociation.valueInComponent(parent);
                    if (displayString != null)
                    {
                        displayStringAsString = displayString.toString();
                        if (_value != null)
                        {
View Full Code Here

Examples of com.webobjects.appserver.WOAssociation.valueInComponent()

   */
  protected Object valueInComponent(WOComponent component) {
  Object value = component.valueForBinding(_bindingName);
    if (value instanceof WOAssociation) {
      WOAssociation association = (WOAssociation) value;
      value = association.valueInComponent(component);
    }
  if (value == null) {
    value = _defaultValue;
  }
    return value;
View Full Code Here

Examples of com.webobjects.appserver.WOAssociation.valueInComponent()

  if (associations != null) {
    value = associations.objectForKey(_bindingName);
    // This is needed for the double step to resolve the value for ^ notation
    if (value instanceof WOAssociation) {
      WOAssociation association = (WOAssociation) value;
      value = association.valueInComponent(component);
    }
  }
  if (value == null) {
    value = _defaultValue;
  }
View Full Code Here

Examples of com.webobjects.appserver.WOAssociation.valueInComponent()

    WOComponent component = context.component();
   
    WOResponse response = null;
    WOAssociation action = associations().objectForKey("action");
    if(action != null) {
      action.valueInComponent(component);
    }
   
    if(booleanValueForBinding("ajax", false, component) && hasChildrenElements()) {
      response = AjaxUtils.createResponse(request, context);
      AjaxUtils.setPageReplacementCacheKey(context, _containerID(context));
View Full Code Here

Examples of com.webobjects.appserver.WOAssociation.valueInComponent()

   */
  @Deprecated
  public static String stringValueForBinding(String name, NSDictionary<String, WOAssociation> associations, WOComponent component) {
    WOAssociation association = associations.objectForKey(name);
    if (association != null) {
      return (String) association.valueInComponent(component);
    }
    return null;
  }

  /**
 
View Full Code Here

Examples of com.webobjects.appserver.WOAssociation.valueInComponent()

   */
  @Deprecated
  public static Object valueForBinding(String name, NSDictionary<String, WOAssociation> associations, WOComponent component) {
    WOAssociation association = associations.objectForKey(name);
    if (association != null) {
      return association.valueInComponent(component);
    }
    return null;
  }

  /**
 
View Full Code Here

Examples of com.webobjects.appserver.WOAssociation.valueInComponent()

        }
      }
     
      String actionUrl = null;
      if(directActionNameAssociation != null) {
        actionUrl = context.directActionURLForActionNamed((String) directActionNameAssociation.valueInComponent(component), ERXComponentUtilities.queryParametersInComponent(associations(), component)).replaceAll("&amp;", "&");
      } else {
        actionUrl = AjaxUtils.ajaxComponentActionUrl(context);
      }
      actionUrl = "'" + actionUrl + "'";
View Full Code Here

Examples of com.webobjects.appserver.WOAssociation.valueInComponent()

    WOActionResults results = super.invokeAction(worequest, wocontext);
    if (results != null && _pageName != null) {
      WOComponent component = wocontext.component();
      for (String bindingName : _bindingAssociations.allKeys()) {
        WOAssociation association = _bindingAssociations.objectForKey(bindingName);
        Object value = association.valueInComponent(component);
        NSKeyValueCoding.Utility.takeValueForKey(results, value, bindingName);
      }
    }
    return results;
  }
View Full Code Here

Examples of com.webobjects.appserver.WOAssociation.valueInComponent()

    NSMutableDictionary queryParameters = new NSMutableDictionary();
    Enumeration keyEnum = associations.keyEnumerator();
    while (keyEnum.hasMoreElements()) {
      String key = (String) keyEnum.nextElement();
      WOAssociation association = (WOAssociation) associations.valueForKey(key);
      Object associationValue = association.valueInComponent(component);
      if (associationValue != null) {
        queryParameters.setObjectForKey(associationValue, key.substring(1));
      }
    }
    return queryParameters;
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.