|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.cms.gui.dialog.DialogFactory
public final class DialogFactory
Factory for dialogs. This class handles the registration of native dialogs mantaing a map of (control name | dialog class).
Method Summary | |
---|---|
static DialogButton |
getDialogButtonInstance(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Content storageNode,
Content configNode)
|
static DialogButtonSet |
getDialogButtonSetInstance(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Content storageNode,
Content configNode)
|
static DialogControl |
getDialogControlInstanceByName(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Content storageNode,
Content configNode,
java.lang.String controlType)
Get a instance by the control type name. |
static DialogEdit |
getDialogEditInstance(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Content storageNode,
Content configNode)
|
static DialogHidden |
getDialogHiddenInstance(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Content storageNode,
Content configNode)
|
static DialogInclude |
getDialogIncludeInstance(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Content storageNode,
Content configNode)
|
static Dialog |
getDialogInstance(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Content storageNode,
Content configNode)
|
static DialogPassword |
getDialogPasswordInstance(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Content storageNode,
Content configNode)
|
static DialogSelect |
getDialogSelectInstance(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Content storageNode,
Content configNode)
|
static DialogStatic |
getDialogStaticInstance(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Content storageNode,
Content configNode)
|
static DialogControl |
loadDialog(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Content storageNode,
Content configNode)
Load and initialize a dialog. |
static void |
registerDialog(java.lang.String name,
java.lang.Class<DialogControl> dialogClass)
Register a new dialog. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void registerDialog(java.lang.String name, java.lang.Class<DialogControl> dialogClass)
name
- dialog name (e.g. "richEdit")dialogClass
- implementing class. Must implements info.magnolia.cms.gui.dialog.DialogControl
DialogControl
public static DialogControl loadDialog(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Content storageNode, Content configNode) throws javax.jcr.RepositoryException
storageNode
- current website nodeconfigNode
- configuration node for the dialog. The type of the dialog is read from the "controlType"
nodeData
javax.jcr.RepositoryException
- for errors during initialization of dialog with repository datapublic static Dialog getDialogInstance(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Content storageNode, Content configNode) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public static DialogStatic getDialogStaticInstance(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Content storageNode, Content configNode) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public static DialogHidden getDialogHiddenInstance(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Content storageNode, Content configNode) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public static DialogEdit getDialogEditInstance(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Content storageNode, Content configNode) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public static DialogButton getDialogButtonInstance(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Content storageNode, Content configNode) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public static DialogPassword getDialogPasswordInstance(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Content storageNode, Content configNode) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public static DialogButtonSet getDialogButtonSetInstance(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Content storageNode, Content configNode) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public static DialogInclude getDialogIncludeInstance(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Content storageNode, Content configNode) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public static DialogSelect getDialogSelectInstance(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Content storageNode, Content configNode) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public static DialogControl getDialogControlInstanceByName(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Content storageNode, Content configNode, java.lang.String controlType) throws javax.jcr.RepositoryException
request
- response
- storageNode
- the node holding the data (can be null)configNode
- the node holding the configuration (can be null)controlType
- the name of the control
javax.jcr.RepositoryException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |