Java Doc for DecoratingLabelProvider.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.LabelProvider
      org.eclipse.jface.viewers.DecoratingLabelProvider

DecoratingLabelProvider
public class DecoratingLabelProvider extends LabelProvider implements ILabelProvider,IViewerLabelProvider,IColorProvider,IFontProvider,ITreePathLabelProvider(Code)
A decorating label provider is a label provider which combines a nested label provider and an optional decorator. The decorator decorates the label text, image, font and colors provided by the nested label provider.



Constructor Summary
public  DecoratingLabelProvider(ILabelProvider provider, ILabelDecorator decorator)
     Creates a decorating label provider which uses the given label decorator to decorate labels provided by the given label provider.

Method Summary
public  voidaddListener(ILabelProviderListener listener)
     The DecoratingLabelProvider implementation of this IBaseLabelProvider method adds the listener to both the nested label provider and the label decorator.
public  voiddispose()
     The DecoratingLabelProvider implementation of this IBaseLabelProvider method disposes both the nested label provider and the label decorator.
public  ColorgetBackground(Object element)
    
public  IDecorationContextgetDecorationContext()
     Return the decoration context associated with this label provider.
public  FontgetFont(Object element)
    
public  ColorgetForeground(Object element)
    
public  ImagegetImage(Object element)
     The DecoratingLabelProvider implementation of this ILabelProvider method returns the image provided by the nested label provider's getImage method, decorated with the decoration provided by the label decorator's decorateImage method.
public  ILabelDecoratorgetLabelDecorator()
     Returns the label decorator, or null if none has been set.
public  ILabelProvidergetLabelProvider()
     Returns the nested label provider.
public  StringgetText(Object element)
     The DecoratingLabelProvider implementation of this ILabelProvider method returns the text label provided by the nested label provider's getText method, decorated with the decoration provided by the label decorator's decorateText method.
public  booleanisLabelProperty(Object element, String property)
     The DecoratingLabelProvider implementation of this IBaseLabelProvider method returns true if the corresponding method on the nested label provider returns true or if the corresponding method on the decorator returns true.
public  voidremoveListener(ILabelProviderListener listener)
     The DecoratingLabelProvider implementation of this IBaseLabelProvider method removes the listener from both the nested label provider and the label decorator.
public  voidsetDecorationContext(IDecorationContext decorationContext)
     Set the decoration context that will be based to the decorator for this label provider if that decorator implements LabelDecorator .
public  voidsetLabelDecorator(ILabelDecorator decorator)
     Sets the label decorator.
protected  voidupdateForDecorationReady(ViewerLabel settings, Object element)
     Decoration is ready.
public  voidupdateLabel(ViewerLabel settings, Object element)
    
public  voidupdateLabel(ViewerLabel settings, TreePath elementPath)
    


Constructor Detail
DecoratingLabelProvider
public DecoratingLabelProvider(ILabelProvider provider, ILabelDecorator decorator)(Code)
Creates a decorating label provider which uses the given label decorator to decorate labels provided by the given label provider.
Parameters:
  provider - the nested label provider
Parameters:
  decorator - the label decorator, or null if no decorator is to be used initially




Method Detail
addListener
public void addListener(ILabelProviderListener listener)(Code)
The DecoratingLabelProvider implementation of this IBaseLabelProvider method adds the listener to both the nested label provider and the label decorator.
Parameters:
  listener - a label provider listener



dispose
public void dispose()(Code)
The DecoratingLabelProvider implementation of this IBaseLabelProvider method disposes both the nested label provider and the label decorator.



getBackground
public Color getBackground(Object element)(Code)



getDecorationContext
public IDecorationContext getDecorationContext()(Code)
Return the decoration context associated with this label provider. It will be passed to the decorator if the decorator is an instance of LabelDecorator . the decoration context associated with this label provider
since:
   3.2



getFont
public Font getFont(Object element)(Code)



getForeground
public Color getForeground(Object element)(Code)



getImage
public Image getImage(Object element)(Code)
The DecoratingLabelProvider implementation of this ILabelProvider method returns the image provided by the nested label provider's getImage method, decorated with the decoration provided by the label decorator's decorateImage method.



getLabelDecorator
public ILabelDecorator getLabelDecorator()(Code)
Returns the label decorator, or null if none has been set. the label decorator, or null if none has been set.



getLabelProvider
public ILabelProvider getLabelProvider()(Code)
Returns the nested label provider. the nested label provider



getText
public String getText(Object element)(Code)
The DecoratingLabelProvider implementation of this ILabelProvider method returns the text label provided by the nested label provider's getText method, decorated with the decoration provided by the label decorator's decorateText method.



isLabelProperty
public boolean isLabelProperty(Object element, String property)(Code)
The DecoratingLabelProvider implementation of this IBaseLabelProvider method returns true if the corresponding method on the nested label provider returns true or if the corresponding method on the decorator returns true.



removeListener
public void removeListener(ILabelProviderListener listener)(Code)
The DecoratingLabelProvider implementation of this IBaseLabelProvider method removes the listener from both the nested label provider and the label decorator.
Parameters:
  listener - a label provider listener



setDecorationContext
public void setDecorationContext(IDecorationContext decorationContext)(Code)
Set the decoration context that will be based to the decorator for this label provider if that decorator implements LabelDecorator .
Parameters:
  decorationContext - the decoration context.
since:
   3.2



setLabelDecorator
public void setLabelDecorator(ILabelDecorator decorator)(Code)
Sets the label decorator. Removes all known listeners from the old decorator, and adds all known listeners to the new decorator. The old decorator is not disposed. Fires a label provider changed event indicating that all labels should be updated. Has no effect if the given decorator is identical to the current one.
Parameters:
  decorator - the label decorator, or null if no decorations are to be applied



updateForDecorationReady
protected void updateForDecorationReady(ViewerLabel settings, Object element)(Code)
Decoration is ready. Update anything else for the settings.
Parameters:
  settings - The object collecting the settings.
Parameters:
  element - The Object being decorated.
since:
   3.1



updateLabel
public void updateLabel(ViewerLabel settings, Object element)(Code)



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



Methods inherited from org.eclipse.jface.viewers.LabelProvider
public Image getImage(Object element)(Code)(Java Doc)
public String getText(Object element)(Code)(Java Doc)

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.