Package com.iizigo.swt
Class IzToolTipImpl
java.lang.Object
org.eclipse.jface.window.ToolTip
org.eclipse.jface.window.DefaultToolTip
com.iizigo.swt.IzToolTipImpl
The tooltip implementor class controlled by
IzToolTip
.- Author:
- Christopher Mindus
Field Summary
Fields inherited from class org.eclipse.jface.window.ToolTip
NO_RECREATE, RECREATE
Constructor Summary
ConstructorDescriptionIzToolTipImpl
(Control control, boolean useHideTimeout) Constructs the tooltip.IzToolTipImpl
(Control control, boolean useRegions, boolean useHideTimeout) Constructs the tooltip.Method Summary
Modifier and TypeMethodDescriptionstatic Composite
createHTMLComposite
(Composite topMost, Composite parent, KString kstring, KStringInfoProviderAdapter adapter) Creates a HTML composite for HTML preview.static Composite
createJavaDocComposite
(Composite topMost, Composite parent, IMember member) Creates a JavaDoc tooltip composite for a member.protected Composite
createToolTipContentArea
(Event event, Composite parent) Creates the tooltip content area for HTML.void
Sets the text, type is 0=normal text, 1=text with fixed font, 2=text in HTML.void
setHideTimeout
(boolean on) Sets using hide timeout.void
setJavaMember
(IMember member) Sets a Java member to show as HTML from its JavaDoc.void
Sets the DesignerProp as the tooltip creator for the contents area.void
setProperty
(DesignerProp dp, IzToolTipPropEnhancer enhancer) Sets the DesignerProp as the tooltip creator for the contents area.void
setProperty
(GProp<?> gp) Sets the property as the tooltip creator for the contents area.void
setText
(String text, int type, KStringInfoProviderAdapter adapter) Sets the text, type is 0=normal text, 1=text with fixed font, 2=text in HTML.Methods inherited from class org.eclipse.jface.window.DefaultToolTip
getBackgroundColor, getBackgroundImage, getFont, getForegroundColor, getImage, getStyle, getText, setBackgroundColor, setBackgroundImage, setFont, setForegroundColor, setImage, setStyle, setText
Methods inherited from class org.eclipse.jface.window.ToolTip
activate, afterHideToolTip, deactivate, getData, getLocation, getToolTipArea, hide, isHideOnMouseDown, isRespectDisplayBounds, isRespectMonitorBounds, setData, setHideDelay, setHideOnMouseDown, setPopupDelay, setRespectDisplayBounds, setRespectMonitorBounds, setShift, shouldCreateToolTip, show
Field Details
KEY
The key.- See Also:
Constructor Details
IzToolTipImpl
Constructs the tooltip.- Parameters:
control
- The owner of the tooltip.
IzToolTipImpl
Constructs the tooltip.- Parameters:
control
- The owner of the tooltip.
Method Details
setHideTimeout
public void setHideTimeout(boolean on) Sets using hide timeout.createToolTipContentArea
Creates the tooltip content area for HTML.- Overrides:
createToolTipContentArea
in classDefaultToolTip
ksetText
Sets the text, type is 0=normal text, 1=text with fixed font, 2=text in HTML.setText
Sets the text, type is 0=normal text, 1=text with fixed font, 2=text in HTML.setProperty
Sets the DesignerProp as the tooltip creator for the contents area. This will cancel tooltip text as text/HTML.setProperty
Sets the DesignerProp as the tooltip creator for the contents area. This will cancel tooltip text as text/HTML.setProperty
Sets the property as the tooltip creator for the contents area. This will cancel tooltip text as text/HTML.setJavaMember
Sets a Java member to show as HTML from its JavaDoc.createJavaDocComposite
Creates a JavaDoc tooltip composite for a member.- Parameters:
parent
- The parent composite.member
- The member.- Returns:
- null if not possible.
createHTMLComposite
public static Composite createHTMLComposite(Composite topMost, Composite parent, KString kstring, KStringInfoProviderAdapter adapter) Creates a HTML composite for HTML preview.