Class GridToolTip
- java.lang.Object
-
- org.eclipse.swt.widgets.Widget
-
- org.eclipse.nebula.widgets.grid.internal.GridToolTip
-
public class GridToolTip extends org.eclipse.swt.widgets.WidgetAn in-place tooltip.
-
-
Constructor Summary
Constructors Constructor Description GridToolTip(org.eclipse.swt.widgets.Control parent)Creates an inplace tooltip.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckSubclass()java.lang.StringgetText()private voidonPaint(org.eclipse.swt.graphics.GC gc)Paints the tooltip.voidsetFont(org.eclipse.swt.graphics.Font font)voidsetLocation(org.eclipse.swt.graphics.Point location)Sets the location of the tooltip.voidsetText(java.lang.String text)voidsetVisible(boolean visible)Shows or hides the tooltip.-
Methods inherited from class org.eclipse.swt.widgets.Widget
addDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getListeners, getStyle, isAutoDirection, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, setData, setData, toString
-
-
-
-
Method Detail
-
onPaint
private void onPaint(org.eclipse.swt.graphics.GC gc)
Paints the tooltip.- Parameters:
gc-
-
setLocation
public void setLocation(org.eclipse.swt.graphics.Point location)
Sets the location of the tooltip.- Parameters:
location-
-
setVisible
public void setVisible(boolean visible)
Shows or hides the tooltip.- Parameters:
visible-
-
setFont
public void setFont(org.eclipse.swt.graphics.Font font)
- Parameters:
font-
-
getText
public java.lang.String getText()
- Returns:
- the text
-
setText
public void setText(java.lang.String text)
- Parameters:
text- the text to set
-
checkSubclass
protected void checkSubclass()
- Overrides:
checkSubclassin classorg.eclipse.swt.widgets.Widget
-
-