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
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:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
beforeShowDialog
(Map<String, String> parameters) createDialog
(IPluginContext context, IPluginConfig config, Map<String, String> parameters) protected IPluginConfig
createPluginConfig
(IPluginConfig template, IPluginConfig context) void
detach()
void
setCancelAction
(ScriptAction<ModelType> cancelAction) void
setCloseAction
(ScriptAction<ModelType> closeAction)
-
Constructor Details
-
DialogManager
-
-
Method Details
-
getBehavior
-
beforeShowDialog
-
createDialog
protected Dialog<ModelType> createDialog(IPluginContext context, IPluginConfig config, Map<String, String> parameters) -
createPluginConfig
-
setCancelAction
-
setCloseAction
-
detach
public void detach()- Specified by:
detach
in interfaceorg.apache.wicket.model.IDetachable
-