public class ExceptionElement extends DefaultElement
Constructor and Description |
---|
ExceptionElement(java.lang.String shortLabel,
java.lang.String longLabel,
java.lang.String toolTip,
javax.swing.Icon icon,
java.lang.Throwable error) |
ExceptionElement(java.lang.String name,
java.lang.Throwable error) |
ExceptionElement(java.lang.Throwable error) |
Modifier and Type | Method and Description |
---|---|
java.lang.Throwable |
getCause() |
java.lang.Object |
getData()
Part of the
Data interface. |
javax.swing.Icon |
getIcon()
This implementation returns a plain document icon.
|
java.lang.String |
getLongLabel()
This implementation delegates to
DefaultDisplayable.getShortLabel() . |
java.lang.String |
getShortLabel()
This implementation returns a place-holder
String . |
java.lang.String |
getToolTipText()
This implementation delegates to
DefaultDisplayable.getLongLabel() . |
boolean |
mayHaveChildren()
Part of the
Element interface. |
getAttributes, getChildren
toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
toString
public ExceptionElement(java.lang.String name, java.lang.Throwable error)
public ExceptionElement(java.lang.Throwable error)
public ExceptionElement(java.lang.String shortLabel, java.lang.String longLabel, java.lang.String toolTip, javax.swing.Icon icon, java.lang.Throwable error)
public java.lang.String getShortLabel()
DefaultDisplayable
String
.getShortLabel
in interface Displayable
getShortLabel
in class DefaultDisplayable
Displayable
that can be shown to the user.Displayable.getShortLabel()
public java.lang.String getLongLabel()
DefaultDisplayable
DefaultDisplayable.getShortLabel()
.getLongLabel
in interface Displayable
getLongLabel
in class DefaultDisplayable
Displayable
that
can be shown to the user.Displayable.getLongLabel()
public java.lang.Object getData()
DefaultElement
Data
interface. This implementation returns
this
.getData
in interface Element
getData
in class DefaultElement
Element
instance.Data#getData()
public java.lang.Throwable getCause()
public javax.swing.Icon getIcon()
DefaultDisplayable
getIcon
in interface Displayable
getIcon
in class DefaultDisplayable
Icon
to be displayed for the
Displayable
.Displayable.getIcon()
public java.lang.String getToolTipText()
DefaultDisplayable
DefaultDisplayable.getLongLabel()
.getToolTipText
in interface Displayable
getToolTipText
in class DefaultDisplayable
Displayable
.Displayable.getToolTipText()
public boolean mayHaveChildren()
DefaultElement
Element
interface. This implementation always
returns false
.mayHaveChildren
in interface Element
mayHaveChildren
in class DefaultElement
true
if this Element
may contain
child Element
s.Element.mayHaveChildren()