com.wewebu.ow.server.util
Class OwString2

java.lang.Object
  extended by com.wewebu.ow.server.util.OwString
      extended by com.wewebu.ow.server.util.OwString2

public class OwString2
extends OwString

Utility class OwString2. Extends OwString with additional place holder attributes.

Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.

For licensing information read the license.txt file or
go to: http://wiki.alfresco.com


Field Summary
 
Fields inherited from class com.wewebu.ow.server.util.OwString
LABEL_PREFIX, m_strDefaultDisplayName, m_strKeyName
 
Constructor Summary
OwString2(String strKeyyName_p, String strDefaultDisplayName_p, String strAttribute1_p, String strAttribute2_p)
          construct a string that can be localized later using getString(Locale locale_p)
 
Method Summary
 String getDefaultDisplayName()
          get the default displayname
 String getString(Locale locale_p)
          localize this String
 
Methods inherited from class com.wewebu.ow.server.util.OwString
getKey, hasLabel, localize, localize1, localize2, localize3, localizeLabel, localizeLabel, putAll, putLabel, replaceAll, replaceAll, replaceAll, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OwString2

public OwString2(String strKeyyName_p,
                 String strDefaultDisplayName_p,
                 String strAttribute1_p,
                 String strAttribute2_p)
construct a string that can be localized later using getString(Locale locale_p)

Parameters:
strKeyyName_p - String unique localize key for display name
strDefaultDisplayName_p - String default display name
strAttribute1_p - String that replaces %1 tokens
strAttribute2_p - String that replaces %2 tokens
Method Detail

getDefaultDisplayName

public String getDefaultDisplayName()
get the default displayname

Overrides:
getDefaultDisplayName in class OwString

getString

public String getString(Locale locale_p)
localize this String

Overrides:
getString in class OwString
Parameters:
locale_p - Locale to use
Returns:
localized String


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.