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

Element.Impl2 (NetBeans Java Hierarchy API) - NetBeans API Javadoc 5.0.0

 

org.openide.src
Interface Element.Impl2

All Superinterfaces:
Element.Impl, Serializable
Enclosing interface:
Element

public static interface Element.Impl2
extends Element.Impl

Extended version of the implementation interface. The new version contains support for vetoable listeners for all Elements and some more for specialized ones.

Since:
24/11/2000

Field Summary
 
Fields inherited from interface org.openide.src.Element.Impl
serialVersionUID
 
Method Summary
 void addVetoableChangeListener(VetoableChangeListener l)
          Adds a vetoable listener.
 boolean isValid()
          Determines whether the element is still valid - if it is a part of its original model.
 void removeVetoableChangeListener(VetoableChangeListener l)
          Removes a vetoable listener.
 
Methods inherited from interface org.openide.src.Element.Impl
addPropertyChangeListener, attachedToElement, getCookie, markCurrent, readResolve, removePropertyChangeListener
 

Method Detail

addVetoableChangeListener

public void addVetoableChangeListener(VetoableChangeListener l)
Adds a vetoable listener.

Parameters:
l - instener instance to add.

removeVetoableChangeListener

public void removeVetoableChangeListener(VetoableChangeListener l)
Removes a vetoable listener.

Parameters:
l - instener instance to remove.

isValid

public boolean isValid()
Determines whether the element is still valid - if it is a part of its original model. The Element should be invalidated during its removal from the model so further operations may notice that and fail in appropriate cases.

Returns:
true, if the element is still valid and a part of a model.

 

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