public abstract class DestinationDialog extends Dialog<Void> implements IWorkflowInvoker
AbstractDialog.ExceptionFeedbackPanel, AbstractDialog.PersistentFeedbackMessagesModel
BOTTOM_LEFT_ID
cancelled, feedback, fmm
ENCTYPE_MULTIPART_FORM_DATA, METHOD_GET, METHOD_POST
Constructor and Description |
---|
DestinationDialog(org.apache.wicket.model.IModel<String> title,
org.apache.wicket.model.IModel<String> question,
org.apache.wicket.model.IModel<String> answer,
NodeModelWrapper destination,
IPluginContext context,
IPluginConfig config) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkFolderTypes()
Check if the destination folder is allowed by foldertype configuration to contain the type of document being
worked on.
|
protected boolean |
checkPermissions() |
protected org.apache.wicket.markup.html.panel.Panel |
createQuestionPanel(String id,
org.apache.wicket.model.IModel<String> question,
org.apache.wicket.model.IModel<String> answer) |
protected boolean |
isOkEnabled() |
void |
onClose()
Implement onClose callback, invoked when the dialog is closed.
|
protected void |
onOk()
Callback method invoked when the user clicks the 'OK' button.
|
void |
render(PluginRequestTarget target)
Part of the pre-rendering registration.
|
addAjaxIndicator, getProperties, getTitle, onDetach, setCssClass, setSize, setTitle, setTitleKey, setTitleModel
addButton, closeDialog, delegateSubmit, getAdditionalFullscreenScript, getAjaxIndicatorMarkupId, getComponent, getExceptionTranslation, getFeedbackMessagesModel, getFullscreenScript, getSession, handleSubmit, isFullscreenEnabled, newFeedbackPanel, onCancel, onError, onRemove, onSubmit, process, removeButton, setAjaxChannel, setButtonCssClass, setCancelEnabled, setCancelKeyType, setCancelLabel, setCancelLabel, setCancelVisible, setDialogService, setFocus, setFocus, setFocusOnCancel, setFocusOnOk, setNonAjaxSubmit, setOkEnabled, setOkKeyType, setOkLabel, setOkLabel, setOkVisible
add, appendDefaultButtonField, beforeUpdateFormComponentModels, callOnError, clearInput, encodeUrlInHiddenFields, error, findForm, findSubmittingButton, getActionUrl, getDefaultButton, getFileMaxSize, getFormValidators, getHiddenFieldId, getInputNamePrefix, getJsForInterfaceUrl, getMaxSize, getMethod, getModel, getModelObject, getRootForm, getRootFormRelativeId, getStatelessHint, getValidatorKeyPrefix, handleMultiPart, hasError, internalOnModelChanged, isMultiPart, isRootForm, isSubmitted, markFormComponentsInvalid, markFormComponentsValid, onBeforeRender, onComponentTag, onComponentTagBody, onFileUploadException, onFormSubmitted, onFormSubmitted, onMethodMismatch, onValidate, onValidateModelObjects, registerJavaScriptNamespaces, remove, renderHead, renderPlaceholderTag, setDefaultButton, setFileMaxSize, setMaxSize, setModel, setModelObject, setMultiPart, setVersioned, updateFormComponentModels, validate, validateComponents, validateFormValidator, validateFormValidators, visitFormComponents, visitFormComponentsPostOrder, wantSubmitOnNestedFormSubmit, wantSubmitOnParentFormSubmit, writeParamsAsHiddenFields
getWebApplication, getWebPage, getWebRequest, getWebResponse, getWebSession
add, addOrReplace, autoAdd, contains, get, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, internalAdd, internalInitialize, iterator, iterator, onAfterRenderChildren, onRender, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, swap, toString, toString, visitChildren, visitChildren, visitChildren, visitChildren
add, addStateChange, afterRender, beforeRender, canCallListenerInterface, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, clearOriginalDestination, configure, continueToOriginalDestination, 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, getSizeInBytes, getString, getString, getString, getStyle, getVariation, hasBeenRendered, hasErrorMessage, hasFeedbackMessage, info, initModel, internalPrepareForRender, internalRenderComponent, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isRendering, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, newMarkupSourcingStrategy, onAfterRender, onConfigure, onEvent, onInitialize, onModelChanged, onModelChanging, onReAdd, prepareForRender, redirectToInterceptPage, remove, remove, render, renderComponentTag, rendered, renderHead, renderHead, replaceComponentTagBody, replaceWith, sameInnermostModel, sameInnermostModel, send, setAuto, setDefaultModelObject, setEnabled, setEscapeModelStrings, setFlag, setIgnoreAttributeModifier, setMarkup, setMarkupId, setMarkupIdImpl, setMetaData, setOutputMarkupId, setOutputMarkupPlaceholderTag, setParent, setRenderBodyOnly, setRequestFlag, setResponsePage, setResponsePage, setResponsePage, setVisibilityAllowed, setVisible, success, urlFor, urlFor, urlFor, urlFor, urlFor, visitParents, visitParents, warn, wrap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
invokeWorkflow
forEach, spliterator
public DestinationDialog(org.apache.wicket.model.IModel<String> title, org.apache.wicket.model.IModel<String> question, org.apache.wicket.model.IModel<String> answer, NodeModelWrapper destination, IPluginContext context, IPluginConfig config)
public void render(PluginRequestTarget target)
AbstractDialog
Implementations must invoke IRenderService.render(PluginRequestTarget)
on render services that contribute to the wicket component hierarchy.
render
in interface IDialogService.Dialog
render
in class AbstractDialog<Void>
protected org.apache.wicket.markup.html.panel.Panel createQuestionPanel(String id, org.apache.wicket.model.IModel<String> question, org.apache.wicket.model.IModel<String> answer)
protected void onOk()
AbstractDialog
onOk
in class AbstractDialog<Void>
public final void onClose()
AbstractDialog
onClose
in interface IDialogService.Dialog
onClose
in class AbstractDialog<Void>
protected boolean isOkEnabled()
protected boolean checkPermissions()
protected boolean checkFolderTypes()
Copyright © 2007–2017 Hippo B.V. (http://www.onehippo.com). All rights reserved.