public class DataAreaChangeEvent extends java.util.EventObject
AlignmentArea.
A change in this case means adding, removing or replacing data areas. This event does not indicate changes of the contents of a data area.
| Constructor and Description |
|---|
DataAreaChangeEvent(java.lang.Object source,
boolean eventsFromSingleList,
ListChangeType type,
java.util.Collection<? extends DataArea> affectedElements)
Creates a new event object.
|
DataAreaChangeEvent(java.lang.Object source,
boolean eventsFromSingleList,
ListChangeType type,
DataArea affectedElement)
Creates a new event object.
|
| Modifier and Type | Method and Description |
|---|---|
DataArea |
getAffectedElement()
Returns the first affected element.
|
java.util.Collection<? extends DataArea> |
getAffectedElements() |
DataAreasModel |
getSource()
Returns the model object that contains the list where the change occurred.
|
ListChangeType |
getType()
Returns the type of change that happened.
|
boolean |
isEventsFromSingleList()
Returns if all elements in
getAffectedElements() are contained in the same DataAreaList. |
public DataAreaChangeEvent(java.lang.Object source, boolean eventsFromSingleList, ListChangeType type, java.util.Collection<? extends DataArea> affectedElements)
source - the object that manages the data area listseventsFromSingleList - Specify true here if all elements in affectedElements
are contained in the same DataAreaList.type - the type of modification that happenedaffectedElements - a list of elements that have been affected (inserted, removed or replaced
or visibility change)public DataAreaChangeEvent(java.lang.Object source, boolean eventsFromSingleList, ListChangeType type, DataArea affectedElement)
source - the object that manages the data area listseventsFromSingleList - Specify true here if all elements in affectedElements
are contained in the same DataAreaList.type - the type of modification that happenedaffectedElements - a list of elements that have been affected (inserted, removed or replaced
or visibility change)public DataAreasModel getSource()
getSource in class java.util.EventObjectpublic boolean isEventsFromSingleList()
getAffectedElements() are contained in the same DataAreaList.true if all elements are from the same list, false otherwisepublic ListChangeType getType()
ListChangeType if an element was inserted, removed or
replaced or null if the visibility of a data area was changed insteadpublic java.util.Collection<? extends DataArea> getAffectedElements()
public DataArea getAffectedElement()
null if getAffectedElements() return an empty list