public abstract class DynamicInputContainer
extends org.apache.wicket.markup.html.WebMarkupContainer
WebMarkupContainer
to allow configurable generic Search / Input parametersModifier and Type | Field and Description |
---|---|
protected List<FacetMeta> |
facetMetas |
protected List<org.apache.wicket.Component> |
rawAddedComponents |
Constructor and Description |
---|
DynamicInputContainer(String formComponentId,
List<FacetMeta> facetMetas,
org.apache.wicket.markup.html.WebMarkupContainer container)
Create a Form with dynamic search params
|
Modifier and Type | Method and Description |
---|---|
protected Object |
defineParams()
Define what Data-Structure will be used to maintain the Form values; so they can be returned as an Event to the listeners
|
protected abstract EntityDetailsTemplatePanel |
getInputTemplatePanel(String id,
org.apache.wicket.model.IModel model,
EntityTemplate template,
CustomTemplateRenderAdapter defaultRenderAdapter)
Define the Template panel responsible for rendering the Input params
|
Object |
onSubmit()
helper implementation that will process the fields in this Container during Submit
|
protected Object |
transformValue(FacetMeta facetMeta,
Object value)
An opportunity to modify or transform the raw input value before its passed as a result in the params/event
|
protected void |
updateParamsWithValue(Object params,
int index,
FacetMeta facetMeta,
Object value) |
getMarkupType, getWebPage, getWebRequest
add, addOrReplace, autoAdd, autoAdd, contains, findMarkupStream, get, get, getAssociatedMarkupStream, getMarkupStream, hasAssociatedMarkup, internalAdd, isTransparentResolver, iterator, iterator, newMarkupResourceStream, onComponentTagBody, 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, getStatelessHint, getString, getString, getString, getStyle, getVariation, hasBeenRendered, hasErrorMessage, hasFeedbackMessage, info, initModel, internalAttach, internalDetach, internalOnAttach, internalOnDetach, internalOnModelChanged, isActionAuthorized, isAncestorOf, isAttached, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, locateMarkupStream, markAttached, markRendering, modelChanged, modelChanging, onAfterRender, onAttach, onBeforeRender, onBeginRequest, onComponentTag, onConfigure, onDetach, onEndRequest, onInitialize, onModelChanged, onModelChanging, onRemove, prepareForRender, prepareForRender, redirectToInterceptPage, remove, remove, render, render, renderComponent, renderComponent, renderComponentTag, rendered, renderHead, renderPlaceholderTag, replaceComponentTagBody, replaceWith, sameInnermostModel, sameInnermostModel, setAuto, setComponentBorder, setDefaultModelObject, setEnabled, setEscapeModelStrings, setFlag, setFlag, setIgnoreAttributeModifier, setMarkupId, setMarkupIdImpl, setMetaData, setOutputMarkupId, setOutputMarkupPlaceholderTag, setRedirect, setRenderBodyOnly, setResponsePage, setResponsePage, setResponsePage, setVersioned, setVisibilityAllowed, setVisible, urlFor, urlFor, urlFor, urlFor, urlFor, urlFor, visitParents, warn, wrap
protected List<org.apache.wicket.Component> rawAddedComponents
public DynamicInputContainer(String formComponentId, List<FacetMeta> facetMetas, org.apache.wicket.markup.html.WebMarkupContainer container)
facetMetas
- as List
of configurable FacetMeta
that define the custom Input fieldsinputParamsTemplatePanel
- as EntityDetailsTemplatePanel
type panel, that will be responsible to render the input elementspublic Object onSubmit()
facetMetas
- rawAddedComponents
- defineParams()
protected Object transformValue(FacetMeta facetMeta, Object value)
fm
- as FacetMeta
value
- protected abstract EntityDetailsTemplatePanel getInputTemplatePanel(String id, org.apache.wicket.model.IModel model, EntityTemplate template, CustomTemplateRenderAdapter defaultRenderAdapter)
id
- as Component Idmodel
- as IModeltemplate
- as EntityTemplate
defaultRenderAdapter
- as CustomTemplateRenderAdapter
EntityDetailsTemplatePanel
type panel, that will be responsible to render the input elementsprotected Object defineParams()
Copyright © 2018. All rights reserved.