|
Oracle Fusion Middleware extensions for Applications Core API Reference 11g Release 1 (11.1.2) E22562-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.apps.fnd.applcore.patterns.ui.util.PatternsUtil
public class PatternsUtil
Patterns Utility class for Applcore internal use only.
Constructor Summary | |
---|---|
PatternsUtil()
|
Method Summary | |
---|---|
static java.lang.String |
constructPageParamsForNav(java.lang.String pageParametersList)
|
static java.lang.String |
constructParamsForURL(java.util.Map parametersMap)
|
static java.lang.String |
constructParamStrFormMap(java.util.Map parametersMap)
|
static java.lang.Object |
evaluateEL(java.lang.String el)
|
static java.lang.String |
evaluateELStringInParamList(java.lang.String elString)
This api takes parameterList separated by semicolon and then evaluates each parameter value if it starts with #. |
static javax.faces.component.UIComponent |
findComponentById(javax.faces.component.UIComponent parent,
java.lang.String id)
Find a component by ID when parent and searched component are passed. |
static java.lang.Object |
findNodeByPropertyValue(org.apache.myfaces.trinidad.model.BaseMenuModel tree,
java.lang.String myVal,
java.lang.String myProp)
|
static ApplicationsMenuModel |
getActiveViewAppsMenuModel()
Gets the ApplicationsMenuModel for the current view |
static java.lang.String |
getAppsTableChildComponentAbsoluteId(oracle.adf.view.rich.component.fragment.UIXDeclarativeComponent appsComp,
java.lang.String componentId)
Returns the absolute id of the component inside the panelCollection of ApplicationsTable. |
static java.lang.String |
getAppsTableChildComponentAbsoluteId(oracle.adf.view.rich.component.fragment.UIXPageTemplate appsComp,
java.lang.String componentId)
Deprecated. replaced by getAppsTableChildComponentAbsoluteId(UIXDeclarativeComponent, String) |
static java.lang.String |
getAppsTreeChildComponentAbsoluteId(oracle.adf.view.rich.component.fragment.UIXDeclarativeComponent appsComp,
java.lang.String componentId)
Returns the absolute id of the component inside the panelCollection of ApplicationsTable. |
static java.lang.String |
getAppsTreeChildComponentAbsoluteId(oracle.adf.view.rich.component.fragment.UIXPageTemplate appsComp,
java.lang.String componentId)
Deprecated. replaced by getAppsTreeChildComponentAbsoluteId(UIXDeclarativeComponent, String) |
static java.lang.String |
getAttribute(java.lang.String attrName,
oracle.adf.view.rich.component.fragment.UIXDeclarativeComponent appsComponent)
Returns the attribute value of the attribute. |
static java.lang.String |
getAttribute(java.lang.String attrName,
oracle.adf.view.rich.component.fragment.UIXPageTemplate appsComponent)
Deprecated. replaced by #getAttribute(UIXDeclarativeComponent) |
static java.lang.String |
getComponentAbsoluteId(oracle.adf.view.rich.component.fragment.UIXDeclarativeComponent appsComp,
java.lang.String componentId)
Returns the absolute id of the component. |
static org.apache.myfaces.trinidad.model.BaseMenuModel |
getCurrentDistributedMenuModel(java.lang.String menuMode)
Get the most current Distributed Menu Model after checking security for the logged in user. |
static java.lang.String |
getCurrentUIShellWindowId()
|
static java.lang.String |
getDocumentRoot()
|
static ItemNode |
getFocusItemNode(org.apache.myfaces.trinidad.model.BaseMenuModel menuModel)
|
static org.apache.myfaces.trinidad.model.BaseMenuModel |
getNonSecuredDistributedMenuModel(java.lang.String menuMode)
Get the most current Distributed Menu Model without checking security for the logged in user. |
static javax.faces.component.UIComponent |
getParentByType(javax.faces.component.UIComponent child,
java.lang.Class parentType)
Searches the parent hierarchy of the child for UIComponent of type parentType. |
static javax.faces.component.UIComponent |
getParentByTypeAndId(javax.faces.component.UIComponent child,
java.lang.Class parentType,
java.lang.String id)
Searches the parent hierarchy of the child for UIComponent of type parentType and local id id. |
static SimpleMenuNode |
getPreferenceNode()
|
static java.util.List<ItemNode> |
getTasks(org.apache.myfaces.trinidad.model.XMLMenuModel menuModel)
|
static java.lang.String |
getViewId(org.apache.myfaces.trinidad.model.XMLMenuModel menuModel)
Get the View ID |
static java.lang.String |
getWebAppName(org.apache.myfaces.trinidad.model.XMLMenuModel menuModel)
Get the Web Application Name |
static void |
invokePopup(java.lang.String popupId)
Deprecated. As of ATGPF Drop5Prime, replaced by PatternsPublicUtil#invokePopup(String) |
static boolean |
isChangeIndicatorColumn(oracle.jbo.server.AttributeDefImpl attrDef)
Method for examining if an attribute is a unique key column |
static boolean |
isEditingUIShellTemplate(ApplSession applSession)
Determine whether the UIShell Template page is being edited. |
static boolean |
isHistoryColumn(oracle.jbo.server.AttributeDefImpl attrDef)
Method for examining if an attribute is a history column |
static boolean |
isHomePage()
|
static boolean |
isUniqueKeyColumn(oracle.jbo.server.AttributeDefImpl attrDef)
Method for examining if an attribute is a unique key column |
static void |
launchSaveWarningPopup(java.lang.String message)
|
static java.util.Map |
resolveKeyMap(java.lang.String keyList,
java.util.Map parametersMap)
Given parametersMap and list of key parameters, returns a new Map containing just the key-value pairs. |
static java.util.Map |
resolveParametersMap(java.lang.String parametersMapEL,
java.lang.String parametersList)
Merge parameter definitions and return a unified Map. |
static void |
setHomePageWindowTitle(java.lang.String taskTitle)
|
static void |
setWindowTitle(java.lang.String taskTitle)
|
static void |
setWindowTitle(java.lang.String tasklabel,
java.lang.String workAreaLabel)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PatternsUtil()
Method Detail |
---|
public static javax.faces.component.UIComponent getParentByType(javax.faces.component.UIComponent child, java.lang.Class parentType)
child
- instance of UIComponentparentType
- Class of the parent UIComponent to be searched in the parent Hierarchy
public static javax.faces.component.UIComponent getParentByTypeAndId(javax.faces.component.UIComponent child, java.lang.Class parentType, java.lang.String id)
child
- instance of UIComponent.parentType
- Class of the parent UIComponent to be searched in the
parent Hierarchy.id
- the local id of the component. DOes not take into account
naming containers.
public static void invokePopup(java.lang.String popupId)
PatternsPublicUtil#invokePopup(String)
popupId
- id of the popup to be invokedpublic static java.lang.String getAttribute(java.lang.String attrName, oracle.adf.view.rich.component.fragment.UIXDeclarativeComponent appsComponent)
attrName
- name of the attributeappsComponent
- UIXDeclarativeComponent containing the attribute.
public static java.lang.String getAttribute(java.lang.String attrName, oracle.adf.view.rich.component.fragment.UIXPageTemplate appsComponent)
#getAttribute(UIXDeclarativeComponent)
attrName
- name of the attributeappsComponent
- UIXPageTemplate containing the attribute.
public static java.lang.String getComponentAbsoluteId(oracle.adf.view.rich.component.fragment.UIXDeclarativeComponent appsComp, java.lang.String componentId)
appsComp
- UIXDeclarativeComponent containing the component.componentId
- of the component
public static java.lang.String getAppsTableChildComponentAbsoluteId(oracle.adf.view.rich.component.fragment.UIXDeclarativeComponent appsComp, java.lang.String componentId)
appsComp
- UIXDeclarativeComponent containing the component.componentId
- of the component
public static java.lang.String getAppsTableChildComponentAbsoluteId(oracle.adf.view.rich.component.fragment.UIXPageTemplate appsComp, java.lang.String componentId)
getAppsTableChildComponentAbsoluteId(UIXDeclarativeComponent, String)
public static java.lang.String getAppsTreeChildComponentAbsoluteId(oracle.adf.view.rich.component.fragment.UIXDeclarativeComponent appsComp, java.lang.String componentId)
appsComp
- UIXDeclarativeComponent containing the component.componentId
- of the component
public static java.lang.String getAppsTreeChildComponentAbsoluteId(oracle.adf.view.rich.component.fragment.UIXPageTemplate appsComp, java.lang.String componentId)
getAppsTreeChildComponentAbsoluteId(UIXDeclarativeComponent, String)
public static java.util.List<ItemNode> getTasks(org.apache.myfaces.trinidad.model.XMLMenuModel menuModel)
public static ItemNode getFocusItemNode(org.apache.myfaces.trinidad.model.BaseMenuModel menuModel)
public static java.lang.Object evaluateEL(java.lang.String el)
public static java.util.Map resolveParametersMap(java.lang.String parametersMapEL, java.lang.String parametersList)
parametersMapEL
- EL that represents a java.util.Map.parametersList
- delimited name value pairs. e.g. "a=b;c=d"
In addition, the value could be an EL. e.g. "a=b;c=#{SomeEL.someProperty}"
public static java.util.Map resolveKeyMap(java.lang.String keyList, java.util.Map parametersMap)
keyList
- subset of keys of the parametersMap, or key-value pairs,
delimited by semi-colon.
For example, "param1;param2=value2".parametersMap
- original Map of parameters
public static boolean isEditingUIShellTemplate(ApplSession applSession)
applSession
- current ApplSession instance
public static boolean isHistoryColumn(oracle.jbo.server.AttributeDefImpl attrDef)
attrDef
- Attribute Definition
public static boolean isUniqueKeyColumn(oracle.jbo.server.AttributeDefImpl attrDef)
attrDef
- Attribute Definition
public static boolean isChangeIndicatorColumn(oracle.jbo.server.AttributeDefImpl attrDef)
attrDef
- Attribute Definition
public static void setWindowTitle(java.lang.String taskTitle)
public static void setWindowTitle(java.lang.String tasklabel, java.lang.String workAreaLabel)
public static java.lang.String constructPageParamsForNav(java.lang.String pageParametersList)
public static java.lang.String getViewId(org.apache.myfaces.trinidad.model.XMLMenuModel menuModel)
menuModel
-
public static javax.faces.component.UIComponent findComponentById(javax.faces.component.UIComponent parent, java.lang.String id)
parent
- UIComponent Objectid
- String value
public static java.lang.Object findNodeByPropertyValue(org.apache.myfaces.trinidad.model.BaseMenuModel tree, java.lang.String myVal, java.lang.String myProp)
public static java.lang.String getDocumentRoot()
public static org.apache.myfaces.trinidad.model.BaseMenuModel getCurrentDistributedMenuModel(java.lang.String menuMode)
menuMode
- It takes one of the three values: PatternsConstants.HOMEPAGE_MENU_MODEL
for returning menu model for Home Page, PatternsConstants.NAVIGATOR_MENU_MODEL
for returning menu model for Navigator, PatternsConstants.PREFERENCES_MENU_MODEL
for returning menu model for Preferences.
public static java.lang.String getWebAppName(org.apache.myfaces.trinidad.model.XMLMenuModel menuModel)
menuModel
-
public static java.lang.String constructParamsForURL(java.util.Map parametersMap)
public static java.lang.String constructParamStrFormMap(java.util.Map parametersMap)
public static void setHomePageWindowTitle(java.lang.String taskTitle)
public static SimpleMenuNode getPreferenceNode()
public static ApplicationsMenuModel getActiveViewAppsMenuModel()
public static org.apache.myfaces.trinidad.model.BaseMenuModel getNonSecuredDistributedMenuModel(java.lang.String menuMode)
menuMode
- It takes one of the three values: PatternsConstants.HOMEPAGE_MENU_MODEL
for returning menu model for Home Page, PatternsConstants.NAVIGATOR_MENU_MODEL
for returning menu model for Navigator, PatternsConstants.PREFERENCES_MENU_MODEL
for returning menu model for Preferences.
public static java.lang.String getCurrentUIShellWindowId()
public static void launchSaveWarningPopup(java.lang.String message)
public static java.lang.String evaluateELStringInParamList(java.lang.String elString)
elString
-
public static boolean isHomePage()
|
Oracle Fusion Middleware extensions for Applications Core API Reference 11g Release 1 (11.1.2) E22562-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |