public abstract class DialogService extends Object
Constructor and Description |
---|
DialogService() |
Modifier and Type | Method and Description |
---|---|
abstract javax.faces.component.UIComponent |
getCurrentLaunchSource()
The direct use of this API is reserved for an interface between layers of the Fusion stack
and should not be directly called by an application.
|
abstract Map<String,Object> |
getInitialDialogParameters()
The direct use of this API is reserved for an interface between layers of the Fusion stack and should not be directly called by an application.
|
abstract org.apache.myfaces.trinidad.event.ReturnEvent |
getReturnEvent(javax.faces.component.UIComponent source)
Deprecated.
For internal use only and only exposed in support of the legacy Trinidad dialog framework API.
|
abstract boolean |
isDialogInNewWindow()
The direct use of this API is reserved for an interface between layers of the Fusion stack and
should not be directly called by an application.
|
abstract void |
launchDialog(javax.faces.component.UIViewRoot dialogRoot,
Map<String,Object> dialogParameters,
javax.faces.component.UIComponent source,
boolean useWindow,
Map<String,Object> windowProperties)
Launches a dialog without pushing a process scope.
|
abstract javax.faces.component.UIViewRoot |
peekView()
Deprecated.
For internal use only and only exposed in support of the legacy Trinidad dialog framework API.
When ADFc page flows are in the runtime classpath, this is non-functional. Note: the JDEV compile time classpath will
not be the same as the runtime classpath with the Fusion stack running under Weblogic Server (WLS).
|
abstract void |
popView(boolean navigateToPopped)
Deprecated.
For internal use only and only exposed in support of the legacy Trinidad dialog framework API.
When ADFc page flows are in the runtime classpath, this is non-functional. Note: the JDEV compile time classpath will
not be the same as the runtime classpath with the Fusion stack running under Weblogic Server (WLS).
|
abstract void |
pushView(javax.faces.component.UIViewRoot viewRoot)
Deprecated.
For internal use only and only exposed in support of the legacy Trinidad dialog framework API.
When ADFc page flows are in the runtime classpath, this is non-functional. Note: the JDEV compile time classpath will
not be the same as the runtime classpath with the Fusion stack running under Weblogic Server (WLS).
|
abstract void |
queueLaunchEvent(javax.faces.component.UIViewRoot dialogRoot)
The direct use of this API is reserved for an interface between layers of the Fusion stack and
should not be directly called by an application.
|
abstract void |
queueNewWindowLaunchEvent(String viewId)
The direct use of this API is reserved for an interface between layers of the Fusion stack and
should not be directly called by an application.
|
abstract void |
queueReturnEvent(Object returnValue,
Map<Object,Object> returnParams)
The direct use of this API is reserved for an interface between layers of the Fusion stack and
should not be directly called by an application.
|
abstract boolean |
returnFromDialog(Object returnValue,
Map<Object,Object> returnParameters)
Returns from a dialog without popping a process scope.
|
abstract void |
setCurrentLaunchSource(javax.faces.component.UIComponent component)
Deprecated.
|
@Deprecated public abstract void pushView(javax.faces.component.UIViewRoot viewRoot)
viewRoot
- the UI View root@Deprecated public abstract void popView(boolean navigateToPopped)
navigateToPopped
- Whether to navigate to the popup.@Deprecated public abstract javax.faces.component.UIViewRoot peekView()
@Deprecated public abstract org.apache.myfaces.trinidad.event.ReturnEvent getReturnEvent(javax.faces.component.UIComponent source)
ReturnEvent
for
a component. This method will generally be called from
a Renderer's or UIComponent's decode() method if there is
any possibility that it launched a dialog on a prior request.
There is no requirement that the component directly supports
ReturnListener
; decode()
can simply use the return value and discard the event.
This method will return null in the case where no dialog had been launched with this component as the source. If it returns a non-null event, the component or renderer should not process the request any further in decode(), but simply process the ReturnEvent, either by using its return value or queueing it for delivery.
source
- the component that may have launched a dialogreturn value
from the
dialog.public abstract javax.faces.component.UIComponent getCurrentLaunchSource()
The direct use of this API is reserved for an interface between layers of the Fusion stack and should not be directly called by an application.
setCurrentLaunchSource(javax.faces.component.UIComponent)
.@Deprecated public abstract void setCurrentLaunchSource(javax.faces.component.UIComponent component)
component
- the UI Component.public abstract void launchDialog(javax.faces.component.UIViewRoot dialogRoot, Map<String,Object> dialogParameters, javax.faces.component.UIComponent source, boolean useWindow, Map<String,Object> windowProperties)
AdfFacesContext.launchDialog()
.
The process scope must be pushed
before calling this method.dialogRoot
- the dialog root.dialogParameters
- map of dialog paramaters.source
- the source UI component.useWindow
- whether to use a window.windowProperties
- map of window properties.public abstract boolean returnFromDialog(Object returnValue, Map<Object,Object> returnParameters)
AdfFacesContext.returnFromDialog()
.
The process scope must be popped
after calling this method.returnValue
- the return value.returnParameters
- map of return parameters.public abstract void queueLaunchEvent(javax.faces.component.UIViewRoot dialogRoot)
The direct use of this API is reserved for an interface between layers of the Fusion stack and should not be directly called by an application.
Queues a LaunchEvent that will result in a dialog being started, using
current launch source
as the source
for launching the dialogRoot parameter.
The process scope must be pushed
before calling this method. If getCurrentLaunchSource()
returns null
, a basic dialog will be started without
using a window or passing any additional parameters. Developers
should not call
FacesContext.setViewRoot()
when using this method.
dialogRoot
- the UI voew root for the dialog.public abstract void queueReturnEvent(Object returnValue, Map<Object,Object> returnParams)
The direct use of this API is reserved for an interface between layers of the Fusion stack and should not be directly called by an application.
Queues a ReturnEvent, using
current launch source
as the source
for launching the dialogRoot parameter. This method should
be used by a NavigationHandler
that can identify
a return value from a dialog without actually launching the dialog.
returnValue
- the return value.returnParams
- map of return paramaters.public abstract boolean isDialogInNewWindow()
The direct use of this API is reserved for an interface between layers of the Fusion stack and should not be directly called by an application.
Returns true if the dialog that is currently being launched will be displayed in a new window. This may be affected either by agent metadata or component properties.
public abstract void queueNewWindowLaunchEvent(String viewId)
The direct use of this API is reserved for an interface between layers of the Fusion stack and should not be directly called by an application.
Begins the process of launching a dialog in a new window by queuing a LaunchEvent. This method may only be called if isDialogInNewWindow() returned true. Developers should not typically not call this method; the caller of this method is responsible for ensuring that when the dialog is shown, a new page flow scope is created, getInitialDialogParameters() is called, and the Map returned from getInitialDialogParameters() is added to the new page flow scope.
viewId
- the view id.public abstract Map<String,Object> getInitialDialogParameters()
The direct use of this API is reserved for an interface between layers of the Fusion stack and should not be directly called by an application.
Returns a Map of objects that should be entered into page flow scope. Any code that invokes queueNewWindowLaunchEvent() must ensure that getInitialDialogParameters() is called when that viewId is eventually shown, and all values returned are moved into the page flow scope.