Class TreeExpandVetoException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- net.sf.jguiraffe.gui.builder.components.model.TreeExpandVetoException
-
- All Implemented Interfaces:
Serializable
public class TreeExpandVetoException extends Exception
An exception class to be thrown to prevent a tree from expanding or collapsing a tree node.
Exceptions of this type are used by
objects. If such an exception is thrown, the current expansion or collapse operation of the tree will be aborted.TreePreExpansionListener
- Version:
- $Id: TreeExpandVetoException.java 205 2012-01-29 18:29:57Z oheger $
- Author:
- Oliver Heger
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TreeExpandVetoException(TreeExpansionEvent ev, String msg)
Creates a new instance ofTreeExpandVetoException
and initializes it with the causing event and a message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TreeExpansionEvent
getEvent()
Returns the event that caused this exception.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
TreeExpandVetoException
public TreeExpandVetoException(TreeExpansionEvent ev, String msg)
Creates a new instance ofTreeExpandVetoException
and initializes it with the causing event and a message.- Parameters:
ev
- the event that triggered this exceptionmsg
- the error message
-
-
Method Detail
-
getEvent
public TreeExpansionEvent getEvent()
Returns the event that caused this exception.- Returns:
- the causing event
-
-