Class GridToolTip


  • public class GridToolTip
    extends org.eclipse.swt.widgets.Widget
    An in-place tooltip.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.eclipse.swt.widgets.Shell shell  
      private java.lang.String text  
      private int xmargin  
      private int ymargin  
      • Fields inherited from class org.eclipse.swt.widgets.Widget

        handle
    • 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 void checkSubclass()
      java.lang.String getText()  
      private void onPaint​(org.eclipse.swt.graphics.GC gc)
      Paints the tooltip.
      void setFont​(org.eclipse.swt.graphics.Font font)  
      void setLocation​(org.eclipse.swt.graphics.Point location)
      Sets the location of the tooltip.
      void setText​(java.lang.String text)  
      void setVisible​(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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • shell

        private org.eclipse.swt.widgets.Shell shell
      • text

        private java.lang.String text
      • ymargin

        private int ymargin
      • xmargin

        private int xmargin
    • Constructor Detail

      • GridToolTip

        public GridToolTip​(org.eclipse.swt.widgets.Control parent)
        Creates an inplace tooltip.
        Parameters:
        parent - parent control.
    • 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:
        checkSubclass in class org.eclipse.swt.widgets.Widget