|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.EventObject
com.sap.tc.cmi.util.CMIObservableListEvent
Event object that describes changes in an ICMIObservableList.
Type Classification:
This class is part of the Common Model Interface and is intended to be subclassed by applications.
| Field Summary | |
static int |
CONTIGUOUS_ELEMENTS_ADDED
Event type when multiple elements have been added en block. |
static int |
CONTIGUOUS_ELEMENTS_REMOVED
Event type when multiple elements have been removed en block. |
static int |
ELEMENT_ADDED
Event type when a single element has been added. |
static int |
ELEMENT_CHANGED
Event type used when a single element has been changed. |
static int |
ELEMENT_REMOVED
Event type used when a single element has been removed. |
static int |
LIST_CLEARED
Event type when list has been cleared. |
static int |
MULTIPLE_ELEMENTS_REMOVED
Event type when multiple elements have been removed at not necessarily contiguous positions. |
| Fields inherited from class java.util.EventObject |
source |
| Constructor Summary | |
CMIObservableListEvent(ICMIObservableList source)
Constructor for CMIObservableListEvent. |
|
CMIObservableListEvent(ICMIObservableList source,
int type,
Object element,
int fromIndex,
int toIndex)
Creates an event object with the given type and parameters for the given source. |
|
| Method Summary | |
int |
getChangeType()
|
Object |
getElement()
|
int |
getFromIndex()
|
ICMIObservableList |
getObservableList()
|
int |
getToIndex()
|
| 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 LIST_CLEARED
public static final int ELEMENT_ADDED
public static final int ELEMENT_CHANGED
public static final int ELEMENT_REMOVED
public static final int CONTIGUOUS_ELEMENTS_ADDED
public static final int CONTIGUOUS_ELEMENTS_REMOVED
public static final int MULTIPLE_ELEMENTS_REMOVED
| Constructor Detail |
public CMIObservableListEvent(ICMIObservableList source)
source -
public CMIObservableListEvent(ICMIObservableList source,
int type,
Object element,
int fromIndex,
int toIndex)
source must not be null and type must be one of the event
types defined in this class. Whether the other parameters have to be set, depends on the event
types and is documented with these types.
This constructor can be called by implementations that use CMIObservableListEvent as it is
as well as by implementations that have to subclass it.
| Method Detail |
public final ICMIObservableList getObservableList()
public final int getFromIndex()
public final int getToIndex()
public final int getChangeType()
public final Object getElement()
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||