|
org.openide.src 1.8.31 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.EventObject java.beans.PropertyChangeEvent org.openide.src.MultiPropertyChangeEvent
public class MultiPropertyChangeEvent
This class is much like the ordinary PropertyChange event, but refines the message so it carry diff between the old and the new contents. There are several operations that can be made on a multivalued property:
Field Summary | |
---|---|
static int |
TYPE_ADD
Items are being added to the container. |
static int |
TYPE_COMPOUND
Compound event, resulting from a generic change and comparisons |
static int |
TYPE_MODIFY
Items are being replaced. |
static int |
TYPE_REMOVE
Items are being removed from the container. |
static int |
TYPE_REORDER
Items are being reordered. |
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
MultiPropertyChangeEvent(Object source,
String propName,
Object oldVal,
Object newVal)
|
Method Summary | |
---|---|
protected void |
checkUninitialized()
|
Collection |
getAffectedItems()
Returns items affected by the operation. |
Collection |
getComponents()
|
int |
getEventType()
|
int[] |
getIndices()
Returns array of relevant indices. |
Iterator |
getIterator()
Returns iterator over partial operations collection in a compound change event. |
int[] |
getPermutation()
Returns the permutation that describes the REORDER operation. |
Collection |
getReplacement()
Returns items that will replace getAffectedItems() in the container. |
void |
makeCompound(Collection partialChanges,
int[] offsets)
|
void |
makeInsertion(Collection items,
int[] indices)
|
void |
makeRemoval(Collection items)
|
void |
makeRemoval(Collection items,
int[] indices)
|
void |
makeReorder(int[] permutation)
|
void |
makeReplacement(Collection old,
Collection n,
int[] indices)
|
Methods inherited from class java.beans.PropertyChangeEvent |
---|
getNewValue, getOldValue, getPropagationId, getPropertyName, setPropagationId |
Methods inherited from class java.util.EventObject |
---|
getSource, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int TYPE_ADD
public static final int TYPE_REMOVE
public static final int TYPE_MODIFY
public static final int TYPE_REORDER
public static final int TYPE_COMPOUND
Constructor Detail |
---|
public MultiPropertyChangeEvent(Object source, String propName, Object oldVal, Object newVal)
Method Detail |
---|
public void makeInsertion(Collection items, int[] indices)
public void makeRemoval(Collection items, int[] indices)
public void makeRemoval(Collection items)
public void makeReorder(int[] permutation)
public void makeReplacement(Collection old, Collection n, int[] indices)
public void makeCompound(Collection partialChanges, int[] offsets)
protected void checkUninitialized()
public Collection getAffectedItems()
public Collection getComponents()
public Collection getReplacement() throws IllegalStateException
getAffectedItems()
in the container.
IllegalStateException
public int[] getPermutation() throws IllegalStateException
IllegalStateException
- if the event is not REORDER type.public int[] getIndices()
public final int getEventType()
public Iterator getIterator()
|
org.openide.src 1.8.31 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |