Skip navigation links
org.apache.myfaces.trinidad.change
Class AttributeComponentChange
java.lang.Object
org.apache.myfaces.trinidad.change.ComponentChange
org.apache.myfaces.trinidad.change.AttributeComponentChange
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- RowKeySetAttributeChange
-
public class AttributeComponentChange
- extends ComponentChange
Change specialization for change in attributes. While applying this Change, the specified attribute state is restored.
- Version:
- $Name: $ ($Revision: /main/2 $) $Date: 2012/01/04 16:18:05 $
- See Also:
- Serialized Form
AttributeComponentChange
public AttributeComponentChange(String attributeName,
Object attributeValue)
- Constructs an AttributeChange with the given attributeName and attributeValue.
- Parameters:
attributeName - The name of the attribute for which the value needs to be restored.
attributeValue - The value of the attribute that needs to be restored. This value should be of type java.io.Serializable in order to be persisted. If the value is of type ValueExpression or ValueBinding, the component's ValueBinding or ValueExpression for the attribute will be updated and the current attribute value, if any, removed so that the new ValueExpression or ValueBinding can take precedence.
- Throws:
IllegalArgumentException - if specified attributeName were to be null or the specified attributeValue isn't serializable
getAttributeName
public String getAttributeName()
- Returns the name of the attribute that represents this Change.
getAttributeValue
public Object getAttributeValue()
- Returns the value of the attribute corresponding to this AttributeChange.
changeComponent
public void changeComponent(javax.faces.component.UIComponent uiComponent)
- Apply this change to the specied component
-
- Specified by:
changeComponent in class ComponentChange
-
- Parameters:
uiComponent - the UIComponent to apply the change to
toString
public String toString()
-
- Overrides:
toString in class Object
hashCode
public int hashCode()
-
- Overrides:
hashCode in class Object
equals
public boolean equals(Object o)
-
- Overrides:
equals in class Object
Skip navigation links
Copyright © 2001-2013 The Apache Software Foundation. All Rights Reserved.