wyvern.common.util
Class ImageTree.ImageObject
java.lang.Object
wyvern.common.util.ImageTree.ImageObject
- Enclosing class:
- ImageTree
- protected static class ImageTree.ImageObject
- extends java.lang.Object
A wrapper class that can hold an image and some text.
Could easily be a JLabel; I'm not sure why they implemented
it this way in the swing examples.
(only needs to be static while testing)
- Author:
- schang
Field Summary |
protected javax.swing.Icon |
icon_
|
protected java.lang.String |
text_
|
protected java.lang.String |
tooltip_
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
text_
protected java.lang.String text_
icon_
protected javax.swing.Icon icon_
tooltip_
protected java.lang.String tooltip_
ImageTree.ImageObject
public ImageTree.ImageObject(java.lang.String text,
java.awt.Image icon,
java.lang.String tooltip)
ImageTree.ImageObject
public ImageTree.ImageObject(java.lang.String text,
java.lang.String path,
java.lang.String tooltip)
toString
public java.lang.String toString()
getIcon
public javax.swing.Icon getIcon()
getToolTipText
public java.lang.String getToolTipText()