public class AttributeComponentChange extends ComponentChange
Constructor and Description |
---|
AttributeComponentChange(String attributeName,
Object attributeValue)
Constructs an AttributeChange with the given attributeName and
attributeValue.
|
Modifier and Type | Method and Description |
---|---|
void |
changeComponent(javax.faces.component.UIComponent uiComponent)
Apply this change to the specied component
|
String |
getAttributeName()
Returns the name of the attribute that represents this Change.
|
Object |
getAttributeValue()
Returns the value of the attribute corresponding to this AttributeChange.
|
public AttributeComponentChange(String attributeName, Object attributeValue)
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.IllegalArgumentException
- if specified attributeName were to be null or
the specified attributeValue isn't serializablepublic String getAttributeName()
public Object getAttributeValue()
public void changeComponent(javax.faces.component.UIComponent uiComponent)
changeComponent
in class ComponentChange
uiComponent
- the UIComponent to apply the change toCopyright © 2001-2016 The Apache Software Foundation. All Rights Reserved.