wyvern.common.util
Class ImageTree.ImageObject

java.lang.Object
  extended bywyvern.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_
           
 
Constructor Summary
ImageTree.ImageObject(java.lang.String text, java.awt.Image icon, java.lang.String tooltip)
           
ImageTree.ImageObject(java.lang.String text, java.lang.String path, java.lang.String tooltip)
           
 
Method Summary
 javax.swing.Icon getIcon()
           
 java.lang.String getToolTipText()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

text_

protected java.lang.String text_

icon_

protected javax.swing.Icon icon_

tooltip_

protected java.lang.String tooltip_
Constructor Detail

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)
Method Detail

toString

public java.lang.String toString()

getIcon

public javax.swing.Icon getIcon()

getToolTipText

public java.lang.String getToolTipText()