Package com.webobjects.appserver._private

Examples of com.webobjects.appserver._private.WOInputStreamData


  public AjaxRoundEffect(String name, NSDictionary associations, WOElement children) {
    super(name, associations, children);
    _elementNameAssociation = (WOAssociation) associations.objectForKey("elementName");
    if (_elementNameAssociation == null) {
      _elementNameAssociation = new WOConstantValueAssociation("div");
    }
    _classAssociation = (WOAssociation) associations.objectForKey("class");
    if (_classAssociation == null) {
      throw new WODynamicElementCreationException("'class' is a required binding.");
    }
    _generateTagsAssociation = (WOAssociation) associations.objectForKey("generateTags");
    if (_generateTagsAssociation == null) {
      _generateTagsAssociation = new WOConstantValueAssociation(Boolean.FALSE);
    }
    _idAssociation = (WOAssociation) associations.objectForKey("id");
  }
View Full Code Here


    super(aName, AjaxInPlaceViewTemplate.processAssociations(associations), template);
  }

  protected static NSDictionary processAssociations(NSDictionary associations) {
    NSMutableDictionary mutableAssociations = (NSMutableDictionary) associations;
    mutableAssociations.setObjectForKey(new WOConstantValueAssociation("view"), "templateName");
    return mutableAssociations;
  }
View Full Code Here

            if (child instanceof MTAjaxTabbedPanelTab) {
              MTAjaxTabbedPanelTab childTab = (MTAjaxTabbedPanelTab)child;

              // The tabs need to have an id attribute so we assign one if needed
                if (childTab.id() == null) {
                    childTab.setId(new WOConstantValueAssociation(id.valueInComponent(null) + "_pane_" + tabs.count()));
                }

                tabs.addObject(childTab);
            }
            else if (child instanceof WODynamicGroup) {
View Full Code Here

  }

  @SuppressWarnings("unchecked")
  protected static NSDictionary processAssociations(NSDictionary associations, WOElement template) {
    NSMutableDictionary mutableAssociations = (NSMutableDictionary) associations;
    mutableAssociations.setObjectForKey(new WOConstantValueAssociation("backButton"), "id");
    WOAssociation classAssociation = (WOAssociation) mutableAssociations.objectForKey("class");
    mutableAssociations.setObjectForKey(new ERXProxyAssociation(classAssociation, "button transitionPrevious ", null, true), "class");
    if (!associations.containsKey("string") && template == null) {
      mutableAssociations.setObjectForKey(new WOConstantValueAssociation("Back"), "string");
    }
    return mutableAssociations;
  }
View Full Code Here

     
      @Override
      protected void setLanguage(String s) {
        super.setLanguage(s);
        if (s != null) {
          _language = new WOConstantValueAssociation(s);
        }
      }
View Full Code Here

    }
   
    public ERXSubmitButton(String arg0, NSDictionary<String, WOAssociation> nsdictionary, WOElement arg2) {
        super("button", nsdictionary, arg2);
        if(_value == null)
            _value = new WOConstantValueAssociation("Submit");
        _shouldSubmitForm = _associations.removeObjectForKey("shouldSubmitForm");
        _action = _associations.removeObjectForKey("action");
        _actionClass = _associations.removeObjectForKey("actionClass");
        _directActionName = _associations.removeObjectForKey("directActionName");
        _class = (WOAssociation) nsdictionary.valueForKey("class");
View Full Code Here

  private boolean _treatNullAsEmptyString;

  public ERXProxyAssociation(WOAssociation proxiedAssociation, String prefix, String suffix, boolean treatNullAsEmptyString) {
    _proxiedAssociation = proxiedAssociation;
    if (_proxiedAssociation == null) {
      _proxiedAssociation = new WOConstantValueAssociation(null);
    }
    _prefix = prefix;
    _suffix = suffix;
    _treatNullAsEmptyString = treatNullAsEmptyString;
  }
View Full Code Here

    }
    _action = _associations.removeObjectForKey("action");
    _href = _associations.removeObjectForKey("href");
    _multipleSubmit = _associations.removeObjectForKey("multipleSubmit");
    if (_multipleSubmit == null && ERXWOForm.multipleSubmitDefault) {
      _multipleSubmit = new WOConstantValueAssociation(Boolean.valueOf(multipleSubmitDefault));
    }
    _actionClass = _associations.removeObjectForKey("actionClass");
    _queryDictionary = _associations.removeObjectForKey("queryDictionary");
    _directActionName = _associations.removeObjectForKey("directActionName");
    _formName = _associations.removeObjectForKey("name");
    if (ERXWOForm.useIdInsteadOfNameTag && _id != null) {
      _formName = _id;  // id takes precedence over name - then subsequently written as id
      _id = null;
    }
    _enctype = _associations.removeObjectForKey("enctype");
    _fragmentIdentifier = _associations.removeObjectForKey("fragmentIdentifier");
    _disabled = _associations.removeObjectForKey("disabled");
    _addDefaultSubmitButton = _associations.removeObjectForKey("addDefaultSubmitButton");
    _embedded = _associations.removeObjectForKey("embedded");
    if (_associations.objectForKey("method") == null && _associations.objectForKey("Method") == null && _associations.objectForKey("METHOD") == null) {
      _associations.setObjectForKey(new WOConstantValueAssociation("post"), "method");
    }
    if (_action != null && _href != null || _action != null && _directActionName != null || _href != null && _directActionName != null || _action != null && _actionClass != null || _href != null && _actionClass != null) {
      throw new WODynamicElementCreationException("<" + getClass().getName() + ">: At least two of these conflicting attributes are present: 'action', 'href', 'directActionName', 'actionClass'");
    }
    if (_action != null && _action.isValueConstant()) {
View Full Code Here

      String name = (String) e.nextElement();
      WOAssociation association = (WOAssociation) associations.objectForKey(name);
      boolean isConstant = false;
      String keyPath = null;
      if (association instanceof WOConstantValueAssociation) {
        WOConstantValueAssociation constantAssociation = (WOConstantValueAssociation) association;
        // AK: this sucks, but there is no API to get at the value
        Object value = constantAssociation.valueInComponent(null);
        keyPath = value != null ? value.toString() : null;
        isConstant = true;
      }
      else if (association instanceof WOKeyValueAssociation) {
        keyPath = association.keyPath();
View Full Code Here

  public WODeclaration createDeclaration(String elementName, String elementType, NSMutableDictionary associations) {
    String newElementType = "ERXWOConditional";
    if (associations.objectForKey("negate") != null) {
      throw new IllegalArgumentException("You already specified a binding for 'negate' of " + associations.objectForKey("negate") + " on a wo:not.");
    }
    associations.setObjectForKey(new WOConstantValueAssociation(Boolean.TRUE), "negate");
    return super.createDeclaration(elementName, newElementType, associations);
  }
View Full Code Here

TOP

Related Classes of com.webobjects.appserver._private.WOInputStreamData

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.