org.beanfabrics.event
Class ElementsAddedEvent

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

public class ElementsAddedEvent
extends ListEvent

An event which indicates that some elements have been added to an IListPM.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ElementsAddedEvent(IListPM<?> source, int beginIndex, int length)
          Constructs a ElementsAddedEvent.
 
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.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

ElementsAddedEvent

public ElementsAddedEvent(IListPM<?> source,
                          int beginIndex,
                          int length)
Constructs a ElementsAddedEvent.

Parameters:
source - the source of this event
beginIndex - the smallest index of the elements involved
length - the number of the involved elements
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

paramString

public java.lang.String paramString()

Overrides:
paramString in class ListEvent