public abstract class ListEvent<E>
extends java.util.EventObject
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.
Modifier and Type | Field and Description |
---|---|
static int |
DELETE
different types of changes
|
static int |
INSERT |
protected EventList<E> |
sourceList
the list that has changed
|
static java.lang.Object |
UNKNOWN_VALUE
indicates a removed element whose value is unknown
|
static int |
UPDATE |
Modifier and Type | Method and Description |
---|---|
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 java.lang.String |
toString()
Gets this event as a String.
|
public static final int DELETE
public static final int UPDATE
public static final int INSERT
public static final java.lang.Object UNKNOWN_VALUE
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 java.lang.String toString()
toString
in class java.util.EventObject
Glazed Lists, Copyright © 2003 publicobject.com, O'Dell Engineering.
Documentation build by mockbuild at 2012-03-02 14:06