Package org.hippoecm.frontend.dialog
Class DialogManager<ModelType>
- java.lang.Object
-
- org.hippoecm.frontend.dialog.DialogManager<ModelType>
-
- All Implemented Interfaces:
Serializable
,org.apache.wicket.model.IDetachable
,org.apache.wicket.util.io.IClusterable
public class DialogManager<ModelType> extends Object implements org.apache.wicket.model.IDetachable
Base manager for showing a dialog.To open a dialog, the frontend requests a URL that is generated by the
DialogBehavior
. This request can contain the following two request-parameters to pass data to the dialog:- dialogConfig: an object containing configuration properties for the dialog
- dialogContext: an object containing properties that describe the context in which the dialog is opened
- Nested properties are ignored
- Text values are parsed as a String
- Boolean values are parsed as a Boolean
- Arrays are parsed as a String arrays
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DialogManager(IPluginContext context, IPluginConfig config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
beforeShowDialog(Map<String,String> parameters)
protected Dialog<ModelType>
createDialog(IPluginContext context, IPluginConfig config, Map<String,String> parameters)
protected IPluginConfig
createPluginConfig(IPluginConfig template, IPluginConfig context)
void
detach()
DialogBehavior
getBehavior()
void
setCancelAction(ScriptAction<ModelType> cancelAction)
void
setCloseAction(ScriptAction<ModelType> closeAction)
-
-
-
Constructor Detail
-
DialogManager
public DialogManager(IPluginContext context, IPluginConfig config)
-
-
Method Detail
-
getBehavior
public DialogBehavior getBehavior()
-
createDialog
protected Dialog<ModelType> createDialog(IPluginContext context, IPluginConfig config, Map<String,String> parameters)
-
createPluginConfig
protected IPluginConfig createPluginConfig(IPluginConfig template, IPluginConfig context)
-
setCancelAction
public void setCancelAction(ScriptAction<ModelType> cancelAction)
-
setCloseAction
public void setCloseAction(ScriptAction<ModelType> closeAction)
-
detach
public void detach()
- Specified by:
detach
in interfaceorg.apache.wicket.model.IDetachable
-
-