Package com.webobjects.appserver._private

Examples of com.webobjects.appserver._private.WODeclaration


    super(name, associations, template);

        _accesskey = _associations.removeObjectForKey("accesskey");
        _accesskeyElement = _associations.removeObjectForKey("accesskeyElement");
        if(_accesskeyElement == null) {
          _accesskeyElement = new WOConstantValueAssociation("u");
        }
  }
View Full Code Here


    }
  }

  protected static NSDictionary processAssociations(NSDictionary associations) {
    NSMutableDictionary mutableAssociations = (NSMutableDictionary) associations;
    mutableAssociations.setObjectForKey(new WOConstantValueAssociation("javascript:void(0)"), "href");
    return mutableAssociations;
  }
View Full Code Here

    WOAssociation action = (WOAssociation) mutableAssociations.removeObjectForKey("action");
    if (action != null) {
      mutableAssociations.setObjectForKey(action, "invokeAction");
    }
    if (!mutableAssociations.containsKey("elementName")) {
      mutableAssociations.setObjectForKey(new WOConstantValueAssociation("div"), "elementName");
    }
    if (!mutableAssociations.containsKey("style")) {
      mutableAssociations.setObjectForKey(new WOConstantValueAssociation("cursor: pointer;"), "style");
    }
    return mutableAssociations;
  }
View Full Code Here

  private NSMutableDictionary parseDeclarationsWithoutComments(String declarationWithoutComment) throws WOHelperFunctionDeclarationFormatException {
    NSMutableDictionary declarations = new NSMutableDictionary();
    NSMutableDictionary rawDeclarations = _rawDeclarationsWithoutComment(declarationWithoutComment);
    String tagName;
    WODeclaration declaration;
    Enumeration rawDeclarationHeaderEnum = rawDeclarations.keyEnumerator();
    while (rawDeclarationHeaderEnum.hasMoreElements()) {
      String declarationHeader = (String) rawDeclarationHeaderEnum.nextElement();
      String declarationBody = (String) rawDeclarations.objectForKey(declarationHeader);
      int colonIndex = declarationHeader.indexOf(':');
View Full Code Here

  }

  public WOElement dynamicElement(NSDictionary nsdictionary, NSArray nsarray) throws WOHelperFunctionDeclarationFormatException, ClassNotFoundException {
    String s = name();
    WOElement woelement = template();
    WODeclaration wodeclaration = (WODeclaration) nsdictionary.objectForKey(s);
    return _elementWithDeclaration(wodeclaration, s, woelement, nsarray);
  }
View Full Code Here

  }

  public WOElement parse() throws WOHelperFunctionDeclarationFormatException, WOHelperFunctionHTMLFormatException, ClassNotFoundException {
    parseDeclarations();
    for (Enumeration e = declarations().objectEnumerator(); e.hasMoreElements();) {
      WODeclaration declaration = (WODeclaration) e.nextElement();
      processDeclaration(declaration);
    }
    WOElement woelement = parseHTML();
    return woelement;
  }
View Full Code Here

      }
      else {
        colonIndex = s.indexOf(':');
      }
      if (colonIndex != -1) {
        WODeclaration declaration = parseInlineBindings(s, colonIndex);
        s = "<wo name = \"" + declaration.name() + "\"";
      }
    }
    _currentWebObjectTag = new WOHTMLWebObjectTag(s, _currentWebObjectTag);
    if (log.isDebugEnabled()) {
      log.debug("inserted WebObject with Name '" + _currentWebObjectTag.name() + "'.");
View Full Code Here

    synchronized (this) {
      elementName = "_" + elementType + "_" + _inlineBindingCount;
      _inlineBindingCount++;
    }
    WOTagProcessor tagProcessor = (WOTagProcessor) WOHelperFunctionTagRegistry.tagProcessorMap().objectForKey(elementType);
    WODeclaration declaration;
    if (tagProcessor == null) {
      declaration = WOHelperFunctionParser.createDeclaration(elementName, elementType, associations);
    }
    else {
      declaration = tagProcessor.createDeclaration(elementName, elementType, associations);
View Full Code Here

      _declarations = WOHelperFunctionDeclarationParser.declarationsWithString(_declarationString);
    }
  }

  public static WODeclaration createDeclaration(String declarationName, String declarationType, NSMutableDictionary associations) {
    WODeclaration declaration = new WODeclaration(declarationName, declarationType, associations);

    if (WOHelperFunctionParser._debugSupport && associations != null && associations.objectForKey(WOHTMLAttribute.Debug) == null) {
      //associations.setObjectForKey(new WOConstantValueAssociation(Boolean.TRUE), WOHTMLAttribute.Debug);
      Enumeration associationsEnum = associations.keyEnumerator();
      while (associationsEnum.hasMoreElements()) {
View Full Code Here

  }

  private static WODeployedBundle _initAppBundle() {
    Object obj = null;
    try {
      WODeployedBundle wodeployedbundle = WODeployedBundle.deployedBundle();
      obj = wodeployedbundle.projectBundle();
      if (obj != null) {
        log.warn("Application project found: Will locate resources in '" + ((WOProjectBundle) obj).projectPath() + "' rather than '" + wodeployedbundle.bundlePath() + "' .");
      }
      else {
        obj = wodeployedbundle;
      }
    }
View Full Code Here

TOP

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

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.