|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.EventObject com.levigo.util.base.glazedlists.event.ListEvent<E>
public abstract class ListEvent<E>
A ListEvent models a change to a list.
The lists may change over time, causing this sequence of changes to grow indefinitely. The event is accessed like an iterator, with the user calling next() repeatedly to view the changes in sequence.
It is also possible to view changes in blocks, which may provide some performance benefit. To use this, use the nextBlock() method instead of the next() method.
Field Summary | |
---|---|
static int |
DELETE
different types of changes |
static int |
INSERT
|
protected EventList<E> |
sourceList
the list that has changed |
static Object |
UNKNOWN_VALUE
indicates a removed element whose value is unknown |
static int |
UPDATE
|
Fields inherited from class java.util.EventObject |
---|
source |
Method Summary | |
---|---|
abstract ListEvent<E> |
copy()
Create a bitwise copy of this ListEvent . |
abstract int |
getBlockEndIndex()
Gets the last row of the current block of changes. |
abstract int |
getBlocksRemaining()
Deprecated. this method depends on a particular implementation of how list events are stored internally, and this implementation has since changed. |
abstract int |
getBlockStartIndex()
Gets the first row of the current block of changes. |
abstract int |
getIndex()
Gets the current row index. |
abstract E |
getNewValue()
Deprecated. this is a developer preview API that is not yet fit for human consumption. Hopefully the full implementation is complete for Glazed Lists 2.0. |
abstract E |
getOldValue()
Deprecated. this is a developer preview API that is not yet fit for human consumption. Hopefully the full implementation is complete for Glazed Lists 2.0. |
abstract int[] |
getReorderMap()
Gets the reorder map of this list. |
EventList<E> |
getSourceList()
Gets the List where this event originally occured. |
abstract int |
getType()
Gets the type of the current change, which should be one of ListEvent.INSERT, UPDATE, or DELETE. |
abstract boolean |
hasNext()
Without incrementing the implicit iterator, this tests if there is another change to view. |
abstract boolean |
isReordering()
Tests if this change is a complete reordering of the list. |
abstract boolean |
next()
Increments the change sequence to view the next change. |
abstract boolean |
nextBlock()
Increments the change sequence to view the next change block. |
abstract void |
reset()
Resets this event's position to the previously-marked position. |
abstract String |
toString()
Gets this event as a String. |
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 |
Field Detail |
---|
public static final int DELETE
public static final int UPDATE
public static final int INSERT
public static final Object UNKNOWN_VALUE
protected EventList<E> sourceList
Method Detail |
---|
public abstract ListEvent<E> copy()
ListEvent
.
public abstract void reset()
TransformedList
s that require multiple-passes of the
ListEvent
in order to process it.
public abstract boolean next()
public abstract boolean hasNext()
public abstract boolean nextBlock()
public abstract boolean isReordering()
public abstract int[] getReorderMap()
public abstract int getIndex()
public abstract int getBlockStartIndex()
public abstract int getBlockEndIndex()
public abstract int getType()
public abstract E getOldValue()
UNKNOWN_VALUE
.
public abstract E getNewValue()
UNKNOWN_VALUE
.
public abstract int getBlocksRemaining()
public EventList<E> getSourceList()
public abstract String toString()
toString
in class EventObject
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |