Package org.jdesktop.swingx.tips
Class DefaultTip
java.lang.Object
org.jdesktop.swingx.tips.DefaultTip
- All Implemented Interfaces:
TipOfTheDayModel.Tip
Default
TipOfTheDayModel.Tip
implementation.- Author:
- Frederic Lavigne
-
Constructor Summary
ConstructorsConstructorDescriptionctorDefaultTip
(String name, Object tip) TODO maven-javadoc-plugin 3.3.2 needs a doc here -
Method Summary
Modifier and TypeMethodDescriptiongetTip()
The tip object to show.void
TODO maven-javadoc-plugin 3.3.2 needs a doc herevoid
setTipName
(String name) TODO maven-javadoc-plugin 3.3.2 needs a doc heretoString()
-
Constructor Details
-
DefaultTip
public DefaultTip()ctor -
DefaultTip
TODO maven-javadoc-plugin 3.3.2 needs a doc here- Parameters:
name
- a Stringtip
- Object
-
-
Method Details
-
getTip
Description copied from interface:TipOfTheDayModel.Tip
The tip object to show. SeeJXTipOfTheDay
for supported object types.- Specified by:
getTip
in interfaceTipOfTheDayModel.Tip
- Returns:
- the tip to display
-
setTip
TODO maven-javadoc-plugin 3.3.2 needs a doc here- Parameters:
tip
- Object
-
getTipName
- Specified by:
getTipName
in interfaceTipOfTheDayModel.Tip
- Returns:
- very short (optional) text describing the tip
-
setTipName
TODO maven-javadoc-plugin 3.3.2 needs a doc here- Parameters:
name
- a String
-
toString
-