com.wewebu.ow.server.util
Class OwString1

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

public class OwString1
extends OwString

Utility class OwString1. Extends OwString with additional placeholder 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
OwString1(String strKeyyName_p, String strDefaultDisplayName_p)
          construct a string that can be localized later using getString1(Locale locale_p,String strAttribute1_p)
OwString1(String strKeyyName_p, String strDefaultDisplayName_p, String strAttribute1_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
 String getString1(Locale locale_p, String strAttribute1_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

OwString1

public OwString1(String strKeyyName_p,
                 String strDefaultDisplayName_p,
                 String strAttribute1_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

OwString1

public OwString1(String strKeyyName_p,
                 String strDefaultDisplayName_p)
construct a string that can be localized later using getString1(Locale locale_p,String strAttribute1_p)

Parameters:
strKeyyName_p - String unique localize key for display name
strDefaultDisplayName_p - String default display name
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

getString1

public String getString1(Locale locale_p,
                         String strAttribute1_p)
localize this String

Parameters:
locale_p - Locale to use
Returns:
localized String


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.