Java Doc for CmsWorkplaceMessages.java in  » Content-Management-System » opencms » org » opencms » workplace » 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 » Content Management System » opencms » org.opencms.workplace 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.opencms.i18n.CmsMessages
      org.opencms.i18n.CmsMultiMessages
         org.opencms.workplace.CmsWorkplaceMessages

CmsWorkplaceMessages
public class CmsWorkplaceMessages extends CmsMultiMessages (Code)
Provides access to the localized messages for the OpenCms workplace.

The workplace messages are collected from the workplace resource bundles of all installed modules, plus all the OpenCms core packages.

To be recognized as a workplace module resource bundle, the workplace property file must follow the naming convention ${module_package_name}.workplace${locale}.properties, or ${module_package_name}.messages${locale}.properties for example like com.mycompany.module.workplace_en.properties or com.mycompany.module.messages_en.properties.

Workplace messages are cached for faster lookup. If a localized key is contained in more then one module, it will be used only from the module where it was first found in. The module order is undefined. It is therefore recommended to ensure the uniqueness of all module keys by placing a special prefix in front of all keys of a module.


author:
   Alexander Kandzior
version:
   $Revision: 1.44 $
since:
   6.0.0



Field Summary
final public static  StringGUI_NEW_RESOURCE_TITLE_PREFIX
     The title key prefix used for the "new resource" dialog.
final public static  StringGUI_RESOURCE_TYPE_PREFIX
     The prefix to generate the resource type names with.
final public static  StringPREFIX_BUNDLE_MESSAGES
     Constant for the ".messages" prefix.
final public static  StringPREFIX_BUNDLE_WORKPLACE
     Constant for the ".workplace" prefix.
final public static  StringWORKPLACE_BUNDLE_NAME
     Constant for the multi bundle name.

Constructor Summary
public  CmsWorkplaceMessages(Locale locale)
    

Method Summary
public  booleanequals(Object obj)
    
public static  StringgetNewResourceTitle(CmsWorkplace wp, String name)
    
public static  StringgetResourceName(CmsWorkplace wp, String name)
    
public  inthashCode()
    

Field Detail
GUI_NEW_RESOURCE_TITLE_PREFIX
final public static String GUI_NEW_RESOURCE_TITLE_PREFIX(Code)
The title key prefix used for the "new resource" dialog.



GUI_RESOURCE_TYPE_PREFIX
final public static String GUI_RESOURCE_TYPE_PREFIX(Code)
The prefix to generate the resource type names with.



PREFIX_BUNDLE_MESSAGES
final public static String PREFIX_BUNDLE_MESSAGES(Code)
Constant for the ".messages" prefix.



PREFIX_BUNDLE_WORKPLACE
final public static String PREFIX_BUNDLE_WORKPLACE(Code)
Constant for the ".workplace" prefix.



WORKPLACE_BUNDLE_NAME
final public static String WORKPLACE_BUNDLE_NAME(Code)
Constant for the multi bundle name.




Constructor Detail
CmsWorkplaceMessages
public CmsWorkplaceMessages(Locale locale)(Code)
Constructor for creating a new messages object initialized with the provided locale.


Parameters:
  locale - the locale to initialize





Method Detail
equals
public boolean equals(Object obj)(Code)

See Also:   java.lang.Object.equals(java.lang.Object)



getNewResourceTitle
public static String getNewResourceTitle(CmsWorkplace wp, String name)(Code)
Returns the title for the "new resource" dialog.

It will look up a key with the prefix CmsWorkplaceMessages.GUI_NEW_RESOURCE_TITLE_PREFIX and the given name appended (converted to lower case).

If this key is not found, the value of org.opencms.workplace.explorer.Messages.GUI_TITLE_NEWFILEOTHER_0 will be returned.


Parameters:
  wp - an instance of a CmsWorkplace to resolve the key name with
Parameters:
  name - the type to generate the title for the title for the "new resource" dialog




getResourceName
public static String getResourceName(CmsWorkplace wp, String name)(Code)
Returns the nice name of the given resource type name.

It will look up a key with the prefix CmsWorkplaceMessages.GUI_RESOURCE_TYPE_PREFIX and the given name appended.

If this key is not found, the value of the name input will be returned.


Parameters:
  wp - an instance of a CmsWorkplace to resolve the key name with
Parameters:
  name - the resource type name to generate the nice name for the nice name of the given resource type name




hashCode
public int hashCode()(Code)

See Also:   org.opencms.i18n.CmsMessages.hashCode



Fields inherited from org.opencms.i18n.CmsMultiMessages
final public static String MULTI_BUNDLE_NAME(Code)(Java Doc)
final public static String NULL_STRING(Code)(Java Doc)

Methods inherited from org.opencms.i18n.CmsMultiMessages
public void addBundle(I_CmsMessageBundle bundle)(Code)(Java Doc)
public void addMessages(CmsMessages messages) throws CmsIllegalArgumentException(Code)(Java Doc)
public void addMessages(List messages)(Code)(Java Doc)
public List getMessages()(Code)(Java Doc)
public String getString(String keyName)(Code)(Java Doc)
public boolean isInitialized()(Code)(Java Doc)
public String key(String keyName, boolean allowNull)(Code)(Java Doc)

Fields inherited from org.opencms.i18n.CmsMessages
final public static String KEY_SHORT_SUFFIX(Code)(Java Doc)
final public static String UNKNOWN_KEY_EXTENSION(Code)(Java Doc)

Methods inherited from org.opencms.i18n.CmsMessages
public boolean equals(Object obj)(Code)(Java Doc)
public static String formatUnknownKey(String keyName)(Code)(Java Doc)
protected String getBundleName()(Code)(Java Doc)
public String getDate(Date date)(Code)(Java Doc)
public String getDate(Date date, int format)(Code)(Java Doc)
public String getDate(long time)(Code)(Java Doc)
public String getDateTime(Date date)(Code)(Java Doc)
public String getDateTime(Date date, int format)(Code)(Java Doc)
public String getDateTime(long time)(Code)(Java Doc)
public Locale getLocale()(Code)(Java Doc)
public ResourceBundle getResourceBundle()(Code)(Java Doc)
public String getString(String keyName) throws CmsMessageException(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
public boolean isInitialized()(Code)(Java Doc)
public static boolean isUnknownKey(String value)(Code)(Java Doc)
public String key(String keyName)(Code)(Java Doc)
public String key(String keyName, boolean allowNull)(Code)(Java Doc)
public String key(String key, Object arg0)(Code)(Java Doc)
public String key(String key, Object arg0, Object arg1)(Code)(Java Doc)
public String key(String key, Object arg0, Object arg1, Object arg2)(Code)(Java Doc)
public String key(String key, Object[] args)(Code)(Java Doc)
public String keyDefault(String keyName, String defaultValue)(Code)(Java Doc)
public String keyWithParams(String keyName)(Code)(Java Doc)
protected void setBundleName(String bundleName)(Code)(Java Doc)
protected void setLocale(Locale locale)(Code)(Java Doc)
protected void setResourceBundle(ResourceBundle resourceBundle)(Code)(Java Doc)
public String toString()(Code)(Java Doc)

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.