Class IzToolTip

java.lang.Object
com.iizigo.swt.IzToolTip

public class IzToolTip extends Object
The tooltip text class.
Author:
Christopher Mindus
  • Constructor Details

    • IzToolTip

      public IzToolTip(Control control)
      Constructs the tooltip that is using the system tooltip for normal text.
      Parameters:
      control - The owner of the tooltip.
    • IzToolTip

      public IzToolTip(Control control, boolean useSystem)
      Constructs the tooltip.
      Parameters:
      control - The owner of the tooltip.
      useSystem - If system tooltips should be used.
  • Method Details

    • dispose

      public void dispose()
      Disposes of the tooltip.
    • setHideTimeout

      public void setHideTimeout(boolean on)
      Sets using hide timeout.
    • setUseSystem

      public void setUseSystem(boolean on)
      Sets using the System tooltip for normal non-fixed font, default is true.
    • setHTMLText

      public void setHTMLText(String text)
      Sets the HTML text with the KString adapter for Font Face support. This cancels creation of the tooltip using a DesignerProp.
    • setText

      public void setText(KString ks, KStringInfoProviderAdapter adapter)
      Sets the HTML text with the KString adapter for Font Face support. This cancels creation of the tooltip using a DesignerProp.
    • setText

      public void setText(String text, int type)
      Sets the text with options 0=normal text, 1=text with fixed font, 2=text in HTML. This cancels creation of the tooltip using a DesignerProp.
    • setText

      public void setText(String text, int type, KStringInfoProviderAdapter adapter)
      Sets the text with options 0=normal text, 1=text with fixed font, 2=text in HTML. This cancels creation of the tooltip using a DesignerProp.
    • setProperty

      public void setProperty(DesignerProp dp)
      Sets the DesignerProp as the tooltip creator for the contents area. This will cancel tooltip text as text/HTML.
    • setProperty

      public void setProperty(DesignerProp dp, IzToolTipPropEnhancer enhancer)
      Sets the DesignerProp as the tooltip creator for the contents area. This will cancel tooltip text as text/HTML.
    • setJavaMember

      public void setJavaMember(IMember member)
      Sets a Java member to show as HTML from its JavaDoc.