当前页面:
在线文档首页 >
NetBeans API Javadoc (Current Development Version)
BindingEvent (Registry) - NetBeans API Javadoc (Current Development Version)
org.netbeans.api.registry
Class BindingEvent
java.lang.Object
java.util.EventObject
org.netbeans.api.registry.ContextEvent
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
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
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