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


java.lang.Object
   org.eclipse.jface.resource.JFaceResources

JFaceResources
public class JFaceResources (Code)
Utility methods to access JFace-specific resources.

All methods declared on this class are static. This class cannot be instantiated.

The following global state is also maintained by this class:

  • a font registry
  • a color registry
  • an image registry
  • a resource bundle



Field Summary
final public static  StringBANNER_FONT
     The symbolic font name for the banner font (value "org.eclipse.jface.bannerfont").
final public static  StringDEFAULT_FONT
     The symbolic font name for the standard font (value "org.eclipse.jface.defaultfont").
final public static  StringDIALOG_FONT
     The symbolic font name for the dialog font (value "org.eclipse.jface.dialogfont").
final public static  StringHEADER_FONT
     The symbolic font name for the header font (value "org.eclipse.jface.headerfont").
final public static  StringTEXT_FONT
     The symbolic font name for the text font (value "org.eclipse.jface.textfont").
final public static  StringVIEWER_FONT
     The symbolic font name for the viewer font (value "org.eclipse.jface.viewerfont").
final public static  StringWINDOW_FONT
     The symbolic font name for the window font (value "org.eclipse.jface.windowfont").


Method Summary
public static  Stringformat(String key, Object[] args)
     Returns the formatted message for the given key in JFace's resource bundle.
public static  FontgetBannerFont()
     Returns the JFace's banner font.
public static  ResourceBundlegetBundle()
     Returns the resource bundle for JFace itself.
public static  ColorRegistrygetColorRegistry()
     Returns the color registry for JFace itself.
public static  FontgetDefaultFont()
     Returns JFace's standard font.
public static  FontDescriptorgetDefaultFontDescriptor()
     Returns the descriptor for JFace's standard font.
public static  FontgetDialogFont()
     Returns the JFace's dialog font.
public static  FontDescriptorgetDialogFontDescriptor()
     Returns the descriptor for JFace's dialog font.
public static  FontgetFont(String symbolicName)
     Returns the font in JFace's font registry with the given symbolic font name.
public static  FontDescriptorgetFontDescriptor(String symbolicName)
     Returns the font descriptor for in JFace's font registry with the given symbolic name.
public static  FontRegistrygetFontRegistry()
     Returns the font registry for JFace itself.
public static  FontgetHeaderFont()
     Returns the JFace's header font.
public static  FontDescriptorgetHeaderFontDescriptor()
     Returns the descriptor for JFace's header font.
public static  ImagegetImage(String key)
     Returns the image in JFace's image registry with the given key, or null if none.
public static  ImageRegistrygetImageRegistry()
     Returns the image registry for JFace itself.
public static  ResourceManagergetResources(Display toQuery)
    
public static  ResourceManagergetResources()
     Returns the ResourceManager for the current display.
public static  StringgetString(String key)
     Returns the resource object with the given key in JFace's resource bundle.
public static  String[]getStrings(String[] keys)
     Returns a list of string values corresponding to the given list of keys. The lookup is done with getString.
public static  FontgetTextFont()
     Returns JFace's text font.
public static  FontDescriptorgetTextFontDescriptor()
     Returns the descriptor for JFace's text font.
public static  FontgetViewerFont()
     Returns JFace's viewer font.
public static  voidsetFontRegistry(FontRegistry registry)
     Sets JFace's font registry to the given value.

Field Detail
BANNER_FONT
final public static String BANNER_FONT(Code)
The symbolic font name for the banner font (value "org.eclipse.jface.bannerfont").



DEFAULT_FONT
final public static String DEFAULT_FONT(Code)
The symbolic font name for the standard font (value "org.eclipse.jface.defaultfont").



DIALOG_FONT
final public static String DIALOG_FONT(Code)
The symbolic font name for the dialog font (value "org.eclipse.jface.dialogfont").



HEADER_FONT
final public static String HEADER_FONT(Code)
The symbolic font name for the header font (value "org.eclipse.jface.headerfont").



TEXT_FONT
final public static String TEXT_FONT(Code)
The symbolic font name for the text font (value "org.eclipse.jface.textfont").



VIEWER_FONT
final public static String VIEWER_FONT(Code)
The symbolic font name for the viewer font (value "org.eclipse.jface.viewerfont").



WINDOW_FONT
final public static String WINDOW_FONT(Code)
The symbolic font name for the window font (value "org.eclipse.jface.windowfont").





Method Detail
format
public static String format(String key, Object[] args)(Code)
Returns the formatted message for the given key in JFace's resource bundle.
Parameters:
  key - the resource name
Parameters:
  args - the message arguments the string



getBannerFont
public static Font getBannerFont()(Code)
Returns the JFace's banner font. Convenience method equivalent to
 JFaceResources.getFontRegistry().get(JFaceResources.BANNER_FONT)
 
the font



getBundle
public static ResourceBundle getBundle()(Code)
Returns the resource bundle for JFace itself. The resouble bundle is obtained from ResourceBundle.getBundle("org.eclipse.jface.jface_nls").

Note that several static convenience methods are also provided on this class for directly accessing resources in this bundle.

the resource bundle



getColorRegistry
public static ColorRegistry getColorRegistry()(Code)
Returns the color registry for JFace itself.

the ColorRegistry.
since:
   3.0




getDefaultFont
public static Font getDefaultFont()(Code)
Returns JFace's standard font. Convenience method equivalent to
 JFaceResources.getFontRegistry().get(JFaceResources.DEFAULT_FONT)
 
the font



getDefaultFontDescriptor
public static FontDescriptor getDefaultFontDescriptor()(Code)
Returns the descriptor for JFace's standard font. Convenience method equivalent to
 JFaceResources.getFontRegistry().getDescriptor(JFaceResources.DEFAULT_FONT)
 
the font
since:
   3.3



getDialogFont
public static Font getDialogFont()(Code)
Returns the JFace's dialog font. Convenience method equivalent to
 JFaceResources.getFontRegistry().get(JFaceResources.DIALOG_FONT)
 
the font



getDialogFontDescriptor
public static FontDescriptor getDialogFontDescriptor()(Code)
Returns the descriptor for JFace's dialog font. Convenience method equivalent to
 JFaceResources.getFontRegistry().getDescriptor(JFaceResources.DIALOG_FONT)
 
the font
since:
   3.3



getFont
public static Font getFont(String symbolicName)(Code)
Returns the font in JFace's font registry with the given symbolic font name. Convenience method equivalent to
 JFaceResources.getFontRegistry().get(symbolicName)
 
If an error occurs, return the default font.
Parameters:
  symbolicName - the symbolic font name the font



getFontDescriptor
public static FontDescriptor getFontDescriptor(String symbolicName)(Code)
Returns the font descriptor for in JFace's font registry with the given symbolic name. Convenience method equivalent to
 JFaceResources.getFontRegistry().getDescriptor(symbolicName)
 
If an error occurs, return the default font.
Parameters:
  symbolicName - the symbolic font name the font descriptor (never null)
since:
   3.3



getFontRegistry
public static FontRegistry getFontRegistry()(Code)
Returns the font registry for JFace itself. If the value has not been established by an earlier call to setFontRegistry, is it initialized to new FontRegistry("org.eclipse.jface.resource.jfacefonts").

Note that several static convenience methods are also provided on this class for directly accessing JFace's standard fonts.

the JFace font registry



getHeaderFont
public static Font getHeaderFont()(Code)
Returns the JFace's header font. Convenience method equivalent to
 JFaceResources.getFontRegistry().get(JFaceResources.HEADER_FONT)
 
the font



getHeaderFontDescriptor
public static FontDescriptor getHeaderFontDescriptor()(Code)
Returns the descriptor for JFace's header font. Convenience method equivalent to
 JFaceResources.getFontRegistry().get(JFaceResources.HEADER_FONT)
 
the font descriptor (never null)
since:
   3.3



getImage
public static Image getImage(String key)(Code)
Returns the image in JFace's image registry with the given key, or null if none. Convenience method equivalent to
 JFaceResources.getImageRegistry().get(key)
 

Parameters:
  key - the key the image, or null if none



getImageRegistry
public static ImageRegistry getImageRegistry()(Code)
Returns the image registry for JFace itself.

Note that the static convenience method getImage is also provided on this class.

the JFace image registry



getResources
public static ResourceManager getResources(Display toQuery)(Code)
Returns the global resource manager for the given display
since:
   3.1
Parameters:
  toQuery - display to query the global resource manager for the given display



getResources
public static ResourceManager getResources()(Code)
Returns the ResourceManager for the current display. May only be called from a UI thread.
since:
   3.1 the global ResourceManager for the current display



getString
public static String getString(String key)(Code)
Returns the resource object with the given key in JFace's resource bundle. If there isn't any value under the given key, the key is returned.
Parameters:
  key - the resource name the string



getStrings
public static String[] getStrings(String[] keys)(Code)
Returns a list of string values corresponding to the given list of keys. The lookup is done with getString. The values are in the same order as the keys.
Parameters:
  keys - a list of keys a list of corresponding string values



getTextFont
public static Font getTextFont()(Code)
Returns JFace's text font. Convenience method equivalent to
 JFaceResources.getFontRegistry().get(JFaceResources.TEXT_FONT)
 
the font



getTextFontDescriptor
public static FontDescriptor getTextFontDescriptor()(Code)
Returns the descriptor for JFace's text font. Convenience method equivalent to
 JFaceResources.getFontRegistry().getDescriptor(JFaceResources.TEXT_FONT)
 
the font descriptor (never null)
since:
   3.3



getViewerFont
public static Font getViewerFont()(Code)
Returns JFace's viewer font. Convenience method equivalent to
 JFaceResources.getFontRegistry().get(JFaceResources.VIEWER_FONT)
 
the font



setFontRegistry
public static void setFontRegistry(FontRegistry registry)(Code)
Sets JFace's font registry to the given value. This method may only be called once; the call must occur before JFaceResources.getFontRegistry is invoked (either directly or indirectly).
Parameters:
  registry - a font registry



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.