C
- as ContentDescriber
public abstract class ContentAuthorSearchPanel<C extends Content> extends AdminPanel implements ChangeGenerator<List<C>>
notifyAllListeners(List)
with search result , i.e List of ContentDescriber
s
ChangeGenerator
; it will also generate Events of TypeEntry<AjaxRequestTarget,List<C>>
TemplateSearchParams
and See ProductListingPanel
.addSearchpanel, to make the Search options more Dynamic / extendable
Modifier and Type | Field and Description |
---|---|
protected Map<String,List<String>> |
fieldTypeMapping |
protected SearchJPAQueryBuilderTransformer |
searchQueryTransformer |
adminConfiguration, authorizationModule
Constructor and Description |
---|
ContentAuthorSearchPanel(String id) |
Modifier and Type | Method and Description |
---|---|
void |
addChangeListener(ChangeListener changeListener)
Allow Notify all
ChangeListener s about a change |
protected SearchJPAQueryBuilderTransformer |
defineSearchJPAQueryBuilderTransformer()
Define what will process and prepare the Search Query
|
protected List<C> |
fetchSearchResults(org.apache.wicket.markup.html.form.Form form)
Prepare Search Query and return results for Form input
|
protected abstract javax.persistence.EntityManager |
getEntityManager()
Override Source in case content from an auxiliary Data Source
|
List |
getListeners()
Get list directly.
|
void |
notifyAllListeners(List<C> event)
Whenever a node is selected/updated, it also notifies its listeners.
|
void |
onInitialize() |
protected void |
onSearch(List<C> results) |
void |
setListeners(List listeners)
Set list directly.
|
getConfigProperty, getModuleForPage, headerMeta, renderHead
onComponentTag, onComponentTagBody, renderHead
newHeaderPartContainer, renderHeadFromAssociatedMarkupFile
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, 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, onConfigure, onDetach, onEndRequest, onModelChanged, onModelChanging, onRemove, prepareForRender, prepareForRender, redirectToInterceptPage, remove, remove, render, render, renderComponent, renderComponent, renderComponentTag, rendered, 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 SearchJPAQueryBuilderTransformer searchQueryTransformer
public ContentAuthorSearchPanel(String id)
protected abstract javax.persistence.EntityManager getEntityManager()
protected SearchJPAQueryBuilderTransformer defineSearchJPAQueryBuilderTransformer()
SearchJPAQueryBuilderTransformer
public void onInitialize()
onInitialize
in class org.apache.wicket.Component
protected List<C> fetchSearchResults(org.apache.wicket.markup.html.form.Form form)
form
- as Form
ContentDescriber
spublic void addChangeListener(ChangeListener changeListener)
ChangeGenerator
ChangeListener
s about a changeaddChangeListener
in interface ChangeGenerator<List<C extends Content>>
public void notifyAllListeners(List<C> event)
ChangeGenerator
notifyAllListeners
in interface ChangeGenerator<List<C extends Content>>
public List getListeners()
ChangeGenerator
getListeners
in interface ChangeGenerator<List<C extends Content>>
public void setListeners(List listeners)
ChangeGenerator
setListeners
in interface ChangeGenerator<List<C extends Content>>
Copyright © 2018. All rights reserved.