Java Doc for CellLabelProvider.java in  » IDE-Eclipse » jface » org » eclipse » jface » viewers » 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.viewers 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.eclipse.jface.viewers.BaseLabelProvider
   org.eclipse.jface.viewers.CellLabelProvider

All known Subclasses:   org.eclipse.jface.viewers.OwnerDrawLabelProvider,  org.eclipse.jface.viewers.ColumnLabelProvider,
CellLabelProvider
abstract public class CellLabelProvider extends BaseLabelProvider (Code)
The CellLabelProvider is an abstract implementation of a label provider for structured viewers.

This class is intended to be subclassed


since:
   3.3
See Also:   ColumnLabelProvider
See Also:    as a concrete implementation



Constructor Summary
public  CellLabelProvider()
     Create a new instance of the receiver.

Method Summary
static  CellLabelProvidercreateViewerLabelProvider(ColumnViewer viewer, IBaseLabelProvider labelProvider)
    
public  ColorgetToolTipBackgroundColor(Object object)
    
public  intgetToolTipDisplayDelayTime(Object object)
     The time in milliseconds until the tool tip is displayed.
public  FontgetToolTipFont(Object object)
    
public  ColorgetToolTipForegroundColor(Object object)
    
public  ImagegetToolTipImage(Object object)
     Get the image displayed in the tool tip for object.
public  PointgetToolTipShift(Object object)
     Return the amount of pixels in x and y direction you want the tool tip to pop up from the mouse pointer.
public  intgetToolTipStyle(Object object)
     The SWT style used to create the CLabel (see there for supported styles).
public  StringgetToolTipText(Object element)
     Get the text displayed in the tool tip for object.
public  intgetToolTipTimeDisplayed(Object object)
     The time in milliseconds the tool tip is shown for.
abstract public  voidupdate(ViewerCell cell)
     Update the label for cell.
public  booleanuseNativeToolTip(Object object)
     Return whether or not to use the native tool tip.


Constructor Detail
CellLabelProvider
public CellLabelProvider()(Code)
Create a new instance of the receiver.




Method Detail
createViewerLabelProvider
static CellLabelProvider createViewerLabelProvider(ColumnViewer viewer, IBaseLabelProvider labelProvider)(Code)
Create a ViewerLabelProvider for the column at index
Parameters:
  labelProvider - The labelProvider to convert ViewerLabelProvider



getToolTipBackgroundColor
public Color getToolTipBackgroundColor(Object object)(Code)
Return the background color used for the tool tip
Parameters:
  object - the Object for which the tool tip is shown the Color used or null if you want to usethe default color SWT.COLOR_INFO_BACKGROUND
See Also:   SWT.COLOR_INFO_BACKGROUND



getToolTipDisplayDelayTime
public int getToolTipDisplayDelayTime(Object object)(Code)
The time in milliseconds until the tool tip is displayed.
Parameters:
  object - the Object for which the tool tip is shown time in milliseconds until the tool tip is displayed



getToolTipFont
public Font getToolTipFont(Object object)(Code)
Get the Font used to display the tool tip
Parameters:
  object - the element for which the tool tip is shown Font or null if the default font is to beused.



getToolTipForegroundColor
public Color getToolTipForegroundColor(Object object)(Code)
The foreground color used to display the the text in the tool tip
Parameters:
  object - the Object for which the tool tip is shown the Color used or null if you want to usethe default color SWT.COLOR_INFO_FOREGROUND
See Also:   SWT.COLOR_INFO_FOREGROUND



getToolTipImage
public Image getToolTipImage(Object object)(Code)
Get the image displayed in the tool tip for object.

If CellLabelProvider.getToolTipText(Object) and CellLabelProvider.getToolTipImage(Object) both return null the control is set back to standard behavior


Parameters:
  object - the element for which the tool tip is shown Image or null if there is not image.



getToolTipShift
public Point getToolTipShift(Object object)(Code)
Return the amount of pixels in x and y direction you want the tool tip to pop up from the mouse pointer. The default shift is 10px right and 0px below your mouse cursor. Be aware of the fact that you should at least position the tool tip 1px right to your mouse cursor else click events may not get propagated properly.
Parameters:
  object - the element for which the tool tip is shown Point to shift of the tool tip or null if thedefault shift should be used.



getToolTipStyle
public int getToolTipStyle(Object object)(Code)
The SWT style used to create the CLabel (see there for supported styles). By default SWT.SHADOW_NONE is used.
Parameters:
  object - the element for which the tool tip is shown the style used to create the label
See Also:   CLabel



getToolTipText
public String getToolTipText(Object element)(Code)
Get the text displayed in the tool tip for object.

If CellLabelProvider.getToolTipText(Object) and CellLabelProvider.getToolTipImage(Object) both return null the control is set back to standard behavior


Parameters:
  element - the element for which the tool tip is shown the String or null if there is not text todisplay



getToolTipTimeDisplayed
public int getToolTipTimeDisplayed(Object object)(Code)
The time in milliseconds the tool tip is shown for.
Parameters:
  object - the Object for which the tool tip is shown time in milliseconds the tool tip is shown for



update
abstract public void update(ViewerCell cell)(Code)
Update the label for cell.
Parameters:
  cell - ViewerCell



useNativeToolTip
public boolean useNativeToolTip(Object object)(Code)
Return whether or not to use the native tool tip. If you switch to native tool tips only the value from CellLabelProvider.getToolTipText(Object) is used all other features from custom tool tips are not supported.

To reset the control to native behavior you should return true from this method and null from CellLabelProvider.getToolTipText(Object) or null from CellLabelProvider.getToolTipText(Object) and CellLabelProvider.getToolTipImage(Object) at the same time


Parameters:
  object - the Object for which the tool tip is shown true if native tool tips should be used



Methods inherited from org.eclipse.jface.viewers.BaseLabelProvider
public void addListener(ILabelProviderListener listener)(Code)(Java Doc)
public void dispose()(Code)(Java Doc)
protected void fireLabelProviderChanged(LabelProviderChangedEvent event)(Code)(Java Doc)
public boolean isLabelProperty(Object element, String property)(Code)(Java Doc)
public void removeListener(ILabelProviderListener listener)(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.