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

E22562-01

oracle.apps.fnd.applcore.flex.dynamic
Class BaseDynamicComponentFactory

java.lang.Object
  extended by oracle.apps.fnd.applcore.flex.dynamic.BaseDynamicComponentFactory
All Implemented Interfaces:
java.io.Serializable, DynamicComponentFactory
Direct Known Subclasses:
ChoiceListOfValuesFactory, EnumListChoiceFactory, ListOfValuesFactory, TableFactory, TableNodeFactory, UIXEditableValueFactory

public abstract class BaseDynamicComponentFactory
extends java.lang.Object
implements DynamicComponentFactory, java.io.Serializable

See Also:
Serialized Form

Field Summary
protected  java.util.Map _additionalParameters
           
protected  oracle.jbo.AttributeDef _attrDef
           
protected  java.lang.String _bindingNameSuffix
           
protected  boolean _canEdit
           
protected  javax.faces.context.FacesContext _context
           
protected  boolean _isTable
           
protected  oracle.adf.model.binding.DCIteratorBinding _iterator
           
protected  oracle.jbo.common.DefLocaleContext _localeContext
           
protected  javax.faces.component.UIComponent _parent
           
protected  java.lang.String _parentId
           
 
Constructor Summary
BaseDynamicComponentFactory()
           
 
Method Summary
protected  void configureComponent(javax.faces.application.Application application, java.lang.String bindingName, org.apache.myfaces.trinidad.component.UIXComponent component)
           
 org.apache.myfaces.trinidad.component.UIXComponent create()
          create UIComponent with necessary binding object
 oracle.adf.model.binding.DCControlBinding createControlBinding(java.lang.String bindingName)
          create control binding (only for form case)
protected  oracle.adf.model.binding.DCControlBindingDef createDefinition()
           
protected  javax.el.ValueExpression createExpression(java.lang.String property)
          create valuebinding based for the property for form case #{bindings.BindingName.property} for table case #{row.AttributeName.property} or table-detail case #{row.accessor.bindings.attributeName.property}
protected  org.apache.myfaces.trinidad.component.UIXComponent createFormComponent()
           
protected  javax.el.ValueExpression createHintExpression(java.lang.String property)
           
protected  javax.el.ValueExpression createReverseExpression(java.lang.String property)
          create reverse valuebinding based for the property for form case #{!bindings.BindingName.property} for table case #{!row.AttributeName.property} or table-detail case #{!row.accessor.bindings.attributeName.property}
protected  org.apache.myfaces.trinidad.component.UIXComponent createTableComponent()
           
protected  java.lang.String getAccessor()
           
 oracle.jbo.AttributeDef getAttrDef()
           
 java.lang.String getBindingName()
           
protected  java.lang.String getBindingNameSuffix()
           
protected  java.lang.String getBingindStartString()
           
protected  java.lang.String getComponentType()
           
 java.lang.String getControlDefType()
          for subclass to overwrite
 java.lang.Class<? extends oracle.adf.model.binding.DCDefBase> getDefClass()
           
 javax.el.ValueExpression getELValidationExpression()
          create an el that gurantee the binding obj is valid
 javax.el.ValueExpression getFormELValidationExpression()
           
 java.lang.String getId()
           
 oracle.adf.model.binding.DCIteratorBinding getIterator()
           
 oracle.jbo.common.DefLocaleContext getLocaleContext()
           
 java.lang.String getNamespace()
           
 javax.el.ValueExpression getTableELValidationExpression()
           
protected  javax.el.MethodExpression getValueChangeListener()
           
 void initialize(javax.faces.context.FacesContext context, javax.faces.component.UIComponent parent, oracle.adf.model.binding.DCIteratorBinding iterator, oracle.jbo.AttributeDef attrDef, boolean isTable, java.util.Map parameters)
          initialize the factory with current iterator and current attribute def
protected  void initializeDefinitionMap(java.util.HashMap values)
           
 boolean isAutoSubmit()
           
 boolean isDisabled()
           
 boolean isReadOnly()
           
 boolean isTable()
           
protected  void setId(org.apache.myfaces.trinidad.component.UIXComponent component, oracle.jbo.AttributeDef attrDef)
           
protected  void setupComponentExpression(javax.faces.component.UIComponent comp, java.lang.String property, java.lang.String expressionProperty)
          Simple version of setupComponentExpression
protected  void setupComponentExpression(javax.faces.component.UIComponent comp, java.lang.String property, java.lang.String expressionProperty, boolean reverse)
          create a value expression, then set the component property
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface oracle.apps.fnd.applcore.flex.dynamic.DynamicComponentFactory
getType
 

Field Detail

_context

protected transient javax.faces.context.FacesContext _context

_parent

protected transient javax.faces.component.UIComponent _parent

_iterator

protected transient oracle.adf.model.binding.DCIteratorBinding _iterator

_attrDef

protected transient oracle.jbo.AttributeDef _attrDef

_localeContext

protected transient oracle.jbo.common.DefLocaleContext _localeContext

_isTable

protected boolean _isTable

_parentId

protected java.lang.String _parentId

_bindingNameSuffix

protected java.lang.String _bindingNameSuffix

_canEdit

protected boolean _canEdit

_additionalParameters

protected transient java.util.Map _additionalParameters
Constructor Detail

BaseDynamicComponentFactory

public BaseDynamicComponentFactory()
Method Detail

getNamespace

public java.lang.String getNamespace()
Returns:

getControlDefType

public java.lang.String getControlDefType()
for subclass to overwrite

Returns:

initialize

public void initialize(javax.faces.context.FacesContext context,
                       javax.faces.component.UIComponent parent,
                       oracle.adf.model.binding.DCIteratorBinding iterator,
                       oracle.jbo.AttributeDef attrDef,
                       boolean isTable,
                       java.util.Map parameters)
initialize the factory with current iterator and current attribute def

Specified by:
initialize in interface DynamicComponentFactory
Parameters:
context -
parent - the Dynamic Component
iterator - current iterator
attrDef - current attriubte definition
parameters - addtional parameters as name Value pairs "accessor" table accessor "bindingNameSuffix" - additional suffix for binding object name, to avoid name conflict, right now the binding name = iteratorName+attributeDefName "autoSubmit" "valueChangeListener" "readOnly" "disabled" "customization" "discriminatorValue" "visible" "debug"

isReadOnly

public boolean isReadOnly()
Returns:

isDisabled

public boolean isDisabled()
Returns:
returns 'true' if the flex field is disabled else 'false'

isAutoSubmit

public boolean isAutoSubmit()
Returns:
returns 'true' if the flex field is auto submit able else 'false'

createDefinition

protected oracle.adf.model.binding.DCControlBindingDef createDefinition()

initializeDefinitionMap

protected void initializeDefinitionMap(java.util.HashMap values)

getBindingName

public java.lang.String getBindingName()

getId

public java.lang.String getId()

setId

protected void setId(org.apache.myfaces.trinidad.component.UIXComponent component,
                     oracle.jbo.AttributeDef attrDef)

getBindingNameSuffix

protected java.lang.String getBindingNameSuffix()

getAccessor

protected java.lang.String getAccessor()

getValueChangeListener

protected javax.el.MethodExpression getValueChangeListener()

createControlBinding

public final oracle.adf.model.binding.DCControlBinding createControlBinding(java.lang.String bindingName)
create control binding (only for form case)

Specified by:
createControlBinding in interface DynamicComponentFactory
Parameters:
bindingName -
Returns:

getDefClass

public java.lang.Class<? extends oracle.adf.model.binding.DCDefBase> getDefClass()

getComponentType

protected java.lang.String getComponentType()

configureComponent

protected void configureComponent(javax.faces.application.Application application,
                                  java.lang.String bindingName,
                                  org.apache.myfaces.trinidad.component.UIXComponent component)

createFormComponent

protected org.apache.myfaces.trinidad.component.UIXComponent createFormComponent()

createTableComponent

protected org.apache.myfaces.trinidad.component.UIXComponent createTableComponent()

create

public org.apache.myfaces.trinidad.component.UIXComponent create()
Description copied from interface: DynamicComponentFactory
create UIComponent with necessary binding object

Specified by:
create in interface DynamicComponentFactory
Returns:
the UIComponent

createExpression

protected javax.el.ValueExpression createExpression(java.lang.String property)
create valuebinding based for the property for form case #{bindings.BindingName.property} for table case #{row.AttributeName.property} or table-detail case #{row.accessor.bindings.attributeName.property}

Parameters:
property -
Returns:
ValueBinding

createHintExpression

protected javax.el.ValueExpression createHintExpression(java.lang.String property)

createReverseExpression

protected javax.el.ValueExpression createReverseExpression(java.lang.String property)
create reverse valuebinding based for the property for form case #{!bindings.BindingName.property} for table case #{!row.AttributeName.property} or table-detail case #{!row.accessor.bindings.attributeName.property}

Parameters:
property -
Returns:
ValueBinding

setupComponentExpression

protected void setupComponentExpression(javax.faces.component.UIComponent comp,
                                        java.lang.String property,
                                        java.lang.String expressionProperty)
Simple version of setupComponentExpression

Parameters:
comp -
property -
expressionProperty -

setupComponentExpression

protected void setupComponentExpression(javax.faces.component.UIComponent comp,
                                        java.lang.String property,
                                        java.lang.String expressionProperty,
                                        boolean reverse)
create a value expression, then set the component property

Parameters:
comp -
property -
expressionProperty -
reverse -

getBingindStartString

protected java.lang.String getBingindStartString()

getELValidationExpression

public javax.el.ValueExpression getELValidationExpression()
create an el that gurantee the binding obj is valid

Returns:

getTableELValidationExpression

public javax.el.ValueExpression getTableELValidationExpression()

getFormELValidationExpression

public javax.el.ValueExpression getFormELValidationExpression()

isTable

public boolean isTable()

getIterator

public oracle.adf.model.binding.DCIteratorBinding getIterator()

getAttrDef

public oracle.jbo.AttributeDef getAttrDef()

getLocaleContext

public oracle.jbo.common.DefLocaleContext getLocaleContext()

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

E22562-01

Copyright © 2011 Oracle. All Rights Reserved.