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

E22562-02

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

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

public class ApplicationsUIUtils
extends java.lang.Object

Common utility class.


Method Summary
static org.w3c.dom.Element createFacet(org.w3c.dom.Document document, java.lang.String name)
          This method creates a facet element.
static oracle.bali.ewt.text.MultiLineLabel createMultiLineLabel(java.lang.String text)
          Create a multi line label suitable for using at the top of panels as instruction text.
static java.lang.String findOrCreateKey(oracle.bali.xml.gui.jdev.JDevXmlContext context, org.w3c.dom.Document document, java.lang.String text)
          This method returns a resource bundle key for a given text.
static oracle.bali.xml.metadata.XmlKey getPanelKey()
          This method returns the xml key for Applications Panel.
static boolean isExpression(java.lang.String statement)
           
static java.lang.String showChooserDialog(oracle.bali.xml.gui.jdev.JDevXmlContext context, java.lang.String text)
          This method returns a resource bundle expression for a given text.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createFacet

public static org.w3c.dom.Element createFacet(org.w3c.dom.Document document,
                                              java.lang.String name)
This method creates a facet element.

Parameters:
document - The xml document.
name - Name of the facet.
Returns:
The newly created facet element.

findOrCreateKey

public static java.lang.String findOrCreateKey(oracle.bali.xml.gui.jdev.JDevXmlContext context,
                                               org.w3c.dom.Document document,
                                               java.lang.String text)
                                        throws oracle.bali.xml.model.XmlCommitException
This method returns a resource bundle key for a given text. It creates a new key if it doesn't already exist in the resource bundle. It will use the project rules to determine what type of resource bundle to use (xliff, .properties, .java), and will create a new resource bundle if it does not exist.

Parameters:
context - The jdev xml context.
document - The xml document.
text - The text to which the key has to be found.
Returns:
The key for the given text.
Throws:
oracle.bali.xml.model.XmlCommitException - Exception thrown while commiting the data.

showChooserDialog

public static java.lang.String showChooserDialog(oracle.bali.xml.gui.jdev.JDevXmlContext context,
                                                 java.lang.String text)
This method returns a resource bundle expression for a given text. It creates a new key if it doesn't already exist in the resource bundle. It will use the project rules to determine what type of resource bundle to use (xliff, .properties, .java), and will create a new resource bundle if it does not exist.

Parameters:
context - The jdev xml context.
text - The text to which the key has to be found.
Returns:
The key for the given text, or null if the user cancels the dialog.
Throws:
oracle.bali.xml.model.XmlCommitException - Exception thrown while commiting the data.

getPanelKey

public static oracle.bali.xml.metadata.XmlKey getPanelKey()
This method returns the xml key for Applications Panel.

Returns:
XmlKey for Applications Panel.

isExpression

public static boolean isExpression(java.lang.String statement)

createMultiLineLabel

public static oracle.bali.ewt.text.MultiLineLabel createMultiLineLabel(java.lang.String text)
Create a multi line label suitable for using at the top of panels as instruction text.

Parameters:
text - text to display
Returns:
label that may wrap in the correct font etc.

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

E22562-02

Copyright © 2011 Oracle. All Rights Reserved.