C
- as AbstractContent
CA
- as AbstractContentFacet
CF
- as AbstractContentFacet
public abstract class ContentDetailsPageForm<C extends AbstractContent<CA,CF>,CA extends AbstractContentAttribute,CF extends AbstractContentFacet> extends org.apache.wicket.markup.html.form.StatelessForm<C> implements ChangeGenerator<C>
Form
to represent a C
. It is responsible for all Actions/Operations on the Form.Template.getListeners()
defined, then onSubmit()
the listeners are passed the saved AbstractContent
.
Template
it depends on using event type SynchronousFlowStatusChange
Constructor and Description |
---|
ContentDetailsPageForm(String id,
org.apache.wicket.model.IModel<C> model,
ChangeListener<C> refreshCallback) |
Modifier and Type | Method and Description |
---|---|
void |
addChangeListener(ChangeListener<C> changeListener)
Allow Notify all
ChangeListener s about a change |
void |
audit(String status) |
protected void |
delegateSubmit(org.apache.wicket.markup.html.form.IFormSubmittingComponent submittingComponent)
The default way is to process onSubmit() of form elements first & then the main form.
We want to reverse that, we want to process the Form onSubmit first and then the others. |
protected abstract GenericContentService<C,CA,CF> |
getContentService()
Override Source in case content from an auxiliary Data Source
|
List<ChangeListener<C>> |
getListeners()
Get list directly.
|
void |
notifyAllListeners(C object)
Whenever a node is selected/updated, it also notifies its listeners.
|
void |
onInitialize() |
void |
onPublish() |
void |
onSubmit() |
void |
onUnPublish() |
void |
setListeners(List<ChangeListener<C>> listeners)
Set list directly.
|
getStatelessHint, process
add, appendDefaultButtonField, beforeUpdateFormComponentModels, clearInput, encodeUrlInHiddenFields, error, findForm, findSubmittingButton, getDefaultButton, getFormValidators, getHiddenFieldId, getInputNamePrefix, getJavascriptId, getJsForInterfaceUrl, getMaxSize, getMethod, getModel, getModelObject, getRootForm, getRootFormRelativeId, getValidatorKeyPrefix, getValuePersister, handleMultiPart, hasError, internalOnModelChanged, isRootForm, isSubmitted, isVersioned, loadPersistentFormComponentValues, markFormComponentsInvalid, markFormComponentsValid, onBeforeRender, onComponentTag, onComponentTagBody, onDetach, onError, onFileUploadException, onFormSubmitted, onValidate, process, registerJavascriptNamespaces, remove, removePersistentFormComponentValues, renderHead, renderPlaceholderTag, setDefaultButton, setMaxSize, setModel, setModelObject, setMultiPart, setVersioned, updateFormComponentModels, validate, validateComponents, validateFormValidator, validateFormValidators, visitFormComponents, visitFormComponentsPostOrder, writeParamsAsHiddenFields
getMarkupType, getWebPage, getWebRequest
add, addOrReplace, autoAdd, autoAdd, contains, findMarkupStream, get, get, getAssociatedMarkupStream, getMarkupStream, hasAssociatedMarkup, internalAdd, isTransparentResolver, iterator, iterator, newMarkupResourceStream, onRender, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderComponentTagBody, renderNext, replace, setDefaultModel, setMarkupStream, size, swap, toString, toString, visitChildren, visitChildren
add, addStateChange, afterRender, beforeRender, callOnBeforeRenderIfNotVisible, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, configure, continueToOriginalDestination, debug, detach, detachBehaviors, detachModel, detachModels, determineVisibility, error, exceptionMessage, fatal, findPage, findParent, findParentWithAssociatedMarkup, getApplication, getBehaviors, getBehaviors, getBehaviorsRawList, getClassRelativePath, getComponentBorder, getConverter, getConverter, getDefaultModel, getDefaultModelObject, getDefaultModelObjectAsString, getDefaultModelObjectAsString, getEscapeModelStrings, getFeedbackMessage, getFlag, getFlag, getId, getInnermostModel, getInnermostModel, getLocale, getLocalizer, getMarkupAttributes, getMarkupId, getMarkupId, getMarkupIdImpl, getMetaData, getModelComparator, getOutputMarkupId, getOutputMarkupPlaceholderTag, getPage, getPageRelativePath, getParent, getPath, getRenderBodyOnly, getRequest, getRequestCycle, getResponse, getSession, getSizeInBytes, getString, getString, getString, getStyle, getVariation, hasBeenRendered, hasErrorMessage, hasFeedbackMessage, info, initModel, internalAttach, internalDetach, internalOnAttach, internalOnDetach, isActionAuthorized, isAncestorOf, isAttached, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isStateless, isVisibilityAllowed, isVisible, isVisibleInHierarchy, locateMarkupStream, markAttached, markRendering, modelChanged, modelChanging, onAfterRender, onAttach, onBeginRequest, onConfigure, onEndRequest, onModelChanged, onModelChanging, onRemove, prepareForRender, prepareForRender, redirectToInterceptPage, remove, remove, render, render, renderComponent, renderComponent, renderComponentTag, rendered, renderHead, replaceComponentTagBody, replaceWith, sameInnermostModel, sameInnermostModel, setAuto, setComponentBorder, setDefaultModelObject, setEnabled, setEscapeModelStrings, setFlag, setFlag, setIgnoreAttributeModifier, setMarkupId, setMarkupIdImpl, setMetaData, setOutputMarkupId, setOutputMarkupPlaceholderTag, setRedirect, setRenderBodyOnly, setResponsePage, setResponsePage, setResponsePage, setVisibilityAllowed, setVisible, urlFor, urlFor, urlFor, urlFor, urlFor, urlFor, visitParents, warn, wrap
public ContentDetailsPageForm(String id, org.apache.wicket.model.IModel<C> model, ChangeListener<C> refreshCallback)
protected abstract GenericContentService<C,CA,CF> getContentService()
protected void delegateSubmit(org.apache.wicket.markup.html.form.IFormSubmittingComponent submittingComponent)
delegateSubmit
in class org.apache.wicket.markup.html.form.Form<C extends AbstractContent<CA,CF>>
public void audit(String status)
public void onInitialize()
onInitialize
in class org.apache.wicket.Component
public void onSubmit()
onSubmit
in class org.apache.wicket.markup.html.form.Form<C extends AbstractContent<CA,CF>>
public void onPublish()
public void onUnPublish()
public void addChangeListener(ChangeListener<C> changeListener)
ChangeGenerator
ChangeListener
s about a changeaddChangeListener
in interface ChangeGenerator<C extends AbstractContent<CA,CF>>
public void notifyAllListeners(C object)
ChangeGenerator
notifyAllListeners
in interface ChangeGenerator<C extends AbstractContent<CA,CF>>
public List<ChangeListener<C>> getListeners()
ChangeGenerator
getListeners
in interface ChangeGenerator<C extends AbstractContent<CA,CF>>
public void setListeners(List<ChangeListener<C>> listeners)
ChangeGenerator
setListeners
in interface ChangeGenerator<C extends AbstractContent<CA,CF>>
Copyright © 2018. All rights reserved.