com.alee.managers.language
Class WeblafTooltipLanguageSupport

java.lang.Object
  extended by com.alee.managers.language.WeblafTooltipLanguageSupport
All Implemented Interfaces:
TooltipLanguageSupport

public class WeblafTooltipLanguageSupport
extends java.lang.Object
implements TooltipLanguageSupport

Swing and WebLaF tooltips language support.

Author:
Mikle Garin

Field Summary
protected  java.util.Map<java.awt.Component,java.util.List<WebCustomTooltip>> tooltipsCache
          Components custom WebLaF tooltips cache.
 
Constructor Summary
WeblafTooltipLanguageSupport()
           
 
Method Summary
protected  void cacheTip(WebCustomTooltip tooltip)
          Caches created custom tooltip.
 void setupTooltip(java.awt.Component component, Value value)
          Called when component tooltip update is required.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tooltipsCache

protected final java.util.Map<java.awt.Component,java.util.List<WebCustomTooltip>> tooltipsCache
Components custom WebLaF tooltips cache. Used for proper tooltips disposal and update.

Constructor Detail

WeblafTooltipLanguageSupport

public WeblafTooltipLanguageSupport()
Method Detail

setupTooltip

public void setupTooltip(java.awt.Component component,
                         Value value)
Called when component tooltip update is required.

Specified by:
setupTooltip in interface TooltipLanguageSupport
Parameters:
component - component to update tooltip for
value - language value containing possible tooltip information

cacheTip

protected void cacheTip(WebCustomTooltip tooltip)
Caches created custom tooltip.

Parameters:
tooltip - tooltip to cache