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

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

org.netbeans.modules.registry/1 1.8

org.netbeans.api.registry
Class AttributeEvent

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

public final class AttributeEvent
extends ContextEvent

An event from context indicating that attribute was added or removed. The getType() can be used to distinguish type of the change.

See Also:
Serialized Form

Field Summary
static int ATTRIBUTE_ADDED
          This event type is for added attribute.
static int ATTRIBUTE_MODIFIED
          This event type is for modified attribute.
static int ATTRIBUTE_REMOVED
          This event type is for removed attribute.
 
Fields inherited from class java.util.EventObject
source
 
Method Summary
 String getAttributeName()
          Attribute name.
 String getBindingName()
          Binding name which attribute has changed or null if context attribute was changed.
 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

ATTRIBUTE_ADDED

public static final int ATTRIBUTE_ADDED
This event type is for added attribute.

See Also:
Constant Field Values

ATTRIBUTE_REMOVED

public static final int ATTRIBUTE_REMOVED
This event type is for removed attribute.

See Also:
Constant Field Values

ATTRIBUTE_MODIFIED

public static final int ATTRIBUTE_MODIFIED
This event type is for modified attribute.

See Also:
Constant Field Values
Method Detail

getBindingName

public String getBindingName()
Binding name which attribute has changed or null if context attribute was changed.

Returns:
binding name or null for context attribute

getAttributeName

public String getAttributeName()
Attribute name. It can be null what means that concrete source of the change was not clear and that client should reexamine all attributes.

Returns:
attribute 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.