org.nuiton.widget.tooltip
Class TipUtil

java.lang.Object
  extended by org.nuiton.widget.tooltip.TipUtil

public class TipUtil
extends Object

Static utility methods for focusable tips.

Version:
1.0
Author:
Robert Futrell

Field Summary
protected static String COPY_ICON_PATH
           
 
Method Summary
static void addCopyContextMenu(FocusableTip focusableTip)
          Add context menu for paste selected content
protected static void addCopyContextMenu(TipWindow tipWindows)
           
static Color getToolTipBackground()
          Returns the default background color to use for tool tip windows.
static void tweakTipEditorPane(JEditorPane textArea)
          Tweaks a JEditorPane so it can be used to render the content in a focusable pseudo-tool tip.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COPY_ICON_PATH

protected static final String COPY_ICON_PATH
See Also:
Constant Field Values
Method Detail

getToolTipBackground

public static Color getToolTipBackground()
Returns the default background color to use for tool tip windows.

Returns:
The default background color.

tweakTipEditorPane

public static void tweakTipEditorPane(JEditorPane textArea)
Tweaks a JEditorPane so it can be used to render the content in a focusable pseudo-tool tip. It is assumed that the editor pane is using an HTMLDocument.

Parameters:
textArea - The editor pane to tweak.

addCopyContextMenu

public static void addCopyContextMenu(FocusableTip focusableTip)
Add context menu for paste selected content

Parameters:
focusableTip - to add copy context menu

addCopyContextMenu

protected static void addCopyContextMenu(TipWindow tipWindows)


Copyright © 2004-2010 CodeLutin. All Rights Reserved.