org.openide.cookies
Interface ConnectionCookie.Type

All Superinterfaces:
Serializable
Enclosing class:
ConnectionCookie

public static interface ConnectionCookie.Type
extends Serializable

Interface describing cookie type of event a cookie can produce.


Method Summary
 Class getEventClass()
          The class that is passed into the listener's notify method when an event of this type is fired.
 boolean isPersistent()
          Getter whether the registration to this type of event is persistent or is valid only till the source disappears (the IDE shutdowns).
 boolean overlaps(ConnectionCookie.Type type)
          Test whether the specified type could be accepted by this type.
 

Method Detail

getEventClass

public Class getEventClass()
The class that is passed into the listener's notify method when an event of this type is fired.
Returns:
event class

isPersistent

public boolean isPersistent()
Getter whether the registration to this type of event is persistent or is valid only till the source disappears (the IDE shutdowns).

overlaps

public boolean overlaps(ConnectionCookie.Type type)
Test whether the specified type could be accepted by this type. This method is similar to equals(Object) method, so default implementation could be delegated to it.
Returns:
true if type is similar to this type.


Built on December 12 2001.  |  Portions Copyright 1997-2001 Sun Microsystems, Inc. All rights reserved.