Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

oracle.cabo.ui.data.bind
Class MessageFormatBoundValue

java.lang.Object
  |
  +--oracle.cabo.ui.data.bind.MessageFormatBoundValue
All Implemented Interfaces:
BoundValue

public class MessageFormatBoundValue
extends java.lang.Object
implements BoundValue

BoundValue implementation that will automatically format a series of objects into a string based on a format mask. All of the values, as well as the format mask, are retrieved dynamically.

MessageFormatBoundValue, by default, runs in a "fast" mode, using the FastMessageFormat class. This mode offers a limited syntax, but is much more efficient. Developers can explicitly use the full java.text.MessageFormat syntax if they wish.

See Also:
FastMessageFormat

Constructor Summary
MessageFormatBoundValue(BoundValue formatValue, BoundValue[] sourceValues)
          Creates a "fast" MessageFormatBoundValue.
MessageFormatBoundValue(BoundValue formatValue, BoundValue[] sourceValues, boolean fast)
          Creates a MessageFormatBoundValue.
 
Method Summary
 java.lang.Object getValue(RenderingContext context)
          Called to retrieve a value based on the current rendering context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageFormatBoundValue

public MessageFormatBoundValue(BoundValue formatValue,
                               BoundValue[] sourceValues)
Creates a "fast" MessageFormatBoundValue.
Parameters:
formatValue - the BoundValue that will retrieve the format value.
sourceValues - an array of BoundValues that will retrieve the data to merge into the message format

MessageFormatBoundValue

public MessageFormatBoundValue(BoundValue formatValue,
                               BoundValue[] sourceValues,
                               boolean fast)
Creates a MessageFormatBoundValue.
Parameters:
formatValue - the BoundValue that will retrieve the format value.
sourceValues - an array of BoundValues that will retrieve the data to merge into the message format
fast - if true, uses the fast but limited FastMessageFormat class; otherwise, uses the full Java MessageFormat syntax, but is significantly slower.
Method Detail

getValue

public java.lang.Object getValue(RenderingContext context)
Description copied from interface: BoundValue
Called to retrieve a value based on the current rendering context.
Specified by:
getValue in interface BoundValue
Following copied from interface: oracle.cabo.ui.data.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.