Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
EventObject
ca.odell.glazedlists.event.ListEvent<E>
public abstract class ListEvent<E>
extends EventObject
Field Summary | |
static int |
|
static int | |
static Object |
|
static int | |
protected EventList |
|
Method Summary | |
abstract ListEvent | |
abstract int |
|
abstract int |
|
abstract int |
|
abstract int |
|
abstract E |
|
abstract E |
|
abstract int[] |
|
EventList |
|
abstract int |
|
abstract boolean |
|
abstract boolean |
|
abstract boolean |
|
abstract boolean |
|
abstract void |
|
abstract String |
|
public static final int DELETE
different types of changes
- Field Value:
- 0
public static final int INSERT
- Field Value:
- 2
public static final Object UNKNOWN_VALUE
indicates a removed element whose value is unknown
public static final int UPDATE
- Field Value:
- 1
protected EventListsourceList
the list that has changed
public abstract int getBlockEndIndex()
Gets the last row of the current block of changes. Inclusive.
public abstract int getBlockStartIndex()
Gets the first row of the current block of changes. Inclusive.
public abstract int getBlocksRemaining()
Deprecated. this method depends on a particular implementation of how list events are stored internally, and this implementation has since changed.
Gets the number of blocks currently remaining in this atomic change.
public abstract int getIndex()
Gets the current row index. If the block type is delete, this will always return the startIndex of the current list change.
public 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.
Gets the current value for an inserted or updated element. If that data is not available, this will returnUNKNOWN_VALUE
.
public 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.
Gets the previous value for a deleted or updated element. If that data is not available, this will returnUNKNOWN_VALUE
.
public abstract int[] getReorderMap()
Gets the reorder map of this list. This will also increment the change sequence to the next change.
- Returns:
- an array of integers where the the previous index of a value is stored at the current index of that value.
public EventListgetSourceList()
Gets the List where this event originally occured.
public abstract int getType()
Gets the type of the current change, which should be one of ListEvent.INSERT, UPDATE, or DELETE.
public abstract boolean hasNext()
Without incrementing the implicit iterator, this tests if there is another change to view. The user will still need to call next() to view such a change.
public abstract boolean isReordering()
Tests if this change is a complete reordering of the list.
public abstract boolean next()
Increments the change sequence to view the next change. This will return true if such a change exists and false when there is no change to view.
public abstract boolean nextBlock()
Increments the change sequence to view the next change block.
public abstract void reset()
Resets this event's position to the previously-marked position. This should be used forTransformedList
s that require multiple-passes of theListEvent
in order to process it.
public abstract String toString()
Gets this event as a String. This simply iterates through all blocks and concatenates them.