站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

BindingEvent (Registry) - NetBeans API Javadoc (Current Development Version)

org.netbeans.modules.registry/1 1.8

org.netbeans.api.registry
Class BindingEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.netbeans.api.registry.ContextEvent
          extended by org.netbeans.api.registry.BindingEvent
All Implemented Interfaces:
Serializable

public final class BindingEvent
extends ContextEvent

An event from context indicating that binding was modified, added or removed. The event intentionally does not pass value of the object because in some situation it could result in unnecessary creation of the object. The client receiving this event can retrieve the value by regular Context methods. The getType() can be used to distinguish type of the change.

See Also:
Serialized Form

Field Summary
static int BINDING_ADDED
          This event type is for added binding.
static int BINDING_MODIFIED
          This event type is for modified binding.
static int BINDING_REMOVED
          This event type is for removed binding.
 
Fields inherited from class java.util.EventObject
source
 
Method Summary
 String getBindingName()
          Name of the binding.
 int getType()
           
 String toString()
           
 
Methods inherited from class org.netbeans.api.registry.ContextEvent
getContext
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

BINDING_ADDED

public static final int BINDING_ADDED
This event type is for added binding.

See Also:
Constant Field Values

BINDING_REMOVED

public static final int BINDING_REMOVED
This event type is for removed binding.

See Also:
Constant Field Values

BINDING_MODIFIED

public static final int BINDING_MODIFIED
This event type is for modified binding.

See Also:
Constant Field Values
Method Detail

getBindingName

public String getBindingName()
Name of the binding. It can be null what means that concrete source of the change was not clear and that client should reexamine whole context.

Returns:
binding name; can be null

getType

public int getType()

toString

public String toString()
Overrides:
toString in class ContextEvent

org.netbeans.modules.registry/1 1.8

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.