|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectoracle.adf.view.faces.context.AdfFacesContext
Context class for all per-request and per-webapp information
required by ADF Faces. A AdfFacesContext object can be
retrieved with the static getCurrentInstance() method.
There is one and only one AdfFacesContext object
active in any one thread.
This class does not extend FacesContext; this is intentional,
as extending FacesContext requires taking over the
FacesContextFactory.
| Field Summary | |
static java.lang.String |
VARIABLE_NAME
Name of the EL implicit variable ("adfFacesContext") that is used to expose this context object. |
| Constructor Summary | |
protected |
AdfFacesContext()
Creates an AdfFacesContext. |
| Method Summary | |
abstract void |
addPartialTarget(UIComponent newTarget)
Add a component as a partial target. |
abstract void |
addPartialTriggerListeners(UIComponent listener,
java.lang.String[] trigger)
Adds a listener on a set of particular triggering components. |
void |
attach()
Attaches a AdfFacesContext to the current thread. |
abstract java.lang.String |
getAccessibilityMode()
Returns the name of the current accessibility mode. |
abstract Agent |
getAgent()
Returns the Agent information for the current context |
abstract ChangeManager |
getChangeManager()
Gets the ChangeManager for the current application. |
abstract java.util.Map |
getColorPalette()
Returns a Map that takes color palette names as keys, and returns the color palette as a result. |
abstract java.lang.String |
getCurrencyCode()
Return the ISO 4217 currency code used by default for formatting currency fields when those fields do not specify an explicit currency field via their converter. |
static AdfFacesContext |
getCurrentInstance()
Retrieves the AdfFacesContext active for the current thread. |
abstract char |
getDecimalSeparator()
Return the separator used as the decimal point. |
abstract DialogService |
getDialogService()
Returns an DialogService, which exposes a number of APIs needed by component and framework developers. |
abstract java.util.Map |
getFormatter()
Returns a Map that performs message formatting with a recursive Map structure. |
abstract java.util.Map |
getHelpSystem()
Returns a Map that will accept help system properties as keys, and return an URL as a result. |
abstract java.util.Map |
getHelpTopic()
Returns a Map that will accept topic names as keys, and return an URL as a result. |
abstract char |
getNumberGroupingSeparator()
Return the separator used for groups of numbers. |
abstract java.lang.String |
getOracleHelpServletUrl()
Return the URL to an Oracle Help for the Web servlet. |
abstract java.lang.String |
getOutputMode()
Returns the "output mode" - printable, etc. |
abstract java.util.Map |
getProcessScope()
Returns a Map of objects at "process" scope. |
abstract RegionManager |
getRegionManager()
Gets the RegionManager for the current application. |
abstract java.lang.String |
getSkinFamily()
Returns the name of the preferred skin family. |
abstract java.util.TimeZone |
getTimeZone()
Returns the default TimeZone used for interpreting and formatting date values. |
abstract int |
getTwoDigitYearStart()
Returns the year offset for parsing years with only two digits. |
abstract UploadedFileProcessor |
getUploadedFileProcessor()
|
abstract boolean |
isClientValidationDisabled()
Returns true if client-side validation should be disabled. |
abstract boolean |
isDebugOutput()
Returns true if output should contain debugging information. |
abstract boolean |
isPostback()
Returns true if JSF is currently processing a postback request. |
abstract boolean |
isRightToLeft()
Returns true if the user should be shown output in right-to-left. |
abstract void |
launchDialog(UIViewRoot dialogRoot,
java.util.Map dialogParameters,
UIComponent source,
boolean useWindow,
java.util.Map windowProperties)
Launch a dialog, optionally raising it in a new dialog window. |
abstract void |
partialUpdateNotify(UIComponent updated)
Called when any component gets updated. |
void |
release()
Releases the AdfFacesContext object. |
abstract void |
returnFromDialog(java.lang.Object returnValue,
java.util.Map returnParameters)
Returns from a dialog raised by a UIXCommand component,
or any component implementing
DialogSource,
or any direct calls to launchDialog(). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String VARIABLE_NAME
| Constructor Detail |
protected AdfFacesContext()
AdfFacesContextFactory| Method Detail |
public static AdfFacesContext getCurrentInstance()
public abstract java.util.Map getProcessScope()
public abstract void returnFromDialog(java.lang.Object returnValue,
java.util.Map returnParameters)
UIXCommand component,
or any component implementing
DialogSource,
or any direct calls to launchDialog().
returnValue - the value to be delivered in the the ReturnEventReturnEventpublic abstract DialogService getDialogService()
public abstract void launchDialog(UIViewRoot dialogRoot,
java.util.Map dialogParameters,
UIComponent source,
boolean useWindow,
java.util.Map windowProperties)
The dialog will receive a new processScope map,
which includes all the values of the currently available processScope
as well as a set of properties passed to this function in
the dialogParameters map. Changes to this newly
created scope will not be visible once the dialog returns.
dialogRoot - the UIViewRoot for the page being launcheddialogParameters - a set of parameters to populate the
newly created processScopesource - the UIComponent that launched the dialog and
should receive the ReturnEvent
when the dialog is complete.useWindow - if true, use a popup window for the dialog
if available on the current user agent devicewindowProperties - the set of UI parameters used to
modify the window, if one is used. The set of properties that\
are supported will depend on the RenderKit, but
common examples include "width" and "height".public abstract boolean isPostback()
isPostback() will return false if this is a request
for an initial render of a page (that is, if Apply Request Values
never executes), or if during the request the user is navigated
to a different page (because of a navigation rule, etc). For
example, during a request that results in a navigation to a new
page, isPostback() will return true from Apply
Request Values to Invoke Application, then false afterwards;
whereas if there was no navigation, it would return true
The value of this method is undefined during (or before) the Restore View phase, but can be used in the afterPhase() method of a PhaseListener for Restore View.
public abstract boolean isDebugOutput()
public abstract boolean isClientValidationDisabled()
public abstract java.lang.String getOutputMode()
public abstract java.lang.String getSkinFamily()
public abstract java.lang.String getAccessibilityMode()
public abstract boolean isRightToLeft()
public abstract char getNumberGroupingSeparator()
public abstract char getDecimalSeparator()
public abstract java.lang.String getCurrencyCode()
public abstract int getTwoDigitYearStart()
1950
This is used by @link{oracle.adf.faces.view.converter.DateTimeConverter}
while converting strings to Date object.
public abstract java.lang.String getOracleHelpServletUrl()
public abstract java.util.Map getHelpTopic()
public abstract java.util.Map getHelpSystem()
public abstract java.util.TimeZone getTimeZone()
public abstract ChangeManager getChangeManager()
public abstract RegionManager getRegionManager()
public abstract void addPartialTarget(UIComponent newTarget)
public abstract void addPartialTriggerListeners(UIComponent listener,
java.lang.String[] trigger)
public abstract void partialUpdateNotify(UIComponent updated)
public abstract UploadedFileProcessor getUploadedFileProcessor()
public abstract java.util.Map getColorPalette()
public abstract java.util.Map getFormatter()
public abstract Agent getAgent()
public void release()
public void attach()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||