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

E22562-01

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

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

public final class DomUtils
extends java.lang.Object

This class contins various xml dom utilities.

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

Method Summary
static org.w3c.dom.Element addClientListener(org.w3c.dom.Document document, oracle.adfdt.ADFDesignTimeContext dtContext, org.w3c.dom.Element parent, java.lang.String method, java.lang.String type)
          Add an af:clientListener to parent.
static org.w3c.dom.Element addColumn(org.w3c.dom.Document document, oracle.adfdt.ADFDesignTimeContext dtContext, org.w3c.dom.Element parent, java.lang.String headerText)
          Add a JSF column to parent.
static org.w3c.dom.Element addCommandButton(org.w3c.dom.Document document, oracle.adfdt.ADFDesignTimeContext dtContext, org.w3c.dom.Element parent, java.lang.String baseId, java.lang.String textAndAccessKey, java.lang.String shortDesc)
          Create a Command Button with given attributes.
static org.w3c.dom.Element addCommandMenuItem(org.w3c.dom.Document document, oracle.adfdt.ADFDesignTimeContext dtContext, java.lang.String text, org.w3c.dom.Element parent)
          Add an af:commandMenuItem to parent.
static org.w3c.dom.Element addCommandToolbarButton(org.w3c.dom.Document document, oracle.adfdt.ADFDesignTimeContext dtContext, java.lang.String text, org.w3c.dom.Element parent)
          Add an af:commandToolbarButton to parent.
static org.w3c.dom.Element addGroup(org.w3c.dom.Document document, oracle.adfdt.ADFDesignTimeContext dtContext, org.w3c.dom.Element parent)
          Add an af:group to parent.
static org.w3c.dom.Element addMenu(org.w3c.dom.Document document, oracle.adfdt.ADFDesignTimeContext dtContext, java.lang.String text, org.w3c.dom.Element parent)
          Add an af:menu to parent.
static org.w3c.dom.Element addRegion(org.w3c.dom.Document document, oracle.adfdt.ADFDesignTimeContext dtContext, org.w3c.dom.Element parent, java.lang.String value, java.lang.String id)
          Add an af:region column to parent.
static org.w3c.dom.Element addResetActionListener(org.w3c.dom.Document document, oracle.adfdt.ADFDesignTimeContext dtContext, org.w3c.dom.Element parent)
          Add an af:resetActionListener to parent.
static org.w3c.dom.Element addSpacer(org.w3c.dom.Document document, oracle.adfdt.ADFDesignTimeContext dtContext, java.lang.String width, java.lang.String height, org.w3c.dom.Element parent)
          Add an af:spacer to parent.
static void addWidthInlineStyle(org.w3c.dom.Element e)
          Add an inlinStyle=99% to the passed in element.
static org.w3c.dom.Element appendChildElement(oracle.adfdt.ADFDesignTimeContext dtContext, org.w3c.dom.Document document, org.w3c.dom.Element root, java.lang.String namespaceURI, java.lang.String localName, java.lang.String attrName, java.lang.String attrValue)
          Append a new element with given single attribute to root.
static org.w3c.dom.Element appendFacetElement(oracle.adfdt.ADFDesignTimeContext dtContext, org.w3c.dom.Document document, org.w3c.dom.Element root, java.lang.String nameAttrValue)
          Append a <f:facet name=nameAttrValue> to the element root.
static org.w3c.dom.Element appendPanelFormLayout(oracle.adfdt.ADFDesignTimeContext dtContext, org.w3c.dom.Document document, org.w3c.dom.Element root, int maxColumns)
          Append a af:panelFormLayout with the given maxColumns to root.
static org.w3c.dom.Element createADFElement(org.w3c.dom.Document document, java.lang.String qualifiedName, DomAttribute[] attrs)
          Create a af:convertDateTime.
static org.w3c.dom.Element createChildADFElement(org.w3c.dom.Document document, oracle.adfdt.ADFDesignTimeContext dtContext, org.w3c.dom.Element parent, java.lang.String qualifiedName, DomAttribute[] attrs)
          Create a af Element with given qualifiedName and attributes.
static org.w3c.dom.Element createCommandButton(org.w3c.dom.Document document, java.lang.String actionListener, java.lang.String textAndAccessKey, java.lang.String disabled, java.lang.String partialSubmit)
          Create a command Button.
static org.w3c.dom.Element createConvertDateTime(org.w3c.dom.Document document, java.lang.String pattern)
          Create a af:convertDateTime.
static org.w3c.dom.Element createConvertDateTime(org.w3c.dom.Document document, java.lang.String pattern, java.lang.String type)
          Create a af:convertDateTime.
static org.w3c.dom.Element createConvertDateTime(org.w3c.dom.Document document, java.lang.String pattern, java.lang.String type, java.lang.String timeZone)
          Create a af:convertDateTime.
static org.w3c.dom.Element createConvertNumber(org.w3c.dom.Document document, java.lang.String pattern)
          Create a af:convertNumber.
static org.w3c.dom.Element createConvertNumber(org.w3c.dom.Document document, java.lang.String pattern, java.lang.String type, java.lang.String currencyCode)
          Create a af:convertNumber.
static org.w3c.dom.Element createElement(org.w3c.dom.Document document, java.lang.String namespaceURI, java.lang.String localName, java.lang.String attrName, java.lang.String attrValue)
          Create a new element with given single attribute.
static org.w3c.dom.Element createFacet(org.w3c.dom.Document document, java.lang.String name)
          Create a f:facet.
static org.w3c.dom.Element createPanelFormLayout(org.w3c.dom.Document document, int maxColumns)
          Create a af:panelFormLayout with the given maxColumns.
static org.w3c.dom.Element createPanelGroupLayout(org.w3c.dom.Document document)
          Create a af:panelGroupLayout.
static org.w3c.dom.Element createPanelGroupLayout(org.w3c.dom.Document document, java.lang.String layout)
          Create a af:panelGroupLayout.
static org.w3c.dom.Element createPanelHeader(org.w3c.dom.Document document, java.lang.String text)
          Create a af:panelHeader.
static org.w3c.dom.Element createPanelSplitter(org.w3c.dom.Document document, java.lang.String orientation, java.lang.String splitterPosition)
          Create a af:panelSplitter.
static org.w3c.dom.Element createPanelTabbedLayout(org.w3c.dom.Document document)
          Create a af:panelTabbed Layout with inlineStyle="width:100%;".
static org.w3c.dom.Element createShowDetail(org.w3c.dom.Document document, java.lang.String disclosedText, java.lang.String undisclosedText)
          Create a af:showDetail.
static org.w3c.dom.Element createShowDetailHeader(org.w3c.dom.Document document, java.lang.String text)
          Create a af:showDetailHeader with the give text as the text attribute and disclosed = "true".
static org.w3c.dom.Element createShowDetailItem(org.w3c.dom.Document document, java.lang.String textAndAccessKey)
          Create a af:showDetailItem.
static org.w3c.dom.Element createSwitcher(org.w3c.dom.Document document, java.lang.String facetName, java.lang.String defaultFacet)
          Create a af:switcher Layout.
static org.w3c.dom.Element createToolbar(org.w3c.dom.Document document)
          Create a af:toolbar.
static org.w3c.dom.Element createToolbox(org.w3c.dom.Document document)
          Create a af:toolbox.
static org.w3c.dom.Element createXMLForAttachments(org.w3c.dom.Document doc, java.lang.String expression, java.lang.String columnModel)
          Create XML for the attachment column.
static org.w3c.dom.Element ensureChildElement(org.w3c.dom.Document document, org.w3c.dom.Element root, java.lang.String namespaceURI, java.lang.String localName)
          Create a new element if it does not already exist; if it does do nothing.
static org.w3c.dom.Element ensureChildElement(org.w3c.dom.Document document, org.w3c.dom.Element root, java.lang.String namespaceURI, java.lang.String localName, java.lang.String attrName, java.lang.String attrValue)
          Create a new element with given single attribute if it does not already exist; if it does do nothing.
static void ensureFndPrefixInPage(oracle.adfdt.jdev.JDevDesignTimeContext jdevContext)
          Ensure the applcore fnd prefix is present in a jsp(x) page.
static boolean getBooleanAttribute(org.w3c.dom.Element node, java.lang.String attName)
          Get the boolean attribute on node, doing type conversion.
static void printDOM(org.w3c.dom.Node node, java.lang.StringBuilder sb)
          Print the dom tree into the passed StringBuilder.
static TableElementHolder reconstructTableRootIfNeeded(oracle.adfdt.ADFDesignTimeContext dtContext, org.w3c.dom.Document document, org.w3c.dom.Element appsTable)
          Create, reconstruct, clense fnd:applicationsTable to be of the following form: <f:facet name="menubar"/> <f:facet name="toolbar"/> <f:facet name="table"/> <f:facet name="popup"> <af:panelGroupLayout"/> </f:facet/> Anything nasty (i.e.
static TreeElementHolder reconstructTreeRootIfNeeded(oracle.adfdt.ADFDesignTimeContext dtContext, org.w3c.dom.Document document, org.w3c.dom.Element appsTree)
          Create, reconstruct, clense fnd:applicationsTree to be of the following form: <f:facet name ="additionalActionItems"/> <f:facet name ="appsTreeSecondaryToolbar"/> <f:facet name ="appsTreeStatusbar"/> <f:facet name ="appsTreeViewMenu"/> <f:facet name="tree"> <f:facet name="popup"> Anything nasty (i.e.
static TreeTableElementHolder reconstructTreeTableRootIfNeeded(oracle.adfdt.ADFDesignTimeContext dtContext, org.w3c.dom.Document document, org.w3c.dom.Element appsTreeTable)
          Create, reconstruct, clense fnd:applicationsTreeTable to be of the following form: <f:facet name ="additionalActionItems"/> <f:facet name ="additionalToolbarButtons"/> <f:facet name ="appsTreeTableSecondaryToolbar"/> <f:facet name ="appsTreeTableStatusbar"/> <f:facet name ="appsTreeTableViewMenu"/> <f:facet name ="appsTreeTableAfterToolbar"/> <f:facet name="treeTable"> <f:facet name="popup"> Anything nasty (i.e.
static void setBooleanAttribute(org.w3c.dom.Element node, java.lang.String attName, boolean attValue)
          Set the boolean attribute on node.
static void setStringAttribute(org.w3c.dom.Element node, java.lang.String attName, java.lang.String attValue)
          Set the attribute on node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

reconstructTableRootIfNeeded

public static TableElementHolder reconstructTableRootIfNeeded(oracle.adfdt.ADFDesignTimeContext dtContext,
                                                              org.w3c.dom.Document document,
                                                              org.w3c.dom.Element appsTable)
Create, reconstruct, clense fnd:applicationsTable to be of the following form: <f:facet name="menubar"/> <f:facet name="toolbar"/> <f:facet name="table"/> <f:facet name="popup"> <af:panelGroupLayout"/> </f:facet/> Anything nasty (i.e. not supposed to be there) will be removed.

Parameters:
dtContext - design time context
document - Dom document
appsTable - applicationsTable Dom Element
Returns:
an TableElementHolder pointing to relevant parts of the applicationsTable Dom tree.

appendPanelFormLayout

public static org.w3c.dom.Element appendPanelFormLayout(oracle.adfdt.ADFDesignTimeContext dtContext,
                                                        org.w3c.dom.Document document,
                                                        org.w3c.dom.Element root,
                                                        int maxColumns)
Append a af:panelFormLayout with the given maxColumns to root.

Parameters:
dtContext - design time constant
document - Dom document
root - Element to add to
maxColumns - columns for panelFormLayout
Returns:
Element

createPanelFormLayout

public static org.w3c.dom.Element createPanelFormLayout(org.w3c.dom.Document document,
                                                        int maxColumns)
Create a af:panelFormLayout with the given maxColumns.

Parameters:
document - Dom document
maxColumns - columns for panelFormLayout
Returns:
Element

appendFacetElement

public static org.w3c.dom.Element appendFacetElement(oracle.adfdt.ADFDesignTimeContext dtContext,
                                                     org.w3c.dom.Document document,
                                                     org.w3c.dom.Element root,
                                                     java.lang.String nameAttrValue)
Append a <f:facet name=nameAttrValue> to the element root.

Parameters:
dtContext - design time constant
document - Dom document
root - Element to add to
nameAttrValue - name attribute value
Returns:
Element

appendChildElement

public static org.w3c.dom.Element appendChildElement(oracle.adfdt.ADFDesignTimeContext dtContext,
                                                     org.w3c.dom.Document document,
                                                     org.w3c.dom.Element root,
                                                     java.lang.String namespaceURI,
                                                     java.lang.String localName,
                                                     java.lang.String attrName,
                                                     java.lang.String attrValue)
Append a new element with given single attribute to root.

Parameters:
dtContext - design time constant
document - Dom document
root - Element to add to
namespaceURI - namespace of new element
localName - xml local name within namespaceURI
attrName - attribute name
attrValue - attribute value
Returns:
Element

createElement

public static org.w3c.dom.Element createElement(org.w3c.dom.Document document,
                                                java.lang.String namespaceURI,
                                                java.lang.String localName,
                                                java.lang.String attrName,
                                                java.lang.String attrValue)
Create a new element with given single attribute.

Parameters:
document - Dom document
namespaceURI - namespace of new element
localName - xml local name within namespaceURI
attrName - attribute name
attrValue - attribute value
Returns:
Element

ensureChildElement

public static org.w3c.dom.Element ensureChildElement(org.w3c.dom.Document document,
                                                     org.w3c.dom.Element root,
                                                     java.lang.String namespaceURI,
                                                     java.lang.String localName,
                                                     java.lang.String attrName,
                                                     java.lang.String attrValue)
Create a new element with given single attribute if it does not already exist; if it does do nothing.

Parameters:
document - Dom document
root - Element to add to
namespaceURI - namespace of new element
localName - xml local name within namespaceURI
attrName - attribute name
attrValue - attribute value
Returns:
Element

ensureChildElement

public static org.w3c.dom.Element ensureChildElement(org.w3c.dom.Document document,
                                                     org.w3c.dom.Element root,
                                                     java.lang.String namespaceURI,
                                                     java.lang.String localName)
Create a new element if it does not already exist; if it does do nothing.

Parameters:
document - Dom document
root - Element to add to
namespaceURI - namespace of new element
localName - xml local name within namespaceURI
Returns:
Element

setStringAttribute

public static void setStringAttribute(org.w3c.dom.Element node,
                                      java.lang.String attName,
                                      java.lang.String attValue)
Set the attribute on node.

Parameters:
node - Element to set
attName - attribute name
attValue - attribute value

getBooleanAttribute

public static boolean getBooleanAttribute(org.w3c.dom.Element node,
                                          java.lang.String attName)
Get the boolean attribute on node, doing type conversion. Attribute is expected to be "true" or "false" in String form in xml.

Parameters:
node - Element with attribute
attName - attribute name
Returns:
Element if it exists, null otherwise.

setBooleanAttribute

public static void setBooleanAttribute(org.w3c.dom.Element node,
                                       java.lang.String attName,
                                       boolean attValue)
Set the boolean attribute on node.

Parameters:
node - Element to set
attName - attribute name
attValue - attribute value

reconstructTreeRootIfNeeded

public static TreeElementHolder reconstructTreeRootIfNeeded(oracle.adfdt.ADFDesignTimeContext dtContext,
                                                            org.w3c.dom.Document document,
                                                            org.w3c.dom.Element appsTree)
Create, reconstruct, clense fnd:applicationsTree to be of the following form: <f:facet name ="additionalActionItems"/> <f:facet name ="appsTreeSecondaryToolbar"/> <f:facet name ="appsTreeStatusbar"/> <f:facet name ="appsTreeViewMenu"/> <f:facet name="tree"> <f:facet name="popup"> Anything nasty (i.e. not supposed to be there) will be removed.

Parameters:
dtContext - design time context
document - Dom document
appsTree - applicationsTree Dom Element
Returns:
an TreeElementHolder pointing to relevant parts of the applicationsTree Dom tree.

reconstructTreeTableRootIfNeeded

public static TreeTableElementHolder reconstructTreeTableRootIfNeeded(oracle.adfdt.ADFDesignTimeContext dtContext,
                                                                      org.w3c.dom.Document document,
                                                                      org.w3c.dom.Element appsTreeTable)
Create, reconstruct, clense fnd:applicationsTreeTable to be of the following form: <f:facet name ="additionalActionItems"/> <f:facet name ="additionalToolbarButtons"/> <f:facet name ="appsTreeTableSecondaryToolbar"/> <f:facet name ="appsTreeTableStatusbar"/> <f:facet name ="appsTreeTableViewMenu"/> <f:facet name ="appsTreeTableAfterToolbar"/> <f:facet name="treeTable"> <f:facet name="popup"> Anything nasty (i.e. not supposed to be there) will be removed.

Parameters:
dtContext - design time context
document - Dom document
appsTreeTable - applicationsTreeTable Dom Element
Returns:
an TreeTableElementHolder pointing to relevant parts of the applicationsTreeTable Dom tree.

createShowDetailItem

public static org.w3c.dom.Element createShowDetailItem(org.w3c.dom.Document document,
                                                       java.lang.String textAndAccessKey)
Create a af:showDetailItem.

Parameters:
document - Dom document
textAndAccessKey - tab label.
Returns:
Element

createPanelTabbedLayout

public static org.w3c.dom.Element createPanelTabbedLayout(org.w3c.dom.Document document)
Create a af:panelTabbed Layout with inlineStyle="width:100%;".

Parameters:
document - Dom document
Returns:
Element

createSwitcher

public static org.w3c.dom.Element createSwitcher(org.w3c.dom.Document document,
                                                 java.lang.String facetName,
                                                 java.lang.String defaultFacet)
Create a af:switcher Layout.

Parameters:
document - Dom document
facetName - facet name expression.
defaultFacet - default facet name.
Returns:
Element

createPanelGroupLayout

public static org.w3c.dom.Element createPanelGroupLayout(org.w3c.dom.Document document,
                                                         java.lang.String layout)
Create a af:panelGroupLayout.

Parameters:
document - Dom document
layout - layout attribute
Returns:
Element

createCommandButton

public static org.w3c.dom.Element createCommandButton(org.w3c.dom.Document document,
                                                      java.lang.String actionListener,
                                                      java.lang.String textAndAccessKey,
                                                      java.lang.String disabled,
                                                      java.lang.String partialSubmit)
Create a command Button. All attributes are optional and will only be added if non-null.

Parameters:
document -
actionListener - actionListener attribute
textAndAccessKey - textAndAccessKey attribute
disabled - disabled attribute
partialSubmit - do we add a partialSubmit.
Returns:
commandButton Element.

createPanelGroupLayout

public static org.w3c.dom.Element createPanelGroupLayout(org.w3c.dom.Document document)
Create a af:panelGroupLayout.

Parameters:
document - Dom document
Returns:
Element

createToolbox

public static org.w3c.dom.Element createToolbox(org.w3c.dom.Document document)
Create a af:toolbox.

Parameters:
document - Dom document
Returns:
Element

createToolbar

public static org.w3c.dom.Element createToolbar(org.w3c.dom.Document document)
Create a af:toolbar.

Parameters:
document - Dom document
Returns:
Element

createFacet

public static org.w3c.dom.Element createFacet(org.w3c.dom.Document document,
                                              java.lang.String name)
Create a f:facet.

Parameters:
document - Dom document
name - name.
Returns:
Element

createPanelHeader

public static org.w3c.dom.Element createPanelHeader(org.w3c.dom.Document document,
                                                    java.lang.String text)
Create a af:panelHeader.

Parameters:
document - Dom document
text - label.
Returns:
af:panelHeader Element

createPanelSplitter

public static org.w3c.dom.Element createPanelSplitter(org.w3c.dom.Document document,
                                                      java.lang.String orientation,
                                                      java.lang.String splitterPosition)
Create a af:panelSplitter.

Parameters:
document - Dom document
orientation - horizontal or vertical.
splitterPosition - the initial position of the repositionable divider.
Returns:
af:panelSplitter Element

createShowDetailHeader

public static org.w3c.dom.Element createShowDetailHeader(org.w3c.dom.Document document,
                                                         java.lang.String text)
Create a af:showDetailHeader with the give text as the text attribute and disclosed = "true".

Parameters:
document - Dom document
text - label.
Returns:
Element

createShowDetail

public static org.w3c.dom.Element createShowDetail(org.w3c.dom.Document document,
                                                   java.lang.String disclosedText,
                                                   java.lang.String undisclosedText)
Create a af:showDetail.

Parameters:
document - Dom document
disclosedText - text to display when disclosed.
undisclosedText - text to display when undisclosed.
Returns:
Element

printDOM

public static void printDOM(org.w3c.dom.Node node,
                            java.lang.StringBuilder sb)
Print the dom tree into the passed StringBuilder. This method is primarily for debugging.

Parameters:
node - the Dom node to print.
sb - StringBuilder to print into.

createXMLForAttachments

public static org.w3c.dom.Element createXMLForAttachments(org.w3c.dom.Document doc,
                                                          java.lang.String expression,
                                                          java.lang.String columnModel)
Create XML for the attachment column.

Parameters:
doc - Dom document
expression - value expression for attachment value binding. dMay be null.
Returns:
Element for attachment column.

ensureFndPrefixInPage

public static void ensureFndPrefixInPage(oracle.adfdt.jdev.JDevDesignTimeContext jdevContext)
Ensure the applcore fnd prefix is present in a jsp(x) page. This method is designed to be called during xml node creation, such as from within a model provider.

Parameters:
jdevContext - context to use.

createConvertDateTime

public static org.w3c.dom.Element createConvertDateTime(org.w3c.dom.Document document,
                                                        java.lang.String pattern)
Create a af:convertDateTime.

Parameters:
document - Dom document
pattern - label.
Returns:
Element

createConvertDateTime

public static org.w3c.dom.Element createConvertDateTime(org.w3c.dom.Document document,
                                                        java.lang.String pattern,
                                                        java.lang.String type)
Create a af:convertDateTime.

Parameters:
document - Dom document
pattern - label.
type - type.
Returns:
Element

createConvertDateTime

public static org.w3c.dom.Element createConvertDateTime(org.w3c.dom.Document document,
                                                        java.lang.String pattern,
                                                        java.lang.String type,
                                                        java.lang.String timeZone)
Create a af:convertDateTime.

Parameters:
document - Dom document
pattern - label.
type - type.
timeZone - timezone.
Returns:
Element

createConvertNumber

public static org.w3c.dom.Element createConvertNumber(org.w3c.dom.Document document,
                                                      java.lang.String pattern)
Create a af:convertNumber.

Parameters:
document - Dom document
pattern - label.
Returns:
Element

createConvertNumber

public static org.w3c.dom.Element createConvertNumber(org.w3c.dom.Document document,
                                                      java.lang.String pattern,
                                                      java.lang.String type,
                                                      java.lang.String currencyCode)
Create a af:convertNumber.

Parameters:
document - Dom document
pattern - label.
type - type.
currencyCode - currency code expr.
Returns:
Element

createADFElement

public static org.w3c.dom.Element createADFElement(org.w3c.dom.Document document,
                                                   java.lang.String qualifiedName,
                                                   DomAttribute[] attrs)
Create a af:convertDateTime.

Parameters:
document - Dom document
qualifiedName - name of the element to create.
attrs - attributes.
Returns:
Element.

createChildADFElement

public static org.w3c.dom.Element createChildADFElement(org.w3c.dom.Document document,
                                                        oracle.adfdt.ADFDesignTimeContext dtContext,
                                                        org.w3c.dom.Element parent,
                                                        java.lang.String qualifiedName,
                                                        DomAttribute[] attrs)
Create a af Element with given qualifiedName and attributes.

Parameters:
document - Dom document.
dtContext - context.
parent - the parent element to add to.
qualifiedName - name of the element to create.
attrs - attributes.
Returns:
Element.

addCommandButton

public static org.w3c.dom.Element addCommandButton(org.w3c.dom.Document document,
                                                   oracle.adfdt.ADFDesignTimeContext dtContext,
                                                   org.w3c.dom.Element parent,
                                                   java.lang.String baseId,
                                                   java.lang.String textAndAccessKey,
                                                   java.lang.String shortDesc)
Create a Command Button with given attributes.

Parameters:
document - Dom document
dtContext - context.
parent - parent Element to append to.
baseId - base id to use.
textAndAccessKey - textAndAccessKey attr of commandButton.
shortDesc - shortDesc attr of commandButton.
Returns:
created element.

addColumn

public static org.w3c.dom.Element addColumn(org.w3c.dom.Document document,
                                            oracle.adfdt.ADFDesignTimeContext dtContext,
                                            org.w3c.dom.Element parent,
                                            java.lang.String headerText)
Add a JSF column to parent.

Parameters:
document - Dom document.
dtContext - context.
parent - parent, probably a tree or treeTable.
headerText - optional header Text.
Returns:
added af:column.

addGroup

public static org.w3c.dom.Element addGroup(org.w3c.dom.Document document,
                                           oracle.adfdt.ADFDesignTimeContext dtContext,
                                           org.w3c.dom.Element parent)
Add an af:group to parent.

Parameters:
document - Dom document.
dtContext - context.
parent - parent Element.
Returns:
added af:group.

addSpacer

public static org.w3c.dom.Element addSpacer(org.w3c.dom.Document document,
                                            oracle.adfdt.ADFDesignTimeContext dtContext,
                                            java.lang.String width,
                                            java.lang.String height,
                                            org.w3c.dom.Element parent)
Add an af:spacer to parent.

Parameters:
document - Dom document.
dtContext - context.
width - width attr value.
height - height attr value.
parent - parent Element.
Returns:
added af:spacer.

addCommandToolbarButton

public static org.w3c.dom.Element addCommandToolbarButton(org.w3c.dom.Document document,
                                                          oracle.adfdt.ADFDesignTimeContext dtContext,
                                                          java.lang.String text,
                                                          org.w3c.dom.Element parent)
Add an af:commandToolbarButton to parent.

Parameters:
document - Dom document.
dtContext - context.
text - text attr value.
parent - parent Element.
Returns:
added af:commandToolbarButton.

addMenu

public static org.w3c.dom.Element addMenu(org.w3c.dom.Document document,
                                          oracle.adfdt.ADFDesignTimeContext dtContext,
                                          java.lang.String text,
                                          org.w3c.dom.Element parent)
Add an af:menu to parent.

Parameters:
document - Dom document.
dtContext - context.
text - text attr value.
parent - parent Element.
Returns:
added af:menu.

addCommandMenuItem

public static org.w3c.dom.Element addCommandMenuItem(org.w3c.dom.Document document,
                                                     oracle.adfdt.ADFDesignTimeContext dtContext,
                                                     java.lang.String text,
                                                     org.w3c.dom.Element parent)
Add an af:commandMenuItem to parent.

Parameters:
document - Dom document.
dtContext - context.
text - text attr value.
parent - parent Element.
Returns:
added af:commandMenuItem.

addRegion

public static org.w3c.dom.Element addRegion(org.w3c.dom.Document document,
                                            oracle.adfdt.ADFDesignTimeContext dtContext,
                                            org.w3c.dom.Element parent,
                                            java.lang.String value,
                                            java.lang.String id)
Add an af:region column to parent.

Parameters:
document - Dom document.
dtContext - context.
parent - parent.
value - optional value.
id - optional id.
Returns:
added af:column.

addResetActionListener

public static org.w3c.dom.Element addResetActionListener(org.w3c.dom.Document document,
                                                         oracle.adfdt.ADFDesignTimeContext dtContext,
                                                         org.w3c.dom.Element parent)
Add an af:resetActionListener to parent.

Parameters:
document - Dom document.
dtContext - context.
parent - parent Element.
Returns:
added af:resetActionListener.

addClientListener

public static org.w3c.dom.Element addClientListener(org.w3c.dom.Document document,
                                                    oracle.adfdt.ADFDesignTimeContext dtContext,
                                                    org.w3c.dom.Element parent,
                                                    java.lang.String method,
                                                    java.lang.String type)
Add an af:clientListener to parent.

Parameters:
document - Dom document.
dtContext - context.
parent - parent Element.
method - method attribute, potentially null.
type - type attribute, potentially null.
Returns:
added af:clientListener.

addWidthInlineStyle

public static void addWidthInlineStyle(org.w3c.dom.Element e)
Add an inlinStyle=99% to the passed in element. 99% is used in preference to 100% due to browser limitations in calculating widths, and the subsequent rendering of an unwanted horizontal scrollbar at the bottom of tables etc.

Parameters:
e - Element to decorate.

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

E22562-01

Copyright © 2011 Oracle. All Rights Reserved.