com.alee.managers.tooltip
Interface ToolTipMethods

All Superinterfaces:
SwingMethods
All Known Implementing Classes:
AlignPanel, BorderPanel, CenterPanel, ComponentTransition, DictionariesTreeRenderer, DoubleColorField, EmptyPanel, FlowPanel, GenericCellEditor, GridPanel, GroupPanel, HotkeyTipLabel, IconProgress, LanguageEditor, LanguageExample.MyLabel, LineColorChooser, MultiComponentTransition, NinePatchEditorPanel, PaletteColorChooser, PopupLayer, ResizablePanel, SampleTreeCellRenderer, ShadeLayer, SingleAlignPanel, SourceViewer, TwoSidesPanel, VerticalPanel, WebAccordion, WebAsyncTreeCellRenderer, WebBooleanRenderer, WebBreadcrumb, WebBreadcrumbButton, WebBreadcrumbLabel, WebBreadcrumbPanel, WebBreadcrumbToggleButton, WebButton, WebButtonGroup, WebButtonPopup, WebCalendar, WebCheckBox, WebCheckBoxListElement, WebCheckBoxTreeCellRenderer, WebClock, WebCollapsiblePane, WebColorChooserField, WebColorChooserPanel, WebComboBox, WebComboBoxElement, WebComponentPanel, WebComponentPanel.WebSelectablePanel, WebCursorTracker, WebDateField, WebDateRenderer, WebDirectoryChooserPanel, WebDockableFrame, WebDockablePane, WebDocumentPane, WebDoubleRenderer, WebDynamicMenu, WebFileBreadcrumb, WebFileChooserField, WebFileChooserField.FilePlate, WebFileChooserPanel, WebFileDrop, WebFileListCellRenderer, WebFilePlate, WebFileTableCellRenderer, WebFileTreeCellRenderer, WebFormattedTextField, WebGlassPane, WebHeavyWeightPopup, WebHotkeyField, WebHotkeyLabel, WebIconRenderer, WebImage, WebInnerNotification, WebLabel, WebLinkLabel, WebListCellRenderer, WebListCellRenderer.UIResource, WebListElement, WebMemoryBar, WebMultiLineLabel, WebNotification, WebNumberRenderer, WebOverlay, WebPanel, WebPasswordField, WebPathField, WebPopup, WebProgressBar, WebProgressOverlay, WebRadioButton, WebRootPaneUI.TitleLabel, WebSlider, WebSpinner, WebSplitButton, WebStatusLabel, WebStepLabel, WebStyledLabel, WebSwitch, WebSwitchGripper, WebSwitchPane, WebSyntaxPanel, WebTableCellRenderer, WebTableCellRenderer.UIResource, WebTableHeaderCellRenderer, WebTableHeaderCellRenderer.UIResource, WebTextField, WebTitledPanel, WebToggleButton, WebToolBarCorner, WebTreeCellRenderer, WebTreeElement, WebTreeFilterField, WebTristateCheckBox, WebVerticalLabel, WrapPanel

public interface ToolTipMethods
extends SwingMethods

This interface provides a set of methods that should be added into components to support custom WebLaF tooltips. Basically all these methods are already implemented in EventUtils but it is much easier to call them directly from popover.

Author:
Mikle Garin
See Also:
SwingMethods, TooltipManager

Method Summary
 WebCustomTooltip addToolTip(javax.swing.Icon icon, java.lang.String tooltip)
          Adds custom WebLaF tooltip to the component.
 WebCustomTooltip addToolTip(javax.swing.Icon icon, java.lang.String tooltip, TooltipWay tooltipWay)
          Adds custom WebLaF tooltip to the component.
 WebCustomTooltip addToolTip(javax.swing.Icon icon, java.lang.String tooltip, TooltipWay tooltipWay, int delay)
          Adds custom WebLaF tooltip to the component.
 WebCustomTooltip addToolTip(javax.swing.JComponent tooltip)
          Adds custom WebLaF tooltip to the component.
 WebCustomTooltip addToolTip(javax.swing.JComponent tooltip, int delay)
          Adds custom WebLaF tooltip to the component.
 WebCustomTooltip addToolTip(javax.swing.JComponent tooltip, TooltipWay tooltipWay)
          Adds custom WebLaF tooltip to the component.
 WebCustomTooltip addToolTip(javax.swing.JComponent tooltip, TooltipWay tooltipWay, int delay)
          Adds custom WebLaF tooltip to the component.
 WebCustomTooltip addToolTip(java.lang.String tooltip)
          Adds custom WebLaF tooltip to the component.
 WebCustomTooltip addToolTip(java.lang.String tooltip, TooltipWay tooltipWay)
          Adds custom WebLaF tooltip to the component.
 WebCustomTooltip addToolTip(java.lang.String tooltip, TooltipWay tooltipWay, int delay)
          Adds custom WebLaF tooltip to the component.
 void removeToolTip(WebCustomTooltip tooltip)
          Removes specified custom WebLaF tooltip from the component.
 void removeToolTips()
          Removes all custom WebLaF tooltips from the component.
 void removeToolTips(java.util.List<WebCustomTooltip> tooltips)
          Removes specified custom WebLaF tooltips from the component.
 void removeToolTips(WebCustomTooltip... tooltips)
          Removes specified custom WebLaF tooltips from the component.
 WebCustomTooltip setToolTip(javax.swing.Icon icon, java.lang.String tooltip)
          Sets single custom WebLaF tooltip into the component.
 WebCustomTooltip setToolTip(javax.swing.Icon icon, java.lang.String tooltip, TooltipWay tooltipWay)
          Sets single custom WebLaF tooltip into the component.
 WebCustomTooltip setToolTip(javax.swing.Icon icon, java.lang.String tooltip, TooltipWay tooltipWay, int delay)
          Sets single custom WebLaF tooltip into the component.
 WebCustomTooltip setToolTip(javax.swing.JComponent tooltip)
          Sets single custom WebLaF tooltip into the component.
 WebCustomTooltip setToolTip(javax.swing.JComponent tooltip, int delay)
          Sets single custom WebLaF tooltip into the component.
 WebCustomTooltip setToolTip(javax.swing.JComponent tooltip, TooltipWay tooltipWay)
          Sets single custom WebLaF tooltip into the component.
 WebCustomTooltip setToolTip(javax.swing.JComponent tooltip, TooltipWay tooltipWay, int delay)
          Sets single custom WebLaF tooltip into the component.
 WebCustomTooltip setToolTip(java.lang.String tooltip)
          Sets single custom WebLaF tooltip into the component.
 WebCustomTooltip setToolTip(java.lang.String tooltip, TooltipWay tooltipWay)
          Sets single custom WebLaF tooltip into the component.
 WebCustomTooltip setToolTip(java.lang.String tooltip, TooltipWay tooltipWay, int delay)
          Sets single custom WebLaF tooltip into the component.
 

Method Detail

setToolTip

WebCustomTooltip setToolTip(java.lang.String tooltip)
Sets single custom WebLaF tooltip into the component.

Parameters:
tooltip - tooltip text or language key
Returns:
created custom WebLaF tooltip

setToolTip

WebCustomTooltip setToolTip(javax.swing.Icon icon,
                            java.lang.String tooltip)
Sets single custom WebLaF tooltip into the component.

Parameters:
icon - tooltip icon
tooltip - tooltip text or language key
Returns:
created custom WebLaF tooltip

setToolTip

WebCustomTooltip setToolTip(java.lang.String tooltip,
                            TooltipWay tooltipWay)
Sets single custom WebLaF tooltip into the component.

Parameters:
tooltip - tooltip text or language key
tooltipWay - tooltip display direction
Returns:
created custom WebLaF tooltip

setToolTip

WebCustomTooltip setToolTip(javax.swing.Icon icon,
                            java.lang.String tooltip,
                            TooltipWay tooltipWay)
Sets single custom WebLaF tooltip into the component.

Parameters:
icon - tooltip icon
tooltip - tooltip text or language key
tooltipWay - tooltip display direction
Returns:
created custom WebLaF tooltip

setToolTip

WebCustomTooltip setToolTip(java.lang.String tooltip,
                            TooltipWay tooltipWay,
                            int delay)
Sets single custom WebLaF tooltip into the component.

Parameters:
tooltip - tooltip text or language key
tooltipWay - tooltip display direction
delay - tooltip display delay
Returns:
created custom WebLaF tooltip

setToolTip

WebCustomTooltip setToolTip(javax.swing.Icon icon,
                            java.lang.String tooltip,
                            TooltipWay tooltipWay,
                            int delay)
Sets single custom WebLaF tooltip into the component.

Parameters:
icon - tooltip icon
tooltip - tooltip text or language key
tooltipWay - tooltip display direction
delay - tooltip display delay
Returns:
created custom WebLaF tooltip

setToolTip

WebCustomTooltip setToolTip(javax.swing.JComponent tooltip)
Sets single custom WebLaF tooltip into the component.

Parameters:
tooltip - custom tooltip component
Returns:
created custom WebLaF tooltip

setToolTip

WebCustomTooltip setToolTip(javax.swing.JComponent tooltip,
                            int delay)
Sets single custom WebLaF tooltip into the component.

Parameters:
tooltip - custom tooltip component
delay - tooltip display delay
Returns:
created custom WebLaF tooltip

setToolTip

WebCustomTooltip setToolTip(javax.swing.JComponent tooltip,
                            TooltipWay tooltipWay)
Sets single custom WebLaF tooltip into the component.

Parameters:
tooltip - custom tooltip component
tooltipWay - tooltip display direction
Returns:
created custom WebLaF tooltip

setToolTip

WebCustomTooltip setToolTip(javax.swing.JComponent tooltip,
                            TooltipWay tooltipWay,
                            int delay)
Sets single custom WebLaF tooltip into the component.

Parameters:
tooltip - custom tooltip component
tooltipWay - tooltip display direction
delay - tooltip display delay
Returns:
created custom WebLaF tooltip

addToolTip

WebCustomTooltip addToolTip(java.lang.String tooltip)
Adds custom WebLaF tooltip to the component.

Parameters:
tooltip - tooltip text or language key
Returns:
created custom WebLaF tooltip

addToolTip

WebCustomTooltip addToolTip(javax.swing.Icon icon,
                            java.lang.String tooltip)
Adds custom WebLaF tooltip to the component.

Parameters:
icon - tooltip icon
tooltip - tooltip text or language key
Returns:
created custom WebLaF tooltip

addToolTip

WebCustomTooltip addToolTip(java.lang.String tooltip,
                            TooltipWay tooltipWay)
Adds custom WebLaF tooltip to the component.

Parameters:
tooltip - tooltip text or language key
tooltipWay - tooltip display direction
Returns:
created custom WebLaF tooltip

addToolTip

WebCustomTooltip addToolTip(javax.swing.Icon icon,
                            java.lang.String tooltip,
                            TooltipWay tooltipWay)
Adds custom WebLaF tooltip to the component.

Parameters:
icon - tooltip icon
tooltip - tooltip text or language key
tooltipWay - tooltip display direction
Returns:
created custom WebLaF tooltip

addToolTip

WebCustomTooltip addToolTip(java.lang.String tooltip,
                            TooltipWay tooltipWay,
                            int delay)
Adds custom WebLaF tooltip to the component.

Parameters:
tooltip - tooltip text or language key
tooltipWay - tooltip display direction
delay - tooltip display delay
Returns:
created custom WebLaF tooltip

addToolTip

WebCustomTooltip addToolTip(javax.swing.Icon icon,
                            java.lang.String tooltip,
                            TooltipWay tooltipWay,
                            int delay)
Adds custom WebLaF tooltip to the component.

Parameters:
icon - tooltip icon
tooltip - tooltip text or language key
tooltipWay - tooltip display direction
delay - tooltip display delay
Returns:
created custom WebLaF tooltip

addToolTip

WebCustomTooltip addToolTip(javax.swing.JComponent tooltip)
Adds custom WebLaF tooltip to the component.

Parameters:
tooltip - custom tooltip component
Returns:
created custom WebLaF tooltip

addToolTip

WebCustomTooltip addToolTip(javax.swing.JComponent tooltip,
                            int delay)
Adds custom WebLaF tooltip to the component.

Parameters:
tooltip - custom tooltip component
delay - tooltip display delay
Returns:
created custom WebLaF tooltip

addToolTip

WebCustomTooltip addToolTip(javax.swing.JComponent tooltip,
                            TooltipWay tooltipWay)
Adds custom WebLaF tooltip to the component.

Parameters:
tooltip - custom tooltip component
tooltipWay - tooltip display direction
Returns:
created custom WebLaF tooltip

addToolTip

WebCustomTooltip addToolTip(javax.swing.JComponent tooltip,
                            TooltipWay tooltipWay,
                            int delay)
Adds custom WebLaF tooltip to the component.

Parameters:
tooltip - custom tooltip component
tooltipWay - tooltip display direction
delay - tooltip display delay
Returns:
created custom WebLaF tooltip

removeToolTip

void removeToolTip(WebCustomTooltip tooltip)
Removes specified custom WebLaF tooltip from the component.

Parameters:
tooltip - custom WebLaF tooltip to remove

removeToolTips

void removeToolTips()
Removes all custom WebLaF tooltips from the component.


removeToolTips

void removeToolTips(WebCustomTooltip... tooltips)
Removes specified custom WebLaF tooltips from the component.

Parameters:
tooltips - custom WebLaF tooltips to remove

removeToolTips

void removeToolTips(java.util.List<WebCustomTooltip> tooltips)
Removes specified custom WebLaF tooltips from the component.

Parameters:
tooltips - custom WebLaF tooltips to remove