|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.swt.widgets.Label
org.formaria.swt.Label
org.formaria.swt.ToolTip
public class ToolTip
A Tooltip class for AWT components. Unlike other Aria-AWT components the tooltips are not added via the component factory. In this initial implementation tooltips must be added explicitly.
Copyright (c) Formaria Ltd., 2008
$Revision: 1.1 $
License: see License.txt
| Field Summary | |
|---|---|
protected Font |
font
|
protected int |
HORIZONTAL_ENLARGE
|
protected int |
lag
|
protected Composite |
mainComposite
|
protected Control |
owner
|
protected boolean |
shown
|
protected boolean |
showTip
|
protected java.lang.String |
tip
|
protected org.formaria.swt.ToolTip.TooltipThread |
tooltipThread
|
protected int |
VERTICAL_OFFSET
|
| Fields inherited from class org.formaria.swt.Label |
|---|
bufferHeight, bufferWidth, doubleBuffered, name |
| Constructor Summary | |
|---|---|
ToolTip(java.lang.String tip,
Control owner)
Create anew tooltip |
|
| Method Summary | |
|---|---|
protected void |
addToolTip(Point pt)
Add a tooltip |
protected void |
calcsize()
Get the size |
java.lang.String |
getTip()
Get the tip's text |
java.lang.String |
getToolTip()
Get the tooltip text |
void |
mouseDoubleClick(MouseEvent e)
|
void |
mouseDown(MouseEvent e)
Invoked when a mouse button has been pressed on a component. |
void |
mouseEnter(MouseEvent e)
Invoked when the mouse enters a component. |
void |
mouseExit(MouseEvent e)
Invoked when the mouse exits a component. |
void |
mouseHover(MouseEvent e)
|
void |
mouseUp(MouseEvent e)
|
protected void |
removeToolTip()
Remove a tooltip |
void |
setImage(java.lang.String imageName)
Set the image name |
void |
setTip(java.lang.String newTip)
Get the tip's text |
void |
setToolTip(java.lang.String text)
Set the tooltip text |
protected void |
setToolTipLocation(Point pt)
Set a tooltip location |
protected void |
showTip(Point pt)
Show the tooltip at the specified point |
| Methods inherited from class org.formaria.swt.Label |
|---|
checkSubclass, getAlignment, getPreferredSize, setDoubleBuffered, setText, setTransparent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.formaria.aria.TextHolder |
|---|
getText |
| Field Detail |
|---|
protected java.lang.String tip
protected Control owner
protected Composite mainComposite
protected boolean shown
protected final int VERTICAL_OFFSET
protected final int HORIZONTAL_ENLARGE
protected Font font
protected boolean showTip
protected int lag
protected org.formaria.swt.ToolTip.TooltipThread tooltipThread
| Constructor Detail |
|---|
public ToolTip(java.lang.String tip,
Control owner)
tip - the tip textowner - the owner component| Method Detail |
|---|
public java.lang.String getTip()
public void setTip(java.lang.String newTip)
newTip - the new textprotected void addToolTip(Point pt)
pt - pointprotected void calcsize()
protected void setToolTipLocation(Point pt)
pt - pointprotected void removeToolTip()
protected void showTip(Point pt)
pt - public void mouseExit(MouseEvent e)
public void mouseEnter(MouseEvent e)
e - mouse eventpublic void mouseDown(MouseEvent e)
e - mouse eventpublic void mouseUp(MouseEvent e)
public void mouseHover(MouseEvent e)
public void mouseDoubleClick(MouseEvent e)
public void setToolTip(java.lang.String text)
setToolTip in class Labeltext - the new textpublic java.lang.String getToolTip()
getToolTip in class Labelpublic void setImage(java.lang.String imageName)
setImage in class LabelimageName - the relative URL of the new image
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||