org.apache.shale.dialog
Class DialogHelper

java.lang.Object
  extended by org.apache.shale.dialog.DialogHelper

public final class DialogHelper
extends Object

Helper class that provides static accessor methods for key objects provided by the Dialog Manager module.

Since:
1.1.0

Method Summary
static DialogContext getDialogContext()
          Return the active DialogContext instance for the current request, if any; otherwise, return null.
static DialogContext getDialogContext(javax.faces.context.FacesContext context)
          Return the active DialogContext instance for the current request, if any; otherwise, return null.
static DialogContextManager getDialogContextManager()
          Return the DialogContextManager instance for the current user, creating it first if necessary.
static DialogContextManager getDialogContextManager(javax.faces.context.FacesContext context)
          Return the DialogContextManager instance for the current user, creating it first if necessary.
static Object getDialogData()
          Return the data property of the active DialogContext instance for the current request, if any; otherwise, return null.
static Object getDialogData(javax.faces.context.FacesContext context)
          Return the data property of the active DialogContext instance for the current request, if any; otherwise, return null.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDialogData

public static Object getDialogData()

Return the data property of the active DialogContext instance for the current request, if any; otherwise, return null.


getDialogData

public static Object getDialogData(javax.faces.context.FacesContext context)

Return the data property of the active DialogContext instance for the current request, if any; otherwise, return null.

Parameters:
context - FacesContext for the current request

getDialogContext

public static DialogContext getDialogContext()

Return the active DialogContext instance for the current request, if any; otherwise, return null.


getDialogContext

public static DialogContext getDialogContext(javax.faces.context.FacesContext context)

Return the active DialogContext instance for the current request, if any; otherwise, return null.

Parameters:
context - FacesContext for the current request

getDialogContextManager

public static DialogContextManager getDialogContextManager()

Return the DialogContextManager instance for the current user, creating it first if necessary.


getDialogContextManager

public static DialogContextManager getDialogContextManager(javax.faces.context.FacesContext context)

Return the DialogContextManager instance for the current user, creating it first if necessary.

Parameters:
context - FacesContext for the current request


Copyright © 2004-2007 Apache Software Foundation. All Rights Reserved.