Java Doc for NavigatorContentServiceLabelProvider.java in  » IDE-Eclipse » ui » org » eclipse » ui » internal » navigator » 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 » ui » org.eclipse.ui.internal.navigator 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.eclipse.ui.internal.navigator.NavigatorContentServiceLabelProvider

NavigatorContentServiceLabelProvider
public class NavigatorContentServiceLabelProvider extends EventManager implements ILabelProvider,IColorProvider,IFontProvider,ITreePathLabelProvider,ILabelProviderListener(Code)

Provides relevant labels based on the associated INavigatorContentService for the contents of a TreeViewer .

Except for the dependency on INavigatorContentService , this class has no dependencies on the rest of the Common Navigator framework. Tree viewers that would like to use the extensions defined by the Common Navigator, without using the actual view part or other pieces of functionality (filters, sorting, etc) may choose to use this class, in effect using an extensible label provider.

EXPERIMENTAL. This class or interface has been added as part of a work in progress. There is a guarantee neither that this API will work nor that it will remain the same. Please do not use this API without consulting with the Platform/UI team.


since:
   3.2
See Also:   org.eclipse.ui.internal.navigator.NavigatorContentService
See Also:   org.eclipse.ui.internal.navigator.NavigatorContentServiceContentProvider



Constructor Summary
public  NavigatorContentServiceLabelProvider(NavigatorContentService aContentService)
    

Uses the supplied content service to acquire the available extensions.


Method Summary
public  voidaddListener(ILabelProviderListener aListener)
    

Label provider listeners are currently supported.

public  voiddispose()
    

Dispose of the content service, if it was created and not supplied.

If a client uses this class outside of the framework of CommonViewer , this method must be called when finished.

protected  voidfireLabelProviderChanged(LabelProviderChangedEvent event)
     Fires a label provider changed event to all registered listeners Only listeners registered at the time this method is called are notified.
public  ColorgetBackground(Object anElement)
    
public  FontgetFont(Object anElement)
    
public  ColorgetForeground(Object anElement)
    
public  ImagegetImage(Object anElement)
    

Return the appropriate image for anElement.

public  StringgetText(Object anElement)
    

Return a String representation of anElement to be used as the display name in the tree viewer.

public  booleanisLabelProperty(Object anElement, String aProperty)
    

Indicates whether anElelement has aProperty that affects the display of the label.

public  voidlabelProviderChanged(LabelProviderChangedEvent event)
    
public  voidremoveListener(ILabelProviderListener aListener)
    

Label provider listeners are currently supported.

public  voidupdateLabel(ViewerLabel label, TreePath elementPath)
    


Constructor Detail
NavigatorContentServiceLabelProvider
public NavigatorContentServiceLabelProvider(NavigatorContentService aContentService)(Code)

Uses the supplied content service to acquire the available extensions.


Parameters:
  aContentService - The associated NavigatorContentService that should be used to acquire information.




Method Detail
addListener
public void addListener(ILabelProviderListener aListener)(Code)

Label provider listeners are currently supported.


See Also:   org.eclipse.jface.viewers.IBaseLabelProvider.addListener(org.eclipse.jface.viewers.ILabelProviderListener)



dispose
public void dispose()(Code)

Dispose of the content service, if it was created and not supplied.

If a client uses this class outside of the framework of CommonViewer , this method must be called when finished.


See Also:   org.eclipse.jface.viewers.IBaseLabelProvider.dispose



fireLabelProviderChanged
protected void fireLabelProviderChanged(LabelProviderChangedEvent event)(Code)
Fires a label provider changed event to all registered listeners Only listeners registered at the time this method is called are notified.
Parameters:
  event - a label provider changed event
See Also:   ILabelProviderListener.labelProviderChanged



getBackground
public Color getBackground(Object anElement)(Code)



getFont
public Font getFont(Object anElement)(Code)



getForeground
public Color getForeground(Object anElement)(Code)



getImage
public Image getImage(Object anElement)(Code)

Return the appropriate image for anElement. The image will be used as the icon for anElement when displayed in the tree viewer. This method uses information from its contentService to know what extensions to use to supply the correct label.


Parameters:
  anElement - An element from the Tree Viewer The Image that will be used as the icon when anElement is displayed in the viewer.
See Also:   org.eclipse.jface.viewers.ILabelProvider.getImage(java.lang.Object)



getText
public String getText(Object anElement)(Code)

Return a String representation of anElement to be used as the display name in the tree viewer.


Parameters:
  anElement - An element from the Tree Viewer The String label to display for the object when represented in the viewer.
See Also:   org.eclipse.jface.viewers.ILabelProvider.getText(java.lang.Object)



isLabelProperty
public boolean isLabelProperty(Object anElement, String aProperty)(Code)

Indicates whether anElelement has aProperty that affects the display of the label.


Parameters:
  anElement - An element from the Tree Viewer
Parameters:
  aProperty - A property of the given element that could be a label provider True if any of the extensions enabled on anElement consider aProperty alabel-changing property.
See Also:   org.eclipse.jface.viewers.IBaseLabelProvider.isLabelProperty(java.lang.Objectjava.lang.String)



labelProviderChanged
public void labelProviderChanged(LabelProviderChangedEvent event)(Code)



removeListener
public void removeListener(ILabelProviderListener aListener)(Code)

Label provider listeners are currently supported.


See Also:   org.eclipse.jface.viewers.IBaseLabelProvider.removeListener(org.eclipse.jface.viewers.ILabelProviderListener)



updateLabel
public void updateLabel(ViewerLabel label, TreePath elementPath)(Code)



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