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

E22562-03

oracle.apps.fnd.applcore.dt.patterns.utils
Class DataControlUtils

java.lang.Object
  extended by oracle.apps.fnd.applcore.dt.patterns.utils.DataControlUtils

public final class DataControlUtils
extends java.lang.Object

DataControlUtils is a utility file that contains methods determine attributes on the selected Data Source.

Author:
Pallavi Palparthy <pallavi.palparthy@oracle.com>

Method Summary
static java.lang.String addFormBinding(oracle.adfdt.ADFDesignTimeContext dtContext, org.w3c.dom.Document document, oracle.adfdt.model.objects.DataControl dataControl, oracle.binding.meta.NamedDefinition attribute)
          Create a form binding for attribute, returning the "value" binding expression that can be used to refernce it from JSF.
static java.lang.String determineIteratorId(oracle.bali.xml.gui.jdev.JDevXmlContext context, org.w3c.dom.Element panelForm)
          Determine the iterator id that individual widgets are bound to in panelForm.
static org.w3c.dom.Element findBoundMasterTable(oracle.binding.meta.NamedDefinition definition, org.w3c.dom.Node node)
          Determine if the selected definition is a detail definition of the table collection.
static org.w3c.dom.Element findBoundParentTable(java.lang.String iteratorName, org.w3c.dom.Node node)
          Determine if the definition corresponds to an existing bound af:table somewhere up the jsf component tree.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

findBoundParentTable

public static org.w3c.dom.Element findBoundParentTable(java.lang.String iteratorName,
                                                       org.w3c.dom.Node node)
Determine if the definition corresponds to an existing bound af:table somewhere up the jsf component tree.

Parameters:
iteratorName - name of iterator table should be bound to.
node - node to start search.
Returns:
table Element if found, else null.

findBoundMasterTable

public static org.w3c.dom.Element findBoundMasterTable(oracle.binding.meta.NamedDefinition definition,
                                                       org.w3c.dom.Node node)
Determine if the selected definition is a detail definition of the table collection.

Parameters:
definition - NamedDefinition Object of the dragged collection.
node - node to start search.
Returns:
the masterTable element.

addFormBinding

public static java.lang.String addFormBinding(oracle.adfdt.ADFDesignTimeContext dtContext,
                                              org.w3c.dom.Document document,
                                              oracle.adfdt.model.objects.DataControl dataControl,
                                              oracle.binding.meta.NamedDefinition attribute)
Create a form binding for attribute, returning the "value" binding expression that can be used to refernce it from JSF.

Parameters:
dtContext - design time context.
document - Dom document.
dataControl - data control the attribute is for.
attribute -
Returns:
String expression for the attribute value, of the form "#{binding.attributeName.inputValue}"

determineIteratorId

public static java.lang.String determineIteratorId(oracle.bali.xml.gui.jdev.JDevXmlContext context,
                                                   org.w3c.dom.Element panelForm)
Determine the iterator id that individual widgets are bound to in panelForm.

Parameters:
context - context object.
panelForm - form containing widgets.
Returns:
iteratorId of first widget bound to ADF.

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

E22562-03

Copyright © 2012 Oracle. All Rights Reserved.