Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 1 (11.1.1.6)

E22562-05

oracle.apps.fnd.applcore.dtrt.binding.provider
Class DtrtCurrencyConverterModelProvider

java.lang.Object
  extended by oracle.adfdt.view.common.binding.provider.ADFBaseProvider
      extended by oracle.apps.fnd.applcore.dtrt.binding.provider.DtrtCurrencyConverterModelProvider
All Implemented Interfaces:
oracle.adfdt.view.common.binding.provider.ModelProvider

public class DtrtCurrencyConverterModelProvider
extends oracle.adfdt.view.common.binding.provider.ADFBaseProvider

A ModelProvider to provide expressions for the patterns for the Currency Converter used in apps.

Author:
David Groves <david.groves@oracle.com>

Constructor Summary
DtrtCurrencyConverterModelProvider(oracle.adfdt.ADFDesignTimeContext dtContext, oracle.adfdt.model.objects.DataControl dataControl, oracle.binding.meta.NamedDefinition dataControlDefinition)
          Construct the model provider.
 
Method Summary
 java.lang.String createCurrencyCodeExpression()
          Create the base expression for the currency code, this is used in a form scenario.
 java.lang.String createCurrencyCodeExpression(java.lang.String baseExpression)
          Create the base expression for the currency code, this is used in a table scenario.
static java.lang.String getCurrencyCodeAttrName(java.lang.String thisAttrExpr, java.lang.String thisAttrName)
          Replace the currenc attribute in the arg, with the currency code column expression.
 java.lang.String getCurrencyPatternExpression()
          Create the base expression for the currency pattern, this is used in a form scenario.
 java.lang.String getCurrencyPatternExpression(java.lang.String baseExpression)
          Create the base expression for the currency pattern, this is used in a table scenario.
 void initializeFromParent(oracle.adfdt.view.common.binding.provider.ModelProvider parent)
          Initialize from parent, allows us to get the parent ModelProvider.
 
Methods inherited from class oracle.adfdt.view.common.binding.provider.ADFBaseProvider
configureModelFromView, createControlBinding, createControlBinding, createControlBinding, createControlBinding, createExecutableBinding, createIteratorBinding, createUniqueControlBinding, createUniqueControlBinding, createUniqueIteratorBinding, fireNewBindingAddedEvent, getDataControl, getDTApplication, getDTBaseBindingContainer, getDTContext, getDTPageDefinitionUsage, initializeBindingEnvironment, isReadOnly, setupApplication
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DtrtCurrencyConverterModelProvider

public DtrtCurrencyConverterModelProvider(oracle.adfdt.ADFDesignTimeContext dtContext,
                                          oracle.adfdt.model.objects.DataControl dataControl,
                                          oracle.binding.meta.NamedDefinition dataControlDefinition)
Construct the model provider.

Parameters:
dtContext - design time context
dataControl - data control drop was initianed from
dataControlDefinition - object in dataControl dropped
Method Detail

initializeFromParent

public void initializeFromParent(oracle.adfdt.view.common.binding.provider.ModelProvider parent)
Initialize from parent, allows us to get the parent ModelProvider.

Specified by:
initializeFromParent in interface oracle.adfdt.view.common.binding.provider.ModelProvider
Overrides:
initializeFromParent in class oracle.adfdt.view.common.binding.provider.ADFBaseProvider
Parameters:
parent - parent model provider.

createCurrencyCodeExpression

public java.lang.String createCurrencyCodeExpression(java.lang.String baseExpression)
Create the base expression for the currency code, this is used in a table scenario.

Parameters:
baseExpression - base expression to build on.
Returns:
EL String representing the currency expression.

createCurrencyCodeExpression

public java.lang.String createCurrencyCodeExpression()
Create the base expression for the currency code, this is used in a form scenario.

Returns:
EL String representing the currency expression.

getCurrencyPatternExpression

public java.lang.String getCurrencyPatternExpression()
Create the base expression for the currency pattern, this is used in a form scenario.

Returns:
EL String representing the currency pattern expression.

getCurrencyPatternExpression

public java.lang.String getCurrencyPatternExpression(java.lang.String baseExpression)
Create the base expression for the currency pattern, this is used in a table scenario.

Parameters:
baseExpression - base expression to build on.
Returns:
EL String representing the currency pattern expression.

getCurrencyCodeAttrName

public static java.lang.String getCurrencyCodeAttrName(java.lang.String thisAttrExpr,
                                                       java.lang.String thisAttrName)
Replace the currenc attribute in the arg, with the currency code column expression. Example #{bindings.TestId.inputValue} becomes #{bindings.TestIdCurrencyCode.inputValue}.

Parameters:
thisAttrExpr - EL expression for this attribute.
thisAttrName - attribue name in question, TestId in the above example.
Returns:
EL expression for the crrency code attribute.

Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 1 (11.1.1.6)

E22562-05

Copyright © 2012 Oracle. All Rights Reserved.