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

E22562-01

oracle.apps.fnd.applcore.trees.ui.util
Class UIHierarchyUtils

java.lang.Object
  extended by oracle.apps.fnd.applcore.trees.ui.util.UIHierarchyUtils

public final class UIHierarchyUtils
extends java.lang.Object

Utility class for Hierarchy UI's.

Author:
Abhay K Kumar <abhay.k.kumar&064;oracle.com>

Method Summary
static void displayHierarchyConfirmationMessage(java.lang.String confirmHeader, java.lang.String confirmText)
          Display the confirmation message for given message header and text string.
static void displayHierarchyErrorMessage(java.lang.String errMsg)
          Display the error message for given message string.
static void displayHierarchyWarningMessage(java.lang.String warnMsg)
          Display the warning message for given message string.
static java.lang.Object evaluateExpr(java.lang.String pExpr, java.lang.Class pClass)
          Evalutates the given expression
static javax.faces.component.UIComponent findComponent(javax.faces.component.UIComponent component, java.lang.String componentType)
          Find the component for the Hierarchy Declarative component.
static oracle.adf.view.rich.component.fragment.UIXDeclarativeComponent findHierarchyDC(java.lang.String hierarchyId)
          Search the hierarchy Declarative component.
static javax.faces.component.UIComponent findHierarchyTreeComponent(javax.faces.component.UIComponent component)
          Find the tree component for the Hierarchy Declarative component.
static java.lang.String getHierarchyMessage(java.lang.String pRbKey)
          Returns a translated String based on the given key from the run tree bundle
static java.lang.String getHierarchyMessage(java.lang.String pRbKey, java.lang.Object... pTokens)
          Returns a translated String based on the given key from the run tree bundle
static java.lang.String getMessage(java.lang.String pRbKey)
          Returns a translated String based on the given key from the run tree bundle
static java.lang.String getMessage(java.lang.String pRbKey, java.lang.Object... pTokens)
          Returns a translated String based on the given key from the run tree bundle
static java.io.File getRootDirectory()
          Gets the root Directory for Web- context -root (public_html).
static java.lang.String getTranslatedLabel(java.lang.String pRbName, java.lang.String pRbKey, java.lang.Object... pTokens)
          Returns the translated String from the given resource bundle with the given key and token values.
static java.lang.Object invokeEL(java.lang.String el, java.lang.Class[] paramTypes, java.lang.Object[] params)
          Programmatic invocation of a method that an EL evaluates to.
static boolean isPortletRequest()
          Check whether it is a portlet environment or servlet environment.
static void launchHierarchyDialogPage(java.lang.String dialogPage)
          Programmatically launch the passed page name as Dialog page.
static void setActionExpression(javax.faces.event.ActionEvent actionEvent, java.lang.String actionMethod)
          Sets the ActionExpression for the given Action Source programmatically.
static void setPickedNodeValue(PickedNode pickedNode, org.apache.myfaces.trinidad.component.UIXSelectOne selectChoice)
           
static void showPopup(oracle.adf.view.rich.component.rich.RichPopup popupDialog)
          Prepares the script to render a pop up dynamically.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

launchHierarchyDialogPage

public static void launchHierarchyDialogPage(java.lang.String dialogPage)
Programmatically launch the passed page name as Dialog page.

Parameters:
dialogPage - Name of the page which should be launched as dialog

displayHierarchyErrorMessage

public static void displayHierarchyErrorMessage(java.lang.String errMsg)
Display the error message for given message string.

Parameters:
errMsg - Error message to be displayed

displayHierarchyWarningMessage

public static void displayHierarchyWarningMessage(java.lang.String warnMsg)
Display the warning message for given message string.

Parameters:
warnMsg - Warning message to be displayed

displayHierarchyConfirmationMessage

public static void displayHierarchyConfirmationMessage(java.lang.String confirmHeader,
                                                       java.lang.String confirmText)
Display the confirmation message for given message header and text string.

Parameters:
confirmHeader - Confirmation Header message to be displayed
confirmText - Confirmation Text Message to be displayed

setActionExpression

public static void setActionExpression(javax.faces.event.ActionEvent actionEvent,
                                       java.lang.String actionMethod)
Sets the ActionExpression for the given Action Source programmatically.

Parameters:
actionEvent - Action Event assoicated with the Source
actionMethod - Method Expression which sneed to be set as action

findHierarchyDC

public static oracle.adf.view.rich.component.fragment.UIXDeclarativeComponent findHierarchyDC(java.lang.String hierarchyId)
Search the hierarchy Declarative component.

Parameters:
hierarchyId - as String
Returns:
the Hierarchy Component as UIXDeclarativeComponent

findComponent

public static javax.faces.component.UIComponent findComponent(javax.faces.component.UIComponent component,
                                                              java.lang.String componentType)
Find the component for the Hierarchy Declarative component.

Parameters:
component - passed in UIComponent as parent
Returns:
treeComponent if found

findHierarchyTreeComponent

public static javax.faces.component.UIComponent findHierarchyTreeComponent(javax.faces.component.UIComponent component)
Find the tree component for the Hierarchy Declarative component.

Parameters:
component - passed in UIComponent as parent
Returns:
treeComponent if found

getRootDirectory

public static java.io.File getRootDirectory()
Gets the root Directory for Web- context -root (public_html).

Returns:
the File corresponding to Rott Directory

isPortletRequest

public static boolean isPortletRequest()
Check whether it is a portlet environment or servlet environment.

Returns:
true if it is running in porlet environment.

showPopup

public static void showPopup(oracle.adf.view.rich.component.rich.RichPopup popupDialog)
Prepares the script to render a pop up dynamically.

Parameters:
popupDialog - the Popup Dailog component

evaluateExpr

public static java.lang.Object evaluateExpr(java.lang.String pExpr,
                                            java.lang.Class pClass)
Evalutates the given expression


getTranslatedLabel

public static java.lang.String getTranslatedLabel(java.lang.String pRbName,
                                                  java.lang.String pRbKey,
                                                  java.lang.Object... pTokens)
Returns the translated String from the given resource bundle with the given key and token values.

Parameters:
pRbName - fully qualified name of the resource bundle. This could be a XLIFF resource bundle or a Java resource bundle.
pRbKey - key for the resource in the bundle
pTokens - any tokens for the resource that need to be substituted.
Returns:
the translated String value from the resource bundle with the given key and token values.

getMessage

public static java.lang.String getMessage(java.lang.String pRbKey)
Returns a translated String based on the given key from the run tree bundle

Parameters:
pRbKey - key for the resource in the bundle
Returns:
the translated String value from the resource bundle with the given key and token values.

getMessage

public static java.lang.String getMessage(java.lang.String pRbKey,
                                          java.lang.Object... pTokens)
Returns a translated String based on the given key from the run tree bundle

Parameters:
pRbKey - key for the resource in the bundle
pTokens - any tokens for the resource that need to be substituted.
Returns:
the translated String value from the resource bundle with the given key and token values.

getHierarchyMessage

public static java.lang.String getHierarchyMessage(java.lang.String pRbKey)
Returns a translated String based on the given key from the run tree bundle

Parameters:
pRbKey - key for the resource in the bundle
Returns:
the translated String value from the resource bundle with the given key and token values.

getHierarchyMessage

public static java.lang.String getHierarchyMessage(java.lang.String pRbKey,
                                                   java.lang.Object... pTokens)
Returns a translated String based on the given key from the run tree bundle

Parameters:
pRbKey - key for the resource in the bundle
pTokens - any tokens for the resource that need to be substituted.
Returns:
the translated String value from the resource bundle with the given key and token values.

setPickedNodeValue

public static void setPickedNodeValue(PickedNode pickedNode,
                                      org.apache.myfaces.trinidad.component.UIXSelectOne selectChoice)

invokeEL

public static java.lang.Object invokeEL(java.lang.String el,
                                        java.lang.Class[] paramTypes,
                                        java.lang.Object[] params)
Programmatic invocation of a method that an EL evaluates to.

Parameters:
el - EL of the method to invoke
paramTypes - Array of Class defining the types of the parameters
params - Array of Object defining the values of the parametrs
Returns:
Object that the method returns

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

E22562-01

Copyright © 2011 Oracle. All Rights Reserved.