wicket.extensions.markup.html.repeater.data.table.filter
Class GoAndClearFilter

java.lang.Object
  extended bywicket.Component
      extended bywicket.MarkupContainer
          extended bywicket.markup.html.WebMarkupContainer
              extended bywicket.markup.html.WebMarkupContainerWithAssociatedMarkup
                  extended bywicket.markup.html.panel.Panel
                      extended bywicket.extensions.markup.html.repeater.data.table.filter.GoFilter
                          extended bywicket.extensions.markup.html.repeater.data.table.filter.GoAndClearFilter
All Implemented Interfaces:
java.io.Serializable

public class GoAndClearFilter
extends GoFilter

Filter component that generates a 'go' and 'clear' buttons.

Author:
Igor Vaynberg (ivaynberg)
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class wicket.markup.html.WebMarkupContainerWithAssociatedMarkup
wicket.markup.html.WebMarkupContainerWithAssociatedMarkup.HeaderPartContainer
 
Nested classes inherited from class wicket.Component
wicket.Component.ComponentModelChange, wicket.Component.EnabledChange, wicket.Component.IVisitor, wicket.Component.VisibilityChange
 
Field Summary
protected static wicket.model.IModel defaultClearModel
           
 
Fields inherited from class wicket.extensions.markup.html.repeater.data.table.filter.GoFilter
defaultGoModel
 
Fields inherited from class wicket.Component
ENABLE, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED6, FLAG_RESERVED7, FLAG_RESERVED8, PATH_SEPARATOR, RENDER
 
Constructor Summary
GoAndClearFilter(java.lang.String id, FilterForm form)
          Constructor This constructor will use default models for the 'clear' and 'go' button labels
GoAndClearFilter(java.lang.String id, FilterForm form, wicket.model.IModel goModel, wicket.model.IModel clearModel)
          Constructor
 
Method Summary
protected  wicket.markup.html.form.Button getClearButton()
           
protected  void onClearSubmit(wicket.markup.html.form.Button button)
          This method should be implemented by subclasses to provide behavior for the clear button.
 
Methods inherited from class wicket.extensions.markup.html.repeater.data.table.filter.GoFilter
getGoButton, onGoSubmit
 
Methods inherited from class wicket.markup.html.panel.Panel
onComponentTag, onComponentTagBody, renderHead
 
Methods inherited from class wicket.markup.html.WebMarkupContainerWithAssociatedMarkup
newHeaderPartContainer, renderHeadFromAssociatedMarkupFile
 
Methods inherited from class wicket.markup.html.WebMarkupContainer
getMarkupType, getWebPage
 
Methods inherited from class wicket.MarkupContainer
add, autoAdd, contains, findMarkupStream, get, getAssociatedMarkupStream, getMarkupStream, internalAdd, internalAttach, internalDetach, isTransparentResolver, iterator, iterator, newMarkupResourceStream, onRender, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderComponentTagBody, replace, setMarkupStream, setModel, size, toString, toString, visitChildren, visitChildren
 
Methods inherited from class wicket.Component
add, addStateChange, checkComponentTag, checkComponentTagAttribute, continueToOriginalDestination, debug, detachBehaviors, detachModel, detachModels, error, exceptionMessage, fatal, findPage, findParent, findParentWithAssociatedMarkup, getApplication, getApplicationPages, getApplicationSettings, getBehaviors, getBehaviors, getClassRelativePath, getConverter, getEscapeModelStrings, getFeedbackMessage, getFlag, getFlag, getId, getLocale, getLocalizer, getMarkupAttributes, getMarkupId, getMetaData, getModel, getModelComparator, getModelObject, getModelObjectAsString, getOutputMarkupId, getPage, getPageFactory, getPageRelativePath, getParent, getPath, getRenderBodyOnly, getRequest, getRequestCycle, getResponse, getSession, getSizeInBytes, getString, getString, getString, getStyle, getVariation, hasErrorMessage, hasFeedbackMessage, info, initModel, internalOnAttach, internalOnDetach, internalOnModelChanged, isActionAuthorized, isAncestorOf, isBehaviorAccepted, isEnableAllowed, isEnabled, isHeadRendered, isIgnoreAttributeModifier, isRenderAllowed, isVersioned, isVisible, isVisibleInHierarchy, modelChanged, modelChanging, newPage, newPage, onAfterRender, onAttach, onBeforeRender, onBeginRequest, onDetach, onEndRequest, onModelChanged, onModelChanging, onRender, redirectToInterceptPage, remove, render, render, renderComponent, renderComponent, renderComponentTag, rendered, renderedBehaviors, replaceComponentTagBody, replaceWith, resetHeadRendered, sameRootModel, sameRootModel, setAuto, setEnabled, setEscapeModelStrings, setFlag, setFlag, setIgnoreAttributeModifier, setMetaData, setModelObject, setOutputMarkupId, setRedirect, setRenderBodyOnly, setResponsePage, setResponsePage, setResponsePage, setVersioned, setVisible, urlFor, urlFor, urlFor, urlFor, urlFor, visitParents, warn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

defaultClearModel

protected static final wicket.model.IModel defaultClearModel
Constructor Detail

GoAndClearFilter

public GoAndClearFilter(java.lang.String id,
                        FilterForm form)
Constructor This constructor will use default models for the 'clear' and 'go' button labels

Parameters:
id - component id
form - filter form of the filter toolbar

GoAndClearFilter

public GoAndClearFilter(java.lang.String id,
                        FilterForm form,
                        wicket.model.IModel goModel,
                        wicket.model.IModel clearModel)
Constructor

Parameters:
id - component id
form - filter form of the filter toolbar
goModel - model for the label of the 'go' button
clearModel - model for the label of the 'clear' button
Method Detail

getClearButton

protected wicket.markup.html.form.Button getClearButton()
Returns:
button component representing the clear button

onClearSubmit

protected void onClearSubmit(wicket.markup.html.form.Button button)
This method should be implemented by subclasses to provide behavior for the clear button.

Parameters:
button - the 'clear' button


Copyright © 2004-2008 Wicket developers. All Rights Reserved.