org.nuiton.widget.tooltip
Class FocusableTip

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

public class FocusableTip
extends Object

A focusable tool tip, similar to those found in Eclipse. The user can click in the tip and it becomes a "real," resizable window.

Version:
1.0
Author:
Robert Futrell

Field Summary
protected  int height
          Height with default value.
protected  int width
          Width with default value.
 
Constructor Summary
FocusableTip(JComponent attachedComponent, HyperlinkListener listener)
           
 
Method Summary
 URL getImageBase()
          Returns the base URL to use when loading images in this focusable tip.
 void possiblyDisposeOfTipWindow()
          Disposes of the focusable tip currently displayed, if any.
 void setImageBase(URL url)
          Sets the base URL to use when loading images in this focusable tip.
 void setSize(int width, int height)
          Change tip size.
 void toolTipRequested(MouseEvent e, String text)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

width

protected int width
Width with default value.


height

protected int height
Height with default value.

Constructor Detail

FocusableTip

public FocusableTip(JComponent attachedComponent,
                    HyperlinkListener listener)
Method Detail

setSize

public void setSize(int width,
                    int height)
Change tip size.

Parameters:
width - width
height - height

getImageBase

public URL getImageBase()
Returns the base URL to use when loading images in this focusable tip.

Returns:
The base URL to use.
See Also:
setImageBase(URL)

possiblyDisposeOfTipWindow

public void possiblyDisposeOfTipWindow()
Disposes of the focusable tip currently displayed, if any.


setImageBase

public void setImageBase(URL url)
Sets the base URL to use when loading images in this focusable tip.

Parameters:
url - The base URL to use.
See Also:
getImageBase()

toolTipRequested

public void toolTipRequested(MouseEvent e,
                             String text)


Copyright © 2004-2010 CodeLutin. All Rights Reserved.