|
Dali Provisional API Release 3.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.util.EventObject
org.eclipse.jpt.common.utility.model.event.ChangeEvent
org.eclipse.jpt.common.utility.model.event.ListEvent
org.eclipse.jpt.common.utility.model.event.ListReplaceEvent
public final class ListReplaceEvent
A "list replace" event gets delivered whenever a model replaces items in a
"bound" or "constrained" list. A ListReplaceEvent is sent as an
argument to the ListChangeListener.
Provisional API: This class is part of an interim API that is still under development and expected to change significantly before reaching stability. It is available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
| Field Summary |
|---|
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
ListReplaceEvent(Model source,
String listName,
int index,
List<?> newItems,
List<?> oldItems)
Construct a new list replace event for a list of replaced items. |
|
ListReplaceEvent(Model source,
String listName,
int index,
Object newItem,
Object oldItem)
Construct a new list replace event for a list of replaced items. |
|
| Method Summary | |
|---|---|
ListReplaceEvent |
clone(Model newSource)
Return a copy of the event with the specified source replacing the current source. |
ListReplaceEvent |
clone(Model newSource,
String newListName)
Return a copy of the event with the specified source and list name replacing the current source and list name. |
ListReplaceEvent |
clone(Model newSource,
String newListName,
int offset)
Return a copy of the event with the specified source and list name replacing the current source and list name and displacing the index by the specified amount. |
int |
getIndex()
Return the index at which the items were replaced in the list. |
int |
getItemsSize()
Return the number of items that were replaced. |
Iterable<?> |
getNewItems()
Return the new items that replaced the old items in the list. |
Iterable<?> |
getOldItems()
Return the old items that were replaced by the new items in the list. |
protected void |
toString(StringBuilder sb)
|
| Methods inherited from class org.eclipse.jpt.common.utility.model.event.ListEvent |
|---|
getListName |
| Methods inherited from class org.eclipse.jpt.common.utility.model.event.ChangeEvent |
|---|
getSource, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ListReplaceEvent(Model source,
String listName,
int index,
Object newItem,
Object oldItem)
source - The object on which the event initially occurred.listName - The programmatic name of the list that was changed.index - The index at which the item in the list was replaced.newItem - The new item in the list.oldItem - The old item in the list that were replaced.
public ListReplaceEvent(Model source,
String listName,
int index,
List<?> newItems,
List<?> oldItems)
source - The object on which the event initially occurred.listName - The programmatic name of the list that was changed.index - The index at which the items in the list were replaced.newItems - The new items in the list.oldItems - The old items in the list that were replaced.| Method Detail |
|---|
public int getIndex()
public Iterable<?> getNewItems()
public Iterable<?> getOldItems()
public int getItemsSize()
protected void toString(StringBuilder sb)
toString in class ListEventpublic ListReplaceEvent clone(Model newSource)
public ListReplaceEvent clone(Model newSource,
String newListName)
public ListReplaceEvent clone(Model newSource,
String newListName,
int offset)
|
Dali Provisional API Release 3.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||