public static interface IDialogService.Dialog
extends org.apache.wicket.util.io.IClusterable
Modifier and Type | Method and Description |
---|---|
org.apache.wicket.Component |
getComponent() |
org.apache.wicket.util.value.IValueMap |
getProperties()
Properties that determine how the dialog is rendered.
|
org.apache.wicket.model.IModel<String> |
getTitle()
The title of the dialog.
|
default void |
onCancelFromCloseButton()
Invoked when the built-in close button (X) is clicked.
|
void |
onClose()
Invoked when the dialog is closed.
|
void |
render(PluginRequestTarget target)
Part of the pre-rendering registration.
|
void |
setDialogService(IDialogService service)
When the dialog is shown (
IDialogService.show(Dialog) ), the
dialog service is injected into the dialog. |
void setDialogService(IDialogService service)
IDialogService.show(Dialog)
), the
dialog service is injected into the dialog.void render(PluginRequestTarget target)
Implementations must invoke IRenderService.render(PluginRequestTarget)
on render services that contribute to the wicket component hierarchy.
org.apache.wicket.Component getComponent()
org.apache.wicket.model.IModel<String> getTitle()
void onClose()
IDialogService.close()
.org.apache.wicket.util.value.IValueMap getProperties()
default void onCancelFromCloseButton()
ScriptAction
in
Dialog.onClose()
we have to inform the dialog that it is actually
cancelled, before closing it.
A default implementation is provided to maintain backwards compatibility with custom dialogs that directly
implement interface Dialog
instead of extending class Dialog
.
Copyright © 2007–2019 Hippo B.V. (http://www.onehippo.com). All rights reserved.