JavaTM Platform
Standard Ed. 6

javax.swing.tree
类 ExpandVetoException

java.lang.Object
  继承者 java.lang.Throwable
      继承者 java.lang.Exception
          继承者 javax.swing.tree.ExpandVetoException
所有已实现的接口:
Serializable

public class ExpandVetoException
extends Exception

用于阻止扩展/折叠发生的异常。有关更多信息和示例,请参阅 The Java Tutorial 中的 How to Write a Tree-Will-Expand Listener 一节。


字段摘要
protected  TreeExpansionEvent event
          为其创建异常的事件。
 
构造方法摘要
ExpandVetoException(TreeExpansionEvent event)
          构造不带任何消息的 ExpandVetoException 对象。
ExpandVetoException(TreeExpansionEvent event, String message)
          构造带指定消息的 ExpandVetoException 对象。
 
方法摘要
 
从类 java.lang.Throwable 继承的方法
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

字段详细信息

event

protected TreeExpansionEvent event
为其创建异常的事件。

构造方法详细信息

ExpandVetoException

public ExpandVetoException(TreeExpansionEvent event)
构造不带任何消息的 ExpandVetoException 对象。

参数:
event - TreeExpansionEvent 对象

ExpandVetoException

public ExpandVetoException(TreeExpansionEvent event,
                           String message)
构造带指定消息的 ExpandVetoException 对象。

参数:
event - TreeExpansionEvent 对象
message - 包含该消息的 String

JavaTM Platform
Standard Ed. 6

提交错误或意见
有关更多的 API 参考资料和开发人员文档,请参阅 Java SE 开发人员文档。该文档包含更详细的、面向开发人员的描述,以及总体概述、术语定义、使用技巧和工作代码示例。

版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策