com.wewebu.ow.server.field
Class OwStandardLocalizeableEnum

java.lang.Object
  extended by com.wewebu.ow.server.field.OwStandardLocalizeableEnum
All Implemented Interfaces:
OwEnum

public class OwStandardLocalizeableEnum
extends Object
implements OwEnum

Standard implementation of the OwEnum interface.

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


Constructor Summary
OwStandardLocalizeableEnum(Object value_p, OwString displayName_p)
          construct a single enum value, used in getEnums Use this constructor if the display name should be retrieve from resource bundle with the given key
 
Method Summary
 OwEnumCollection getChilds()
          get the contained child collection
 String getDisplayName(Locale local_p)
          get a display name
 Object getValue()
          get the enum value
 boolean hasChildEnums()
          check if enum has a contained child collection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OwStandardLocalizeableEnum

public OwStandardLocalizeableEnum(Object value_p,
                                  OwString displayName_p)
construct a single enum value, used in getEnums Use this constructor if the display name should be retrieve from resource bundle with the given key

Parameters:
value_p - Object enum value
displayName_p - OwString localizeable display name
Method Detail

getValue

public Object getValue()
Description copied from interface: OwEnum
get the enum value

Specified by:
getValue in interface OwEnum

getDisplayName

public String getDisplayName(Locale local_p)
Description copied from interface: OwEnum
get a display name

Specified by:
getDisplayName in interface OwEnum

hasChildEnums

public boolean hasChildEnums()
Description copied from interface: OwEnum
check if enum has a contained child collection

Specified by:
hasChildEnums in interface OwEnum

getChilds

public OwEnumCollection getChilds()
Description copied from interface: OwEnum
get the contained child collection

Specified by:
getChilds in interface OwEnum
Returns:
OwEnumCollection or null if item has no children


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.