Java Doc for ViewerLabel.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) 


java.lang.Object
   org.eclipse.jface.viewers.ViewerLabel

ViewerLabel
public class ViewerLabel (Code)
The ViewerLabel is the class that is passed to a viewer to handle updates of labels. It keeps track of both original and updates text.
See Also:   IViewerLabelProvider
since:
   3.0



Constructor Summary
public  ViewerLabel(String initialText, Image initialImage)
     Create a new instance of the receiver with the supplied initial text and image.

Method Summary
public  ColorgetBackground()
     Get the background Color.
public  FontgetFont()
     Get the font.
public  ColorgetForeground()
     Get the foreground Color.
final public  ImagegetImage()
     Get the image for the receiver.
final public  StringgetText()
     Get the text for the receiver.
public  ColorgetTooltipBackgroundColor()
     Return the tool tip background color.
public  ColorgetTooltipForegroundColor()
     Return the foreground Color .
public  PointgetTooltipShift()
    
public  StringgetTooltipText()
     Returns the tooltipText.
public  booleanhasNewBackground()
     Return whether or not the background color has been set. boolean.
public  booleanhasNewFont()
     Return whether or not the font has been set. boolean.
public  booleanhasNewForeground()
     Return whether or not the foreground color has been set. boolean.
public  booleanhasNewImage()
     Return whether or not the image has been set. boolean.
public  booleanhasNewText()
     Return whether or not the text has been set. boolean.
public  booleanhasNewTooltipBackgroundColor()
     Return whether or not the tool tip background color has been set. boolean.
public  booleanhasNewTooltipForegroundColor()
     Return whether or not the tool tip foreground color has been set. boolean.
public  booleanhasNewTooltipText()
     Return whether or not the tool tip text has been set. boolean.
 booleanhasPendingDecorations()
     boolean.
public  booleanhasTooltipShift()
    
public  voidsetBackground(Color background)
     Set the background Color.
Parameters:
  background - Color.
public  voidsetFont(Font font)
     Set the font.
public  voidsetForeground(Color foreground)
     Set the foreground Color.
 voidsetHasPendingDecorations(boolean hasPendingDecorations)
     Set whether or not there are any decorations pending.
final public  voidsetImage(Image image)
     Set the image for the receiver.
final public  voidsetText(String text)
     Set the text for the receiver.
Parameters:
  text - String The label to set.
public  voidsetTooltipBackgroundColor(Color tooltipBackgroundColor)
     Set the background Color for tool tip.
Parameters:
  tooltipBackgroundColor - The Color to set.
public  voidsetTooltipForegroundColor(Color tooltipForegroundColor)
     Set the foreground Color for tool tip.
public  voidsetTooltipShift(Point tooltipShift)
    
public  voidsetTooltipText(String tooltipText)
     Set the tool tip text.
Parameters:
  tooltipText - The tooltipText String to set.


Constructor Detail
ViewerLabel
public ViewerLabel(String initialText, Image initialImage)(Code)
Create a new instance of the receiver with the supplied initial text and image.
Parameters:
  initialText -
Parameters:
  initialImage -




Method Detail
getBackground
public Color getBackground()(Code)
Get the background Color. Color or null if no new value was set.
since:
   3.1



getFont
public Font getFont()(Code)
Get the font. Font or null if no new value was set.
since:
   3.1



getForeground
public Color getForeground()(Code)
Get the foreground Color. Color or null if no new value was set.
since:
   3.1



getImage
final public Image getImage()(Code)
Get the image for the receiver. If the new image has been set return it, otherwise return the starting image. Returns the image.



getText
final public String getText()(Code)
Get the text for the receiver. If the new text has been set return it, otherwise return the starting text. String or null if there was no initial text andnothing was updated.



getTooltipBackgroundColor
public Color getTooltipBackgroundColor()(Code)
Return the tool tip background color. Color or null if the tool tip backgroundcolor has not been set.
since:
   3.3



getTooltipForegroundColor
public Color getTooltipForegroundColor()(Code)
Return the foreground Color . Returns Color or null if the tool tipforeground color has not been set.
since:
   3.3



getTooltipShift
public Point getTooltipShift()(Code)
Returns the tooltipShift.
since:
   3.3



getTooltipText
public String getTooltipText()(Code)
Returns the tooltipText. String or null if the tool tip text wasnever set.
since:
   3.3



hasNewBackground
public boolean hasNewBackground()(Code)
Return whether or not the background color has been set. boolean. true if the value has been set.



hasNewFont
public boolean hasNewFont()(Code)
Return whether or not the font has been set. boolean. true if the value has been set.
since:
   3.1



hasNewForeground
public boolean hasNewForeground()(Code)
Return whether or not the foreground color has been set. boolean. true if the value has been set.
since:
   3.1



hasNewImage
public boolean hasNewImage()(Code)
Return whether or not the image has been set. boolean. true if the image has been set tosomething new.
since:
   3.1



hasNewText
public boolean hasNewText()(Code)
Return whether or not the text has been set. boolean. true if the text has been set tosomething new.



hasNewTooltipBackgroundColor
public boolean hasNewTooltipBackgroundColor()(Code)
Return whether or not the tool tip background color has been set. boolean. true if the tool tip texthas been set.
since:
   3.3



hasNewTooltipForegroundColor
public boolean hasNewTooltipForegroundColor()(Code)
Return whether or not the tool tip foreground color has been set. boolean. true if the tool tip foregroundhas been set.
since:
   3.3



hasNewTooltipText
public boolean hasNewTooltipText()(Code)
Return whether or not the tool tip text has been set. boolean. true if the tool tip texthas been set.
since:
   3.3



hasPendingDecorations
boolean hasPendingDecorations()(Code)
boolean. true if there are anydecorations pending.



hasTooltipShift
public boolean hasTooltipShift()(Code)
Return whether or not the tool tip shift has been set.
since:
   3.3



setBackground
public void setBackground(Color background)(Code)
Set the background Color.
Parameters:
  background - Color. This value should not be null.
since:
   3.1



setFont
public void setFont(Font font)(Code)
Set the font.
Parameters:
  font - Font This value should not be null.
since:
   3.1



setForeground
public void setForeground(Color foreground)(Code)
Set the foreground Color.
Parameters:
  foreground - Color This value should not be null.
since:
   3.1



setHasPendingDecorations
void setHasPendingDecorations(boolean hasPendingDecorations)(Code)
Set whether or not there are any decorations pending.
Parameters:
  hasPendingDecorations -



setImage
final public void setImage(Image image)(Code)
Set the image for the receiver.
Parameters:
  image - The image to set.



setText
final public void setText(String text)(Code)
Set the text for the receiver.
Parameters:
  text - String The label to set. This value should not benull.
See Also:   ViewerLabel.hasNewText()



setTooltipBackgroundColor
public void setTooltipBackgroundColor(Color tooltipBackgroundColor)(Code)
Set the background Color for tool tip.
Parameters:
  tooltipBackgroundColor - The Color to set. This value should not benull.
since:
   3.3



setTooltipForegroundColor
public void setTooltipForegroundColor(Color tooltipForegroundColor)(Code)
Set the foreground Color for tool tip.
Parameters:
  tooltipForegroundColor - The tooltipForegroundColor to set.
since:
   3.3



setTooltipShift
public void setTooltipShift(Point tooltipShift)(Code)

Parameters:
  tooltipShift - The tooltipShift to set.
since:
   3.3



setTooltipText
public void setTooltipText(String tooltipText)(Code)
Set the tool tip text.
Parameters:
  tooltipText - The tooltipText String to set. This value should notbe null.
since:
   3.3



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.