Examples of ICSSPropertyMeta


Examples of org.eclipse.jst.pagedesigner.css2.property.ICSSPropertyMeta

   * (non-Javadoc)
   *
   * @see org.eclipse.jst.pagedesigner.css2.ICSSStyle#getStyleProperty(java.lang.String)
   */
  public Object getStyleProperty(String property) {
    ICSSPropertyMeta meta = CSSMetaRegistry.getInstance().getMeta(property);
    if (meta == null) {
      return ICSSPropertyMeta.NOT_SPECIFIED;
    }
        return meta.getInitialValue(property, this);
  }
View Full Code Here

Examples of org.eclipse.jst.pagedesigner.css2.property.ICSSPropertyMeta

   * (non-Javadoc)
   *
   * @see org.eclipse.jst.pagedesigner.css2.ICSSStyle#getHTMLelementValue(java.lang.String)
   */
  public Object getHTMLelementInitValue(String propertyName) {
    ICSSPropertyMeta meta = CSSMetaRegistry.getInstance().getMeta(
        propertyName);
    if (meta == null) {
      return ICSSPropertyMeta.NOT_SPECIFIED;
    }
        return meta.getInitialValue(propertyName, this);
  }
View Full Code Here

Examples of org.eclipse.jst.pagedesigner.css2.property.ICSSPropertyMeta

  /* (non-Javadoc)
   * @see org.eclipse.jst.pagedesigner.css2.ICSSStyle#getHTMLelementInitValue(java.lang.String)
   */
  public Object getHTMLelementInitValue(String propertyName) {
    ICSSPropertyMeta meta = getPropertyMeta(propertyName);
    if (meta != null) {
      Object obj = meta.getHTMLElementInitialValue(_element,
          getHTMLTag(), propertyName);
      if (obj == null) {
        obj = meta.getInitialValue(propertyName, this);
      }
      return obj;
    }
    return ICSSPropertyMeta.NOT_SPECIFIED;
  }
View Full Code Here

Examples of org.eclipse.jst.pagedesigner.css2.property.ICSSPropertyMeta

  /**
   * @param propertyName
   * @return the property
   */
  protected Object calculateProperty(String propertyName) {
    ICSSPropertyMeta meta = getPropertyMeta(propertyName);
    Object result = null;
    // get declaration
    CSSStyleDeclaration decl = getDeclaration();
    CSSValue value = decl == null ? null : decl
        .getPropertyCSSValue(propertyName);
    if (value == null) {
      if (meta != null) {
        result = meta.calculateHTMLAttributeOverride(_element,
            getHTMLTag(), propertyName, this);
        if (result != null) {
          return result;
        }
      }
      decl = getDefaultDeclaration();
    }
    value = decl == null ? null : decl.getPropertyCSSValue(propertyName);

    if (value != null && value.getCssValueType() == CSSValue.CSS_INHERIT) {
      result = getParentResultValue(meta, propertyName);
    } else if (value == null) {
      if (meta != null) {
        result = meta.calculateHTMLAttributeOverride(_element,
            getHTMLTag(), propertyName, this);
      }
      if (result == null) {
        result = calculateLocalOverride(meta, propertyName);
      }
      if (result == null) {
        if (meta == null) {
          result = ICSSPropertyMeta.NOT_SPECIFIED;
        } else {
          if (meta.isInherited()) {
            result = getParentResultValue(meta, propertyName);
          } else {
            result = meta.getInitialValue(propertyName, this);
          }
        }
      }
    } else {
      result = calculateCSSValueResult(meta, value, propertyName);
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.