org.apache.myfaces.trinidad.model
Class RowKeyChangeEvent
java.lang.Object
java.util.EventObject
org.apache.myfaces.trinidad.model.RowKeyChangeEvent
- All Implemented Interfaces:
- Serializable
public class RowKeyChangeEvent
- extends EventObject
Event that is generated when RowKey changes.
This event is fired when a row is updated, inserted or deleted
The oldRowKey or new RowKey can be NULL
The serialization behavior depends on the implementation of the collectionModel that consumes
the RowKeyChangeEvent. If the collectionModel implementation is serializable and keeps track
of row key change events that it recevies, then these events are serialized with the model;
otherwise, the events are not serialized
- See Also:
- Serialized Form
RowKeyChangeEvent
public RowKeyChangeEvent(CollectionModel source,
Object oldRowKey,
Object newRowKey,
RowKeyChangeEvent.Cause cause)
- Creates a new RowKeyChangeEvent
- Parameters:
source
- the source of the eventoldRowKey
- the old RowKey.newRowKey
- the new RowKey.cause
- the operation that triggers this event
getOldRowKey
public Object getOldRowKey()
- retrieve the old RowKey from the event
- Returns:
- the old RowKey of the event.
getNewRowKey
public Object getNewRowKey()
- retrieve the new row key from the event
- Returns:
- the new row key of the event.
getCause
public RowKeyChangeEvent.Cause getCause()
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class EventObject
Copyright © 2001-2012 The Apache Software Foundation. All Rights Reserved.