public class DefaultDisplayable extends java.lang.Object implements Displayable
Displayable interface.| Constructor and Description |
|---|
DefaultDisplayable() |
| Modifier and Type | Method and Description |
|---|---|
javax.swing.Icon |
getIcon()
This implementation returns a plain document icon.
|
java.lang.String |
getLongLabel()
This implementation delegates to
getShortLabel(). |
java.lang.String |
getShortLabel()
This implementation returns a place-holder
String. |
java.lang.String |
getToolTipText()
This implementation delegates to
getLongLabel(). |
java.lang.String |
toString()
This implementation delegates to
getShortLabel(). |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAttributedLabelpublic java.lang.String getShortLabel()
String.getShortLabel in interface DisplayableDisplayable
that can be shown to the user.Displayable.getShortLabel()public java.lang.String getLongLabel()
getShortLabel().getLongLabel in interface DisplayableDisplayable that
can be shown to the user.Displayable.getLongLabel()public javax.swing.Icon getIcon()
getIcon in interface DisplayableIcon to be displayed for the
Displayable.Displayable.getIcon()public java.lang.String getToolTipText()
getLongLabel().getToolTipText in interface DisplayableDisplayable.Displayable.getToolTipText()public java.lang.String toString()
getShortLabel().toString in interface DisplayabletoString in class java.lang.ObjectDisplayable.toString()