|
What this is
Other links
The source code/* * Sun Public License Notice * * The contents of this file are subject to the Sun Public License * Version 1.0 (the "License"). You may not use this file except in * compliance with the License. A copy of the License is available at * http://www.sun.com/ * * The Original Code is NetBeans. The Initial Developer of the Original * Code is Sun Microsystems, Inc. Portions Copyright 1997-2001 Sun * Microsystems, Inc. All Rights Reserved. */ package org.netbeans.api.mdr.events; import java.util.EventObject; /** 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. * * @author Martin Matula * @author Holger Krug. */ public abstract class MDRChangeEvent extends EventObject { /** Bitmask representing all possible repository event types. * Can be used for registering listener to receive all kinds of events. */ public static final int EVENTMASK_ALL = 0x0FFFFFFF; /** Bitmask representing all event types which are initially fired on * associations. */ public static final int EVENTMASK_ON_ASSOCIATION = AssociationEvent.EVENTMASK_ASSOCIATION; /** Bitmask representing all event types which are initially fired on * instance objects. */ public static final int EVENTMASK_ON_INSTANCE = InstanceEvent.EVENT_INSTANCE_CREATE | AttributeEvent.EVENTMASK_ATTRIBUTE; /** Bitmask representing all event types which are initially fired on * class proxies. */ public static final int EVENTMASK_ON_CLASS = InstanceEvent.EVENT_INSTANCE_DELETE | AttributeEvent.EVENTMASK_CLASSATTR; /** Bitmask representing all event types which are initially fired on * package proxies. * * |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.