|
Oracle Fusion Middleware extensions for Applications Core API Reference 11g Release 1 (11.1.1.5) E22562-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.apps.fnd.applcore.dt.patterns.utils.DomUtils
public final class DomUtils
This class contins various xml dom utilities.
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:
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:
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:
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 |
---|
public static TableElementHolder reconstructTableRootIfNeeded(oracle.adfdt.ADFDesignTimeContext dtContext, org.w3c.dom.Document document, org.w3c.dom.Element appsTable)
<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.
dtContext
- design time contextdocument
- Dom documentappsTable
- applicationsTable Dom Element
public static org.w3c.dom.Element appendPanelFormLayout(oracle.adfdt.ADFDesignTimeContext dtContext, org.w3c.dom.Document document, org.w3c.dom.Element root, int maxColumns)
dtContext
- design time constantdocument
- Dom documentroot
- Element to add tomaxColumns
- columns for panelFormLayout
public static org.w3c.dom.Element createPanelFormLayout(org.w3c.dom.Document document, int maxColumns)
document
- Dom documentmaxColumns
- columns for panelFormLayout
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)
dtContext
- design time constantdocument
- Dom documentroot
- Element to add tonameAttrValue
- name attribute value
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)
dtContext
- design time constantdocument
- Dom documentroot
- Element to add tonamespaceURI
- namespace of new elementlocalName
- xml local name within namespaceURIattrName
- attribute nameattrValue
- attribute value
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)
document
- Dom documentnamespaceURI
- namespace of new elementlocalName
- xml local name within namespaceURIattrName
- attribute nameattrValue
- attribute value
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)
document
- Dom documentroot
- Element to add tonamespaceURI
- namespace of new elementlocalName
- xml local name within namespaceURIattrName
- attribute nameattrValue
- attribute value
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)
document
- Dom documentroot
- Element to add tonamespaceURI
- namespace of new elementlocalName
- xml local name within namespaceURI
public static void setStringAttribute(org.w3c.dom.Element node, java.lang.String attName, java.lang.String attValue)
node
- Element to setattName
- attribute nameattValue
- attribute valuepublic static boolean getBooleanAttribute(org.w3c.dom.Element node, java.lang.String attName)
node
- Element with attributeattName
- attribute name
public static void setBooleanAttribute(org.w3c.dom.Element node, java.lang.String attName, boolean attValue)
node
- Element to setattName
- attribute nameattValue
- attribute valuepublic static TreeElementHolder reconstructTreeRootIfNeeded(oracle.adfdt.ADFDesignTimeContext dtContext, org.w3c.dom.Document document, org.w3c.dom.Element appsTree)
<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.
dtContext
- design time contextdocument
- Dom documentappsTree
- applicationsTree Dom Element
public static TreeTableElementHolder reconstructTreeTableRootIfNeeded(oracle.adfdt.ADFDesignTimeContext dtContext, org.w3c.dom.Document document, org.w3c.dom.Element appsTreeTable)
<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.
dtContext
- design time contextdocument
- Dom documentappsTreeTable
- applicationsTreeTable Dom Element
public static org.w3c.dom.Element createShowDetailItem(org.w3c.dom.Document document, java.lang.String textAndAccessKey)
document
- Dom documenttextAndAccessKey
- tab label.
public static org.w3c.dom.Element createPanelTabbedLayout(org.w3c.dom.Document document)
document
- Dom document
public static org.w3c.dom.Element createSwitcher(org.w3c.dom.Document document, java.lang.String facetName, java.lang.String defaultFacet)
document
- Dom documentfacetName
- facet name expression.defaultFacet
- default facet name.
public static org.w3c.dom.Element createPanelGroupLayout(org.w3c.dom.Document document, java.lang.String layout)
document
- Dom documentlayout
- layout attribute
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)
document
- actionListener
- actionListener attributetextAndAccessKey
- textAndAccessKey attributedisabled
- disabled attributepartialSubmit
- do we add a partialSubmit.
public static org.w3c.dom.Element createPanelGroupLayout(org.w3c.dom.Document document)
document
- Dom document
public static org.w3c.dom.Element createToolbox(org.w3c.dom.Document document)
document
- Dom document
public static org.w3c.dom.Element createToolbar(org.w3c.dom.Document document)
document
- Dom document
public static org.w3c.dom.Element createFacet(org.w3c.dom.Document document, java.lang.String name)
document
- Dom documentname
- name.
public static org.w3c.dom.Element createPanelHeader(org.w3c.dom.Document document, java.lang.String text)
document
- Dom documenttext
- label.
public static org.w3c.dom.Element createPanelSplitter(org.w3c.dom.Document document, java.lang.String orientation, java.lang.String splitterPosition)
document
- Dom documentorientation
- horizontal or vertical.splitterPosition
- the initial position of the repositionable divider.
public static org.w3c.dom.Element createShowDetailHeader(org.w3c.dom.Document document, java.lang.String text)
document
- Dom documenttext
- label.
public static org.w3c.dom.Element createShowDetail(org.w3c.dom.Document document, java.lang.String disclosedText, java.lang.String undisclosedText)
document
- Dom documentdisclosedText
- text to display when disclosed.undisclosedText
- text to display when undisclosed.
public static void printDOM(org.w3c.dom.Node node, java.lang.StringBuilder sb)
node
- the Dom node to print.sb
- StringBuilder to print into.public static org.w3c.dom.Element createXMLForAttachments(org.w3c.dom.Document doc, java.lang.String expression, java.lang.String columnModel)
doc
- Dom documentexpression
- value expression for attachment value binding.
dMay be null.
public static void ensureFndPrefixInPage(oracle.adfdt.jdev.JDevDesignTimeContext jdevContext)
jdevContext
- context to use.public static org.w3c.dom.Element createConvertDateTime(org.w3c.dom.Document document, java.lang.String pattern)
document
- Dom documentpattern
- label.
public static org.w3c.dom.Element createConvertDateTime(org.w3c.dom.Document document, java.lang.String pattern, java.lang.String type)
document
- Dom documentpattern
- label.type
- type.
public static org.w3c.dom.Element createConvertDateTime(org.w3c.dom.Document document, java.lang.String pattern, java.lang.String type, java.lang.String timeZone)
document
- Dom documentpattern
- label.type
- type.timeZone
- timezone.
public static org.w3c.dom.Element createConvertNumber(org.w3c.dom.Document document, java.lang.String pattern)
document
- Dom documentpattern
- label.
public static org.w3c.dom.Element createConvertNumber(org.w3c.dom.Document document, java.lang.String pattern, java.lang.String type, java.lang.String currencyCode)
document
- Dom documentpattern
- label.type
- type.currencyCode
- currency code expr.
public static org.w3c.dom.Element createADFElement(org.w3c.dom.Document document, java.lang.String qualifiedName, DomAttribute[] attrs)
document
- Dom documentqualifiedName
- name of the element to create.attrs
- attributes.
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)
document
- Dom document.dtContext
- context.parent
- the parent element to add to.qualifiedName
- name of the element to create.attrs
- attributes.
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)
document
- Dom documentdtContext
- context.parent
- parent Element to append to.baseId
- base id to use.textAndAccessKey
- textAndAccessKey attr of commandButton.shortDesc
- shortDesc attr of commandButton.
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)
document
- Dom document.dtContext
- context.parent
- parent, probably a tree or treeTable.headerText
- optional header Text.
public static org.w3c.dom.Element addGroup(org.w3c.dom.Document document, oracle.adfdt.ADFDesignTimeContext dtContext, org.w3c.dom.Element parent)
document
- Dom document.dtContext
- context.parent
- parent Element.
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)
document
- Dom document.dtContext
- context.width
- width attr value.height
- height attr value.parent
- parent Element.
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)
document
- Dom document.dtContext
- context.text
- text attr value.parent
- parent Element.
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)
document
- Dom document.dtContext
- context.text
- text attr value.parent
- parent Element.
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)
document
- Dom document.dtContext
- context.text
- text attr value.parent
- parent Element.
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)
document
- Dom document.dtContext
- context.parent
- parent.value
- optional value.id
- optional id.
public static org.w3c.dom.Element addResetActionListener(org.w3c.dom.Document document, oracle.adfdt.ADFDesignTimeContext dtContext, org.w3c.dom.Element parent)
document
- Dom document.dtContext
- context.parent
- parent Element.
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)
document
- Dom document.dtContext
- context.parent
- parent Element.method
- method attribute, potentially null.type
- type attribute, potentially null.
public static void addWidthInlineStyle(org.w3c.dom.Element e)
e
- Element to decorate.
|
Oracle Fusion Middleware extensions for Applications Core API Reference 11g Release 1 (11.1.1.5) E22562-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |