|
org.netbeans.api.mdr/1 1.4.22 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.EventObject org.netbeans.api.mdr.events.MDRChangeEvent
public abstract class MDRChangeEvent
Root abstract class for all MDR events. Every MDR event has a type uniquely identified by an integer. The integers representing the event types are chosen in such a way, that they can be uniquely combined into a bitmask without losing information about which event types are represented in the bitmask. This way the event listeners can filter the events using a bitmask.
Field Summary | |
---|---|
static int |
EVENTMASK_ALL
Bitmask representing all possible repository event types. |
static int |
EVENTMASK_ON_ASSOCIATION
Bitmask representing all event types which are initially fired on associations. |
static int |
EVENTMASK_ON_CLASS
Bitmask representing all event types which are initially fired on class proxies. |
static int |
EVENTMASK_ON_INSTANCE
Bitmask representing all event types which are initially fired on instance objects. |
static int |
EVENTMASK_ON_PACKAGE
Bitmask representing all event types which are initially fired on package proxies. |
static int |
EVENTMASK_ON_REPOSITORY
Bitmask representing all event types which are initially fired on repositories. |
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
MDRChangeEvent(Object source,
int type)
Creates a new instance of MDR event |
Method Summary | |
---|---|
int |
getType()
Returns type of this event. |
boolean |
isOfType(int mask)
Returns true if the type of this event is contained in the provided
bitmask. |
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 EVENTMASK_ALL
public static final int EVENTMASK_ON_ASSOCIATION
public static final int EVENTMASK_ON_INSTANCE
public static final int EVENTMASK_ON_CLASS
public static final int EVENTMASK_ON_PACKAGE
Note: This bitmask is empty, because there are not events which originate on packages. Packages receive only events propagated from other objects. As a consequence this bitmask is useless. It is nevertheless part of the API to achieve greater uniformity of the API.
public static final int EVENTMASK_ON_REPOSITORY
Constructor Detail |
---|
public MDRChangeEvent(Object source, int type)
source
- Source object for this event.type
- Number indicating type of this event.Method Detail |
---|
public int getType()
public boolean isOfType(int mask)
true
if the type of this event is contained in the provided
bitmask.
mask
- Bitmask.
true
- the type of this event is contained in the bitmask (i.e. type & mask == type)
false
- the type of this event is not contained in the bitmask (i.e. type & mask < type)
|
org.netbeans.api.mdr/1 1.4.22 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |