public abstract class AbstractDialogPane<T>
extends org.apache.wicket.markup.html.panel.GenericPanel<T>
| Modifier and Type | Field and Description |
|---|---|
protected static String |
ACTION_BUTTON_ID |
protected boolean |
autoClose
Dialog autoclose request
|
protected static String |
BUTTON_PREFIX |
protected static String |
CANCEL_BUTTON_ID |
protected org.apache.wicket.event.IEventSink |
eventTarget
Target of the close action
|
protected org.apache.wicket.markup.html.form.Form<?> |
form
Dialog form
|
protected org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow |
modalWindow
Dialog modal window
|
protected org.apache.wicket.markup.repeater.RepeatingView |
repeater
Dialog repeater
|
protected static String |
REPEATER_ID |
ENABLE, FLAG_AFTER_RENDERING, FLAG_INITIALIZED, FLAG_PREPARED_FOR_RENDER, FLAG_REMOVING_FROM_HIERARCHY, FLAG_RENDERING, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED8, PARENT_PATH, PATH_SEPARATOR, RENDER, RFLAG_CONTAINER_DEQUEING| Constructor and Description |
|---|
AbstractDialogPane(org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow modalWindow,
org.apache.wicket.model.IModel<? super T> model,
boolean autoClose) |
| Modifier and Type | Method and Description |
|---|---|
void |
close(org.apache.wicket.ajax.AjaxRequestTarget target)
Close the modal window
|
void |
close(UjoEvent target)
Close the modal window
|
protected void |
closeForm(org.apache.wicket.ajax.AjaxRequestTarget target,
org.apache.wicket.markup.html.form.Form<?> form)
Close action
|
protected org.apache.wicket.ajax.markup.html.form.AjaxButton |
createActionButton(String id,
String propertyName)
Creates the default Confirmation button
|
protected org.apache.wicket.ajax.markup.html.form.AjaxButton |
createCancelButton(String id,
String propertyName)
Creates the default Cancel button
|
String |
getAction()
Action code
|
T |
getBaseModelObject()
Returns a base model object / entity
|
protected org.apache.wicket.model.IModel<String> |
getButtonModel(String propertyName)
Get Save button key key
|
org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow |
getModalWindow()
Returns modal WIndow
|
org.apache.wicket.event.IEventSink |
getTarget()
Target of the close action
|
protected void |
onInitialize()
Initialization
|
protected void |
onShowBefore(org.apache.wicket.ajax.AjaxRequestTarget target)
An action in show before
|
void |
setAction(String action)
Action code
|
protected abstract void |
setFeedback(org.apache.wicket.model.IModel<String> message)
Show an common feedback message
|
protected void |
setFeedback(Throwable e)
Show an emergency message
|
void |
setTarget(org.apache.wicket.event.IEventSink target)
Target of the close action
|
void |
show(org.apache.wicket.ajax.AjaxRequestTarget target,
org.apache.wicket.model.IModel<String> title,
org.apache.wicket.model.IModel<T> body)
Show dialog and assign a data from domain object
|
void |
show(org.apache.wicket.ajax.AjaxRequestTarget target,
org.apache.wicket.model.IModel<String> title,
org.apache.wicket.model.IModel<T> body,
String actionButtonProperty)
Show dialog and assign a data from domain object
|
void |
show(org.apache.wicket.ajax.AjaxRequestTarget target,
org.apache.wicket.model.IModel<T> body)
Show dialog and assign a data from domain object
|
void |
show(UjoEvent<T> event,
org.apache.wicket.model.IModel<String> title)
Show dialog and assign a data from domain object
|
void |
show(UjoEvent<T> event,
org.apache.wicket.model.IModel<String> title,
String actionButtonProperty)
Show dialog and assign a data from domain object
|
getModel, getModelObject, setModel, setModelObjectgetRegionMarkup, newMarkupSourcingStrategygetWebApplication, getWebPage, getWebRequest, getWebResponse, getWebSessionadd, addDequeuedComponent, addOrReplace, autoAdd, canDequeueTag, contains, dequeue, dequeue, dequeuePreamble, findComponentToDequeue, findChildComponent, get, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, internalAdd, internalInitialize, iterator, iterator, newDequeueContext, onAfterRenderChildren, onComponentTagBody, onDetach, onRender, queue, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, swap, toString, toString, visitChildren, visitChildren, visitChildren, visitChildrenadd, addStateChange, afterRender, beforeRender, canCallListenerInterface, canCallListenerInterfaceAfterExpiry, clearOriginalDestination, configure, continueToOriginalDestination, createConverter, debug, detach, detachModel, detachModels, determineVisibility, error, exceptionMessage, fatal, findMarkupStream, findPage, findParent, findParentWithAssociatedMarkup, getAjaxRegionMarkupId, getApplication, getBehaviorById, getBehaviorId, getBehaviors, getBehaviors, getClassRelativePath, getConverter, getDefaultModel, getDefaultModelObject, getDefaultModelObjectAsString, getDefaultModelObjectAsString, getEscapeModelStrings, getFeedbackMessages, getFlag, getId, getInnermostModel, getInnermostModel, getLocale, getLocalizer, getMarkup, getMarkupAttributes, getMarkupId, getMarkupId, getMarkupIdFromMarkup, getMarkupIdImpl, getMarkupSourcingStrategy, getMetaData, getModelComparator, getOutputMarkupId, getOutputMarkupPlaceholderTag, getPage, getPageRelativePath, getParent, getPath, getRenderBodyOnly, getRequest, getRequestCycle, getRequestFlag, getResponse, getSession, getSizeInBytes, getStatelessHint, getString, getString, getString, getStyle, getVariation, hasBeenRendered, hasErrorMessage, hasFeedbackMessage, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, info, initModel, internalOnModelChanged, internalPrepareForRender, internalRenderComponent, internalRenderHead, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isRendering, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, onAfterRender, onBeforeRender, onComponentTag, onConfigure, onEvent, onModelChanged, onModelChanging, onReAdd, onRemove, prepareForRender, redirectToInterceptPage, remove, remove, render, renderComponentTag, rendered, renderHead, renderHead, renderPlaceholderTag, replaceComponentTagBody, replaceWith, sameInnermostModel, sameInnermostModel, send, setAuto, setDefaultModelObject, setEnabled, setEscapeModelStrings, setFlag, setIgnoreAttributeModifier, setMarkup, setMarkupId, setMarkupIdImpl, setMetaData, setOutputMarkupId, setOutputMarkupPlaceholderTag, setParent, setRenderBodyOnly, setRequestFlag, setResponsePage, setResponsePage, setResponsePage, setVersioned, setVisibilityAllowed, setVisible, success, urlFor, urlFor, urlFor, urlFor, urlFor, visitParents, visitParents, warn, wrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorprotected static final String BUTTON_PREFIX
protected static final String ACTION_BUTTON_ID
protected static final String CANCEL_BUTTON_ID
protected static final String REPEATER_ID
protected final org.apache.wicket.markup.html.form.Form<?> form
protected final org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow modalWindow
protected final org.apache.wicket.markup.repeater.RepeatingView repeater
protected final boolean autoClose
protected org.apache.wicket.event.IEventSink eventTarget
public AbstractDialogPane(org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow modalWindow,
org.apache.wicket.model.IModel<? super T> model,
boolean autoClose)
protected void onInitialize()
onInitialize in class org.apache.wicket.MarkupContainerpublic String getAction()
public void setAction(String action)
public T getBaseModelObject()
protected org.apache.wicket.ajax.markup.html.form.AjaxButton createActionButton(String id, String propertyName)
protected org.apache.wicket.ajax.markup.html.form.AjaxButton createCancelButton(String id, String propertyName)
protected void closeForm(org.apache.wicket.ajax.AjaxRequestTarget target,
org.apache.wicket.markup.html.form.Form<?> form)
protected void setFeedback(Throwable e)
protected abstract void setFeedback(org.apache.wicket.model.IModel<String> message)
message - The null value clears the message.public void show(org.apache.wicket.ajax.AjaxRequestTarget target,
org.apache.wicket.model.IModel<T> body)
target - targetpublic void show(UjoEvent<T> event, org.apache.wicket.model.IModel<String> title)
public void show(UjoEvent<T> event, org.apache.wicket.model.IModel<String> title, String actionButtonProperty)
public void show(org.apache.wicket.ajax.AjaxRequestTarget target,
org.apache.wicket.model.IModel<String> title,
org.apache.wicket.model.IModel<T> body)
title - Window titletarget - targetbody - Body modelpublic final void show(org.apache.wicket.ajax.AjaxRequestTarget target,
org.apache.wicket.model.IModel<String> title,
org.apache.wicket.model.IModel<T> body,
String actionButtonProperty)
title - Dialog titlebody - Dialog body as a default modeactionButtonProperty - Action button keytarget - TargetonShowBefore(org.apache.wicket.ajax.AjaxRequestTarget),
#onShowAfter(org.apache.wicket.ajax.AjaxRequestTarget)protected void onShowBefore(org.apache.wicket.ajax.AjaxRequestTarget target)
public org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow getModalWindow()
public void close(org.apache.wicket.ajax.AjaxRequestTarget target)
public final void close(UjoEvent target)
protected org.apache.wicket.model.IModel<String> getButtonModel(String propertyName)
public org.apache.wicket.event.IEventSink getTarget()
public void setTarget(org.apache.wicket.event.IEventSink target)
Copyright © 2024. All rights reserved.