public abstract class AbstractToolbar<U extends OrmUjo>
extends org.apache.wicket.markup.html.panel.Panel
| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.wicket.util.time.Duration |
DEFAULT_DELAY
Delay for searching fields is 400 [ms] by default
|
| Constructor and Description |
|---|
AbstractToolbar(String id) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
buildCriterion()
Modify internal Criteiron
|
protected org.apache.wicket.ajax.AjaxEventBehavior |
createChangeBehavior(org.apache.wicket.markup.html.form.FormComponent field)
Create an Updating Behavior with "keyup" event
|
protected org.apache.wicket.markup.html.form.TextField |
createSearchFiled(String componentId)
Create TextFiled, add 'placeholder', assign Behaviour and set an OutputMarkupId.
|
protected org.apache.wicket.markup.html.form.TextField |
createSearchFiled(String componentId,
String placeholderKey)
Create TextFiled, add 'placeholder', assign Behaviour and set an OutputMarkupId.
|
org.apache.wicket.model.IModel<org.ujorm.criterion.Criterion<U>> |
getCriterion()
Returns a Criterion model for the OrmUjo table,
for example all active hotels:
Hotel.ACTIVE.whereEq(true) |
String |
getDefaultActionName()
Default action name is
CommonActions.FILTER |
void |
onInitialize()
Buid a default criterion.
|
getWebPage, getWebRequest, getWebResponse, getWebSessionadd, addOrReplace, autoAdd, contains, get, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, internalAdd, internalInitialize, iterator, iterator, onAfterRenderChildren, onComponentTagBody, onRender, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, swap, toString, toString, visitChildren, visitChildren, visitChildren, visitChildrenadd, addStateChange, afterRender, beforeRender, canCallListenerInterface, 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, getSession, getSizeInBytes, getStatelessHint, getString, getString, getString, getStyle, getVariation, hasBeenRendered, hasErrorMessage, hasFeedbackMessage, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, info, initModel, internalOnModelChanged, internalPrepareForRender, internalRenderComponent, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, onAfterRender, onBeforeRender, onComponentTag, onConfigure, onDetach, onEvent, onModelChanged, onModelChanging, onRemove, prepareForRender, redirectToInterceptPage, remove, remove, render, renderComponentTag, rendered, renderHead, 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, wrapprotected static final org.apache.wicket.util.time.Duration DEFAULT_DELAY
public AbstractToolbar(String id)
public void onInitialize()
onInitialize in class org.apache.wicket.Componentprotected org.apache.wicket.markup.html.form.TextField createSearchFiled(String componentId)
componentId - Component IDplaceholderKey - Localization key for a Placeholderprotected org.apache.wicket.markup.html.form.TextField createSearchFiled(String componentId, String placeholderKey)
componentId - Component IDplaceholderKey - Localization key for a Placeholderpublic org.apache.wicket.model.IModel<org.ujorm.criterion.Criterion<U>> getCriterion()
Hotel.ACTIVE.whereEq(true)protected abstract void buildCriterion()
protected org.apache.wicket.ajax.AjaxEventBehavior createChangeBehavior(org.apache.wicket.markup.html.form.FormComponent field)
field - Field is not used by default, however it can be a switch for different results for example.public String getDefaultActionName()
CommonActions.FILTERCopyright © 2013. All Rights Reserved.