org.beanfabrics.event
Class ElementsReplacedEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.beanfabrics.event.ListEvent
          extended by org.beanfabrics.event.ElementsReplacedEvent
All Implemented Interfaces:
java.io.Serializable

public class ElementsReplacedEvent
extends ListEvent

An event which indicates that some elements have been replaced in an IListPM.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ElementsReplacedEvent(IListPM<?> source, int beginIndex, int length, java.util.Collection<? extends PresentationModel> replaced)
          Constructs a ElementsReplacedEvent.
 
Method Summary
 int getBeginIndex()
          Returns the smalles index of the elements involved in this event.
 int getLength()
          Returns the number of elements involved in this event.
 java.util.Collection<? extends PresentationModel> getReplaced()
          Returns the collection of elements that have been replaced.
 java.lang.String paramString()
          
 
Methods inherited from class org.beanfabrics.event.ListEvent
toString
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ElementsReplacedEvent

public ElementsReplacedEvent(IListPM<?> source,
                             int beginIndex,
                             int length,
                             java.util.Collection<? extends PresentationModel> replaced)
Constructs a ElementsReplacedEvent.

Parameters:
source - the source of this event
beginIndex - the smallest index of the elements involved
length - the number of the involved elements
replaced - the collection of elements that have been replaced
Method Detail

getBeginIndex

public int getBeginIndex()
Returns the smalles index of the elements involved in this event.

Returns:
the smalles index of the elements involved in this event

getLength

public int getLength()
Returns the number of elements involved in this event.

Returns:
the number of elements involved in this event

getReplaced

public java.util.Collection<? extends PresentationModel> getReplaced()
Returns the collection of elements that have been replaced.

Returns:
the collection of elements that have been replaced

paramString

public java.lang.String paramString()

Overrides:
paramString in class ListEvent