|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.alee.managers.tooltip.TooltipManager
public final class TooltipManager
This manager allows you to set extended tooltips for any Swing component with any possible content (would it be simple text or some JComponent ancestor) or show one-time tooltips at custom location inside any window. Also this manager is integrated with HotkeyManager and provides an opportunity to automatically show components hotkeys on their tooltips set with this class.
GlassPaneManager
,
HotkeyManager
Constructor Summary | |
---|---|
TooltipManager()
|
Method Summary | |
---|---|
static WebCustomTooltip |
addTooltip(java.awt.Component component,
javax.swing.Icon icon,
java.lang.String tooltip)
|
static WebCustomTooltip |
addTooltip(java.awt.Component component,
javax.swing.Icon icon,
java.lang.String tooltip,
TooltipWay tooltipWay)
|
static WebCustomTooltip |
addTooltip(java.awt.Component component,
javax.swing.Icon icon,
java.lang.String tooltip,
TooltipWay tooltipWay,
int delay)
|
static WebCustomTooltip |
addTooltip(java.awt.Component component,
javax.swing.JComponent tooltip)
|
static WebCustomTooltip |
addTooltip(java.awt.Component component,
javax.swing.JComponent tooltip,
int delay)
|
static WebCustomTooltip |
addTooltip(java.awt.Component component,
javax.swing.JComponent tooltip,
TooltipWay tooltipWay)
|
static WebCustomTooltip |
addTooltip(java.awt.Component component,
javax.swing.JComponent tooltip,
TooltipWay tooltipWay,
int delay)
|
static WebCustomTooltip |
addTooltip(java.awt.Component component,
java.lang.String tooltip)
|
static WebCustomTooltip |
addTooltip(java.awt.Component component,
java.lang.String tooltip,
TooltipWay tooltipWay)
|
static WebCustomTooltip |
addTooltip(java.awt.Component component,
java.lang.String tooltip,
TooltipWay tooltipWay,
int delay)
|
static int |
getDefaultDelay()
Default tooltip show delay |
static void |
hideAllTooltips()
Hides all visible tooltips |
static void |
initialize()
TooltipManager initialization |
static void |
installShowAllTooltipsAction(java.awt.Component topComponent)
Installs "show all hotkeys" action on window or component |
static void |
installShowAllTooltipsAction(java.awt.Component topComponent,
HotkeyData hotkeyData)
|
static boolean |
isAllowMultiplyTooltips()
Allow more than one tooltip per component |
static boolean |
isShowHotkeysInOneTimeTooltips()
Show hotkeys in one-time tooltips by default |
static boolean |
isShowHotkeysInTooltips()
Show hotkeys in tooltips by default |
static void |
removeTooltip(java.awt.Component component,
WebCustomTooltip tooltip)
|
static void |
removeTooltips(java.awt.Component component)
Removes component tooltips |
static void |
removeTooltips(java.awt.Component component,
java.util.List<WebCustomTooltip> tooltips)
|
static void |
setAllowMultiplyTooltips(boolean allowMultiplyTooltips)
|
static void |
setDefaultDelay(int delay)
|
static void |
setShowHotkeysInOneTimeTooltips(boolean showHotkeysInOneTimeTooltips)
|
static void |
setShowHotkeysInTooltips(boolean showHotkeysInTooltips)
|
static WebCustomTooltip |
setTooltip(java.awt.Component component,
javax.swing.Icon icon,
java.lang.String tooltip)
|
static WebCustomTooltip |
setTooltip(java.awt.Component component,
javax.swing.Icon icon,
java.lang.String tooltip,
TooltipWay tooltipWay)
|
static WebCustomTooltip |
setTooltip(java.awt.Component component,
javax.swing.Icon icon,
java.lang.String tooltip,
TooltipWay tooltipWay,
int delay)
|
static WebCustomTooltip |
setTooltip(java.awt.Component component,
javax.swing.JComponent tooltip)
|
static WebCustomTooltip |
setTooltip(java.awt.Component component,
javax.swing.JComponent tooltip,
int delay)
|
static WebCustomTooltip |
setTooltip(java.awt.Component component,
javax.swing.JComponent tooltip,
TooltipWay tooltipWay)
|
static WebCustomTooltip |
setTooltip(java.awt.Component component,
javax.swing.JComponent tooltip,
TooltipWay tooltipWay,
int delay)
|
static WebCustomTooltip |
setTooltip(java.awt.Component component,
java.lang.String tooltip)
Registers standart tooltip |
static WebCustomTooltip |
setTooltip(java.awt.Component component,
java.lang.String tooltip,
TooltipWay tooltipWay)
|
static WebCustomTooltip |
setTooltip(java.awt.Component component,
java.lang.String tooltip,
TooltipWay tooltipWay,
int delay)
|
static void |
showAllTooltips()
Displays all tooltips for all visible windows |
static void |
showAllTooltips(java.awt.Component component)
Displays all tooltips for component's window |
static WebCustomTooltip |
showOneTimeTooltip(java.awt.Component component,
java.awt.Point point,
javax.swing.Icon icon,
java.lang.String tooltip)
|
static WebCustomTooltip |
showOneTimeTooltip(java.awt.Component component,
java.awt.Point point,
javax.swing.Icon icon,
java.lang.String tooltip,
TooltipWay tooltipWay)
|
static WebCustomTooltip |
showOneTimeTooltip(java.awt.Component component,
java.awt.Point point,
javax.swing.JComponent tooltip)
|
static WebCustomTooltip |
showOneTimeTooltip(java.awt.Component component,
java.awt.Point point,
javax.swing.JComponent tooltip,
TooltipWay tooltipWay)
|
static WebCustomTooltip |
showOneTimeTooltip(java.awt.Component component,
java.awt.Point point,
java.lang.String tooltip)
Shows one-time tooltip |
static WebCustomTooltip |
showOneTimeTooltip(java.awt.Component component,
java.awt.Point point,
java.lang.String tooltip,
TooltipWay tooltipWay)
|
static WebCustomTooltip |
showOneTimeTooltip(WebCustomTooltip customTooltip)
|
static boolean |
showTooltips(java.awt.Component component)
Displays component tooltips |
static boolean |
showTooltips(java.awt.Component component,
boolean delayed)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TooltipManager()
Method Detail |
---|
public static void initialize()
public static void hideAllTooltips()
public static WebCustomTooltip setTooltip(java.awt.Component component, java.lang.String tooltip)
public static WebCustomTooltip setTooltip(java.awt.Component component, javax.swing.Icon icon, java.lang.String tooltip)
public static WebCustomTooltip setTooltip(java.awt.Component component, java.lang.String tooltip, TooltipWay tooltipWay)
public static WebCustomTooltip setTooltip(java.awt.Component component, javax.swing.Icon icon, java.lang.String tooltip, TooltipWay tooltipWay)
public static WebCustomTooltip setTooltip(java.awt.Component component, java.lang.String tooltip, TooltipWay tooltipWay, int delay)
public static WebCustomTooltip setTooltip(java.awt.Component component, javax.swing.Icon icon, java.lang.String tooltip, TooltipWay tooltipWay, int delay)
public static WebCustomTooltip setTooltip(java.awt.Component component, javax.swing.JComponent tooltip)
public static WebCustomTooltip setTooltip(java.awt.Component component, javax.swing.JComponent tooltip, int delay)
public static WebCustomTooltip setTooltip(java.awt.Component component, javax.swing.JComponent tooltip, TooltipWay tooltipWay)
public static WebCustomTooltip setTooltip(java.awt.Component component, javax.swing.JComponent tooltip, TooltipWay tooltipWay, int delay)
public static WebCustomTooltip addTooltip(java.awt.Component component, java.lang.String tooltip)
public static WebCustomTooltip addTooltip(java.awt.Component component, javax.swing.Icon icon, java.lang.String tooltip)
public static WebCustomTooltip addTooltip(java.awt.Component component, java.lang.String tooltip, TooltipWay tooltipWay)
public static WebCustomTooltip addTooltip(java.awt.Component component, javax.swing.Icon icon, java.lang.String tooltip, TooltipWay tooltipWay)
public static WebCustomTooltip addTooltip(java.awt.Component component, java.lang.String tooltip, TooltipWay tooltipWay, int delay)
public static WebCustomTooltip addTooltip(java.awt.Component component, javax.swing.Icon icon, java.lang.String tooltip, TooltipWay tooltipWay, int delay)
public static WebCustomTooltip addTooltip(java.awt.Component component, javax.swing.JComponent tooltip)
public static WebCustomTooltip addTooltip(java.awt.Component component, javax.swing.JComponent tooltip, int delay)
public static WebCustomTooltip addTooltip(java.awt.Component component, javax.swing.JComponent tooltip, TooltipWay tooltipWay)
public static WebCustomTooltip addTooltip(java.awt.Component component, javax.swing.JComponent tooltip, TooltipWay tooltipWay, int delay)
public static boolean showTooltips(java.awt.Component component)
public static boolean showTooltips(java.awt.Component component, boolean delayed)
public static void showAllTooltips(java.awt.Component component)
public static void showAllTooltips()
public static void installShowAllTooltipsAction(java.awt.Component topComponent)
public static void installShowAllTooltipsAction(java.awt.Component topComponent, HotkeyData hotkeyData)
public static void removeTooltips(java.awt.Component component)
public static void removeTooltips(java.awt.Component component, java.util.List<WebCustomTooltip> tooltips)
public static void removeTooltip(java.awt.Component component, WebCustomTooltip tooltip)
public static WebCustomTooltip showOneTimeTooltip(java.awt.Component component, java.awt.Point point, java.lang.String tooltip)
public static WebCustomTooltip showOneTimeTooltip(java.awt.Component component, java.awt.Point point, javax.swing.Icon icon, java.lang.String tooltip)
public static WebCustomTooltip showOneTimeTooltip(java.awt.Component component, java.awt.Point point, java.lang.String tooltip, TooltipWay tooltipWay)
public static WebCustomTooltip showOneTimeTooltip(java.awt.Component component, java.awt.Point point, javax.swing.Icon icon, java.lang.String tooltip, TooltipWay tooltipWay)
public static WebCustomTooltip showOneTimeTooltip(java.awt.Component component, java.awt.Point point, javax.swing.JComponent tooltip)
public static WebCustomTooltip showOneTimeTooltip(java.awt.Component component, java.awt.Point point, javax.swing.JComponent tooltip, TooltipWay tooltipWay)
public static WebCustomTooltip showOneTimeTooltip(WebCustomTooltip customTooltip)
public static int getDefaultDelay()
public static void setDefaultDelay(int delay)
public static boolean isAllowMultiplyTooltips()
public static void setAllowMultiplyTooltips(boolean allowMultiplyTooltips)
public static boolean isShowHotkeysInTooltips()
public static void setShowHotkeysInTooltips(boolean showHotkeysInTooltips)
public static boolean isShowHotkeysInOneTimeTooltips()
public static void setShowHotkeysInOneTimeTooltips(boolean showHotkeysInOneTimeTooltips)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |