HOME

com.ultraswing
Class DefaultIconText

java.lang.Object
  |
  +--com.ultraswing.DefaultIconText
All Implemented Interfaces:
IconText

public class DefaultIconText
extends Object
implements IconText

An object stores Icon and String objects


Constructor Summary
DefaultIconText(Icon icon, String text)
          Constructs a DefaultIconText object
 
Method Summary
 Icon getIcon()
          Returns the Icon object
 String getText()
          Returns the text object
 String toString()
          Returns the text object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultIconText

public DefaultIconText(Icon icon,
                       String text)
Constructs a DefaultIconText object

Parameters:
icon - Icon object
text - text object
Method Detail

getIcon

public Icon getIcon()
Returns the Icon object

Specified by:
getIcon in interface IconText

getText

public String getText()
Returns the text object

Specified by:
getText in interface IconText

toString

public String toString()
Returns the text object

Overrides:
toString in class Object

HOME

Copyright © 2002 iReasoning Networks. All Rights Reserved.