Package org.apache.myfaces.trinidadinternal.ui

Examples of org.apache.myfaces.trinidadinternal.ui.AttributeKey


        }
        else
        {
          Object o = super.put(key, value);
          // Push the value into the UINode if necessary
          AttributeKey attrKey = getAttributeKey(key);
          if (attrKey != null)
            _node.setAttributeValue(attrKey, value);
          return o;
        }
      }

      public Object remove(PropertyKey key)
      {
        Object o = super.remove(key);
        if (o == null)
          return null;

        AttributeKey attrKey = getAttributeKey(key);
        if (attrKey != null)
        {
          // We're no longer shadowing a ValueBinding (if one's present);
          // re-establish that binding, or reset to null
          Object attrValue;
View Full Code Here


          return remove(key);
        }
        else
        {
          Object o = super.put(key, value);
          AttributeKey attrKey = getAttributeKey(key);
          if (attrKey != null)
          {
            // If there's no local value, then we're not shadowing;
            // set up a new ValueBindingBoundValue
            if (getLocalProperty(key) == null)
            {
              ValueBinding binding = (ValueBinding) value;
              _node.setAttributeValue(attrKey,
                                      new ValueBindingBoundValue(binding));
            }
          }

          return o;
        }
      }

      public Object remove(PropertyKey key)
      {
        Object o = super.remove(key);
        if (o == null)
          return null;

        AttributeKey attrKey = getAttributeKey(key);
        if (attrKey != null)
        {
          // If there's no local value, then we're not shadowing,
          // and the value is just null now
          if (getLocalProperty(key) == null)
View Full Code Here

    Iterator<AttributeKey> attrs = node.getAttributeNames(context);
    if (attrs != null)
    {
      while (attrs.hasNext())
      {
        AttributeKey currKey = attrs.next();
        if ((currKey != UIConstants.RENDERED_ATTR) &&
            (currKey != UIConstants.ANNOTATION_ATTR))
          renderAttribute(context,
                          currKey.getAttributeName(),
                          node.getAttributeValue(context, currKey));
      }
    }
  }
View Full Code Here

    {
      Field field = fields[i];
      if ((field.getType() == AttributeKey.class) &&
          Modifier.isStatic(field.getModifiers()))
      {
        AttributeKey key = (AttributeKey) field.get(null);
        String attrName = key.getAttributeName();
        if (!_EXCLUDED_KEYS.contains(attrName))
        {
          _UICONSTANTS_KEYS.put(attrName, key);

          // handle the "hAlign", "vAlign" case
View Full Code Here

          return remove(key);
        }
        else
        {
          Object o = super.put(key, value);
          AttributeKey attrKey = getAttributeKey(key);
          if (attrKey != null)
          {
            // If there's no local value, then we're not shadowing;
            // set up a new ValueExpressionBoundValue
            if (getLocalProperty(key) == null)
            {
              ValueExpression expression = (ValueExpression) value;
              _node.setAttributeValue(attrKey,
                                      new ValueExpressionBoundValue(expression));
            }
          }

          return o;
        }
      }

      public Object remove(PropertyKey key)
      {
        Object o = super.remove(key);
        if (o == null)
          return null;

        AttributeKey attrKey = getAttributeKey(key);
        if (attrKey != null)
        {
          // If there's no local value, then we're not shadowing,
          // and the value is just null now
          if (getLocalProperty(key) == null)
View Full Code Here

    {
      Field field = fields[i];
      if ((field.getType() == AttributeKey.class) &&
          Modifier.isStatic(field.getModifiers()))
      {
        AttributeKey key = (AttributeKey) field.get(null);
        String attrName = key.getAttributeName();
        if (!_EXCLUDED_KEYS.contains(attrName))
        {
          _UICONSTANTS_KEYS.put(attrName, key);

          // handle the "hAlign", "vAlign" case
View Full Code Here

        }
        else
        {
          Object o = super.put(key, value);
          // Push the value into the UINode if necessary
          AttributeKey attrKey = getAttributeKey(key);
          if (attrKey != null)
            _node.setAttributeValue(attrKey, value);
          return o;
        }
      }

      public Object remove(PropertyKey key)
      {
        Object o = super.remove(key);
        if (o == null)
          return null;

        AttributeKey attrKey = getAttributeKey(key);
        if (attrKey != null)
        {
          // We're no longer shadowing a ValueExpression (if one's present);
          // re-establish that binding, or reset to null
          Object attrValue;
View Full Code Here

    Iterator<AttributeKey> attrs = node.getAttributeNames(context);
    if (attrs != null)
    {
      while (attrs.hasNext())
      {
        AttributeKey currKey = attrs.next();
        if ((currKey != UIConstants.RENDERED_ATTR) &&
            (currKey != UIConstants.ANNOTATION_ATTR))
          renderAttribute(context,
                          currKey.getAttributeName(),
                          node.getAttributeValue(context, currKey));
      }
    }
  }
View Full Code Here

        }
        else
        {
          Object o = super.put(key, value);
          // Push the value into the UINode if necessary
          AttributeKey attrKey = getAttributeKey(key);
          if (attrKey != null)
            _node.setAttributeValue(attrKey, value);
          return o;
        }
      }

      public Object remove(PropertyKey key)
      {
        Object o = super.remove(key);
        if (o == null)
          return null;

        AttributeKey attrKey = getAttributeKey(key);
        if (attrKey != null)
        {
          // We're no longer shadowing a ValueExpression (if one's present);
          // re-establish that binding, or reset to null
          Object attrValue;
View Full Code Here

          return remove(key);
        }
        else
        {
          Object o = super.put(key, value);
          AttributeKey attrKey = getAttributeKey(key);
          if (attrKey != null)
          {
            // If there's no local value, then we're not shadowing;
            // set up a new ValueExpressionBoundValue
            if (getLocalProperty(key) == null)
            {
              ValueExpression expression = (ValueExpression) value;
              _node.setAttributeValue(attrKey,
                                      new ValueExpressionBoundValue(expression));
            }
          }

          return o;
        }
      }

      public Object remove(PropertyKey key)
      {
        Object o = super.remove(key);
        if (o == null)
          return null;

        AttributeKey attrKey = getAttributeKey(key);
        if (attrKey != null)
        {
          // If there's no local value, then we're not shadowing,
          // and the value is just null now
          if (getLocalProperty(key) == null)
View Full Code Here

TOP

Related Classes of org.apache.myfaces.trinidadinternal.ui.AttributeKey

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.