swingx
Version 2005-08-19

org.jdesktop.swingx.tips
Class DefaultTip

java.lang.Object
  extended by org.jdesktop.swingx.tips.DefaultTip
All Implemented Interfaces:
TipOfTheDayModel.Tip

public class DefaultTip
extends Object
implements TipOfTheDayModel.Tip

Default TipOfTheDayModel.Tip implementation.


Constructor Summary
DefaultTip()
           
DefaultTip(String name, Object tip)
           
 
Method Summary
 Object getTip()
          The tip object to show.
 String getTipName()
           
 void setTip(Object tip)
           
 void setTipName(String name)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultTip

public DefaultTip()

DefaultTip

public DefaultTip(String name,
                  Object tip)
Method Detail

getTip

public Object getTip()
Description copied from interface: TipOfTheDayModel.Tip
The tip object to show. See JXTipOfTheDay for supported object types.

Specified by:
getTip in interface TipOfTheDayModel.Tip
Returns:
the tip to display

setTip

public void setTip(Object tip)

getTipName

public String getTipName()
Specified by:
getTipName in interface TipOfTheDayModel.Tip
Returns:
very short (optional) text describing the tip

setTipName

public void setTipName(String name)

toString

public String toString()
Overrides:
toString in class Object

swingx
Version 2005-08-19