Examples of AttributeMap


Examples of org.apache.myfaces.trinidadinternal.ui.collection.AttributeMap

   */
  public Iterator<AttributeKey> getAttributeNames(
    UIXRenderingContext context
    )
  {
    AttributeMap attributes = getAttributeMap(false);

    if (attributes != null)
    {
      return attributes.attributeKeys(context);
    }
    else
    {
      return null;
    }
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.ui.collection.AttributeMap

    UIXRenderingContext context,
    AttributeKey     attrKey,
    boolean          returnBoundValue
    )
  {
    AttributeMap attributes = getAttributeMap(false);

    if (attributes != null)
    {
      Object value = attributes.getAttribute(context, attrKey);

      if (returnBoundValue && (value instanceof BoundValue))
      {
        value = ((BoundValue)value).getValue(context);
      }
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.ui.collection.AttributeMap

  public void setAttributeValue(
    AttributeKey attrKey,
    Object       value
    )
  {
    AttributeMap attrDict = getAttributeMap((value != null));

    if (attrDict != null)
    {
      attrDict.setAttribute(attrKey, value);
    }
  }
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.ui.collection.AttributeMap

  }

  @Override
  public Iterator<AttributeKey> getAttributeNames(UIXRenderingContext context)
  {
    AttributeMap attributes = getAttributeMap(false);

    if (attributes != null)
    {
      return attributes.attributeKeys(context);
    }
    else
    {
      return null;
    }
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.ui.collection.AttributeMap

  public void setAttributeValue(
    AttributeKey attrKey,
    Object       value
    )
  {
    AttributeMap attrDict = getAttributeMap((value != null));

    if (attrDict != null)
    {
      attrDict.setAttribute(attrKey, value);
    }
  }
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.ui.collection.AttributeMap

    UIXRenderingContext context,
    AttributeKey     attrKey,
    boolean          returnBoundValue
    )
  {
    AttributeMap attributes = getAttributeMap(false);

    if (attributes != null)
    {
      Object value = attributes.getAttribute(context, attrKey);

      if (returnBoundValue && (value instanceof BoundValue))
      {
        value = ((BoundValue)value).getValue(context);
      }
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.ui.collection.AttributeMap

  * @todo what about UIXEditableValue.VALIDATOR_KEY?
  */
  @Override
  protected AttributeMap createAttributeMap(String componentFamily)
  {
    AttributeMap attrMap = super.createAttributeMap(componentFamily);
    attrMap.setAttribute(UIConstants.CONVERTER_ATTR,
                         getConverterBoundValue());
                                                     
                                                         
    attrMap.setAttribute(UIConstants.VALIDATORS_ATTR,
                  new EntriesBoundValue(this, 
                                        UIXEditableValue.VALIDATORS_KEY));
                         
    BoundValue unvalidatedBV = new PropertyBoundValue(this,
                                             UIXEditableValue.IMMEDIATE_KEY);
    attrMap.setAttribute(UIConstants.UNVALIDATED_ATTR, unvalidatedBV);                                
    return  attrMap;
  }
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.ui.collection.AttributeMap

public class CommandButtonFacesBean extends UINodeFacesBean
{
  @Override
  protected AttributeMap createAttributeMap(String componentFamily)
  {
    AttributeMap attrMap = super.createAttributeMap(componentFamily);
    BoundValue unvalidatedBV = new PropertyBoundValue(this,
                                             CoreCommandButton.IMMEDIATE_KEY);

    BoundValue partialBV = new PropertyBoundValue(this,
                                CoreCommandButton.PARTIAL_SUBMIT_KEY);

    attrMap.setAttribute(UIConstants.PRIMARY_CLIENT_ACTION_ATTR,
                         new FireActionBoundValue(getUIXComponent(),
                                                  unvalidatedBV,
                                                  partialBV));

    return attrMap;
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.ui.collection.AttributeMap

public class CommandNavigationItemFacesBean extends CommandLinkFacesBean
{
  @Override
protected AttributeMap createAttributeMap(String componentFamily)
  {
    AttributeMap attrMap = super.createAttributeMap(componentFamily);
    attrMap.setAttribute(UIConstants.VALUE_ATTR,
                         new ClientIdBoundValue(getUIXComponent()));

    return attrMap;
  }
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.ui.collection.AttributeMap

public class ProcessChoiceBarFacesBean extends UINodeFacesBean
{
  @Override
  protected AttributeMap createAttributeMap(String componentFamily)
  {
    AttributeMap attrMap = super.createAttributeMap(componentFamily);
    attrMap.setAttribute(UIConstants.NAME_ATTR,
                         new ClientIdBoundValue(getUIXComponent()));
    attrMap.setAttribute(UIConstants.FORM_SUBMITTED_ATTR, Boolean.TRUE);
    attrMap.setAttribute(UIConstants.SELECTED_VALUE_ATTR,
                        new ProcessChoiceSelectedValueBoundValue(getUIXComponent()));

    return attrMap;
 
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.