Java Doc for DefaultToolTip.java in  » IDE-Eclipse » jface » org » eclipse » jface » window » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » IDE Eclipse » jface » org.eclipse.jface.window 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.eclipse.jface.window.ToolTip
      org.eclipse.jface.window.DefaultToolTip

All known Subclasses:   org.eclipse.jface.viewers.ColumnViewerToolTipSupport,
DefaultToolTip
public class DefaultToolTip extends ToolTip (Code)
Default implementation of ToolTip that provides an iconofied label with font and color controls by subclass.
since:
   3.3



Constructor Summary
public  DefaultToolTip(Control control)
    
public  DefaultToolTip(Control control, int style, boolean manualActivation)
    

Method Summary
protected  CompositecreateToolTipContentArea(Event event, Composite parent)
     Creates the content are of the the tooltip.
protected  ColorgetBackgroundColor(Event event)
    
protected  ImagegetBackgroundImage(Event event)
    
protected  FontgetFont(Event event)
    
protected  ColorgetForegroundColor(Event event)
    
protected  ImagegetImage(Event event)
    
protected  intgetStyle(Event event)
    
protected  StringgetText(Event event)
    
public  voidsetBackgroundColor(Color backgroundColor)
    
public  voidsetBackgroundImage(Image backgroundImage)
    
public  voidsetFont(Font font)
    
public  voidsetForegroundColor(Color foregroundColor)
    
public  voidsetImage(Image image)
    
public  voidsetStyle(int style)
    
public  voidsetText(String text)
    


Constructor Detail
DefaultToolTip
public DefaultToolTip(Control control)(Code)
Create new instance which add TooltipSupport to the widget
Parameters:
  control - the control on whose action the tooltip is shown



DefaultToolTip
public DefaultToolTip(Control control, int style, boolean manualActivation)(Code)
Create new instance which add TooltipSupport to the widget
Parameters:
  control - the control to which the tooltip is bound
Parameters:
  style - style passed to control tooltip behaviour
Parameters:
  manualActivation - true if the activation is done manually usingDefaultToolTip.show(Point)
See Also:   DefaultToolTip.RECREATE
See Also:   DefaultToolTip.NO_RECREATE




Method Detail
createToolTipContentArea
protected Composite createToolTipContentArea(Event event, Composite parent)(Code)
Creates the content are of the the tooltip. By default this creates a CLabel to display text. To customize the text Subclasses may override the following methods
Parameters:
  event - the event that triggered the activation of the tooltip
Parameters:
  parent - the parent of the content area the content area created



getBackgroundColor
protected Color getBackgroundColor(Event event)(Code)
The background Color used by CLabel in the default implementation
Parameters:
  event - the event triggered the popup of the tooltip the Color or null if default backgroundcolor should be used



getBackgroundImage
protected Image getBackgroundImage(Event event)(Code)
The background Image used by CLabel in the default implementation
Parameters:
  event - the event triggered the popup of the tooltip the Image or null if no image should bedisplayed in the background



getFont
protected Font getFont(Event event)(Code)
The Font used by CLabel in the default implementation
Parameters:
  event - the event triggered the popup of the tooltip the Font or null if the default fontshould be used



getForegroundColor
protected Color getForegroundColor(Event event)(Code)
The foreground Color used by CLabel in the default implementation
Parameters:
  event - the event triggered the popup of the tooltip the Color or null if default foregroundcolor should be used



getImage
protected Image getImage(Event event)(Code)
The Image displayed in the CLabel in the default implementation implementation
Parameters:
  event - the event triggered the popup of the tooltip the Image or null if no image should bedisplayed



getStyle
protected int getStyle(Event event)(Code)
The style used to create the CLabel in the default implementation
Parameters:
  event - the event triggered the popup of the tooltip the style



getText
protected String getText(Event event)(Code)
The text displayed in the CLabel in the default implementation
Parameters:
  event - the event triggered the popup of the tooltip the text or null if no text has to be displayed



setBackgroundColor
public void setBackgroundColor(Color backgroundColor)(Code)
The background Image used by CLabel in the default implementation
Parameters:
  backgroundColor - the Color or null if default backgroundcolor (SWT.COLOR_INFO_BACKGROUND) should be used



setBackgroundImage
public void setBackgroundImage(Image backgroundImage)(Code)
The background Image used by CLabel in the default implementation
Parameters:
  backgroundImage - the Image or null if no image should bedisplayed in the background



setFont
public void setFont(Font font)(Code)
The Font used by CLabel in the default implementation
Parameters:
  font - the Font or null if the default fontshould be used



setForegroundColor
public void setForegroundColor(Color foregroundColor)(Code)
The foreground Color used by CLabel in the default implementation
Parameters:
  foregroundColor - the Color or null if default foregroundcolor should be used



setImage
public void setImage(Image image)(Code)
The Image displayed in the CLabel in the default implementation implementation
Parameters:
  image - the Image or null if no image should bedisplayed



setStyle
public void setStyle(int style)(Code)
The style used to create the CLabel in the default implementation
Parameters:
  style - the event triggered the popup of the tooltip



setText
public void setText(String text)(Code)
The text displayed in the CLabel in the default implementation
Parameters:
  text - the text or null if no text has to be displayed



Fields inherited from org.eclipse.jface.window.ToolTip
final public static int NO_RECREATE(Code)(Java Doc)
final public static int RECREATE(Code)(Java Doc)

Methods inherited from org.eclipse.jface.window.ToolTip
public void activate()(Code)(Java Doc)
protected void afterHideToolTip(Event event)(Code)(Java Doc)
abstract protected Composite createToolTipContentArea(Event event, Composite parent)(Code)(Java Doc)
public void deactivate()(Code)(Java Doc)
public Object getData(String key)(Code)(Java Doc)
public Point getLocation(Point tipSize, Event event)(Code)(Java Doc)
protected Object getToolTipArea(Event event)(Code)(Java Doc)
public void hide()(Code)(Java Doc)
public boolean isHideOnMouseDown()(Code)(Java Doc)
public boolean isRespectDisplayBounds()(Code)(Java Doc)
public boolean isRespectMonitorBounds()(Code)(Java Doc)
public void setData(String key, Object value)(Code)(Java Doc)
public void setHideDelay(int hideDelay)(Code)(Java Doc)
public void setHideOnMouseDown(boolean hideOnMouseDown)(Code)(Java Doc)
public void setPopupDelay(int popupDelay)(Code)(Java Doc)
public void setRespectDisplayBounds(boolean respectDisplayBounds)(Code)(Java Doc)
public void setRespectMonitorBounds(boolean respectMonitorBounds)(Code)(Java Doc)
public void setShift(Point p)(Code)(Java Doc)
protected boolean shouldCreateToolTip(Event event)(Code)(Java Doc)
public void show(Point location)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.