Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

oracle.cabo.ui.data.bind
Class BundleBoundValue

java.lang.Object
  |
  +--oracle.cabo.ui.data.bind.BundleBoundValue
All Implemented Interfaces:
BoundValue
Direct Known Subclasses:
BundleBoundValue

public class BundleBoundValue
extends java.lang.Object
implements BoundValue

BoundValue used to retrieve a translated value from a specified java ResourceBundle, with a specified key. BundleBoundValue should be used for all attribute values that need to be translated.

If either the ResourceBundle or the key can not be found, an error message will be written to the error log.

See Also:
LocaleContext

Constructor Summary
BundleBoundValue(java.lang.String bundleName, java.lang.String key)
          Create a BundleBoundValue that will retrieve the translated Object specified by key from the ResourceBundle specified by bundleName.
 
Method Summary
 java.lang.Object getValue(RenderingContext context)
          Retrieves the translated value from the ResourceBundle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BundleBoundValue

public BundleBoundValue(java.lang.String bundleName,
                        java.lang.String key)
Create a BundleBoundValue that will retrieve the translated Object specified by key from the ResourceBundle specified by bundleName.
Parameters:
bundleName - Base name of the ResourceBundle to use
key - Key to use to look up value in ResourceBundle
Method Detail

getValue

public java.lang.Object getValue(RenderingContext context)
Retrieves the translated value from the ResourceBundle.
Specified by:
getValue in interface BoundValue
Parameters:
context - the rendering context

Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

Copyright © 2002,2003, Oracle. All Rights Reserved.