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

VetoSystemOption (NetBeans APIs) - NetBeans API Javadoc 4.1.0


org.openide.options
Class VetoSystemOption

java.lang.Object
  extended byorg.openide.util.SharedClassObject
      extended byorg.openide.options.SystemOption
          extended byorg.openide.options.VetoSystemOption
All Implemented Interfaces:
Externalizable, HelpCtx.Provider, Serializable

public abstract class VetoSystemOption
extends SystemOption

Extends the functionality of SystemOption by providing support for veto listeners.

See Also:
Serialized Form

Constructor Summary
VetoSystemOption()
          Default constructor.
 
Method Summary
 void addVetoableChangeListener(VetoableChangeListener list)
          Add a new veto listener to all instances of this exact class.
 void fireVetoableChange(String name, Object oldValue, Object newValue)
          Fire a property change event.
 void removeVetoableChangeListener(VetoableChangeListener list)
          Remove a veto listener from all instances of this exact class.
 
Methods inherited from class org.openide.options.SystemOption
clearSharedData, displayName, firePropertyChange, getHelpCtx, getName, isReadExternal, isWriteExternal, readExternal, reset, writeExternal
 
Methods inherited from class org.openide.util.SharedClassObject
addNotify, addPropertyChangeListener, equals, finalize, findObject, findObject, getLock, getProperty, hashCode, initialize, putProperty, putProperty, removeNotify, removePropertyChangeListener, writeReplace
 
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VetoSystemOption

public VetoSystemOption()
Default constructor.

Method Detail

addVetoableChangeListener

public final void addVetoableChangeListener(VetoableChangeListener list)
Add a new veto listener to all instances of this exact class.

Parameters:
list - the listener to add

removeVetoableChangeListener

public final void removeVetoableChangeListener(VetoableChangeListener list)
Remove a veto listener from all instances of this exact class.

Parameters:
list - the listener to remove

fireVetoableChange

public final void fireVetoableChange(String name,
                                     Object oldValue,
                                     Object newValue)
                              throws PropertyVetoException
Fire a property change event.

Parameters:
name - the name of the property
oldValue - the old value
newValue - the new value
Throws:
PropertyVetoException - if the change is vetoed


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