public class DateFilter<M> extends Filter<M,Date>
| Modifier and Type | Class and Description |
|---|---|
static interface |
DateFilter.DateFilterMessages |
class |
DateFilter.DefaultDateFilterMessages |
| Constructor and Description |
|---|
DateFilter(ValueProvider<M,Date> valueProvider) |
| Modifier and Type | Method and Description |
|---|---|
List<FilterConfig> |
getFilterConfig() |
Date |
getMaxDate()
Returns the max date.
|
DateFilter.DateFilterMessages |
getMessages() |
Date |
getMinDate()
Returns the minimum date.
|
Object |
getValue()
Template method to be implemented by all subclasses that is to get and
return the value of the filter.
|
void |
handleMenuSelect(ValueChangeEvent<Date> event) |
boolean |
isActivatable()
Template method to be implemented by all subclasses that is to return
true if the filter has enough configuration information to be
activated. |
void |
setMaxDate(Date maxDate)
Sets the max date as passed to the date picker.
|
void |
setMessages(DateFilter.DateFilterMessages messages) |
void |
setMinDate(Date minDate)
Set's the minimum date as passed to the date picker.
|
addActivateHandler, addDeactivateHandler, addUpdateHandler, getHandler, getMenu, getUpdateBuffer, getValueProvider, isActive, setActive, setHandler, setUpdateBufferpublic DateFilter(ValueProvider<M,Date> valueProvider)
public List<FilterConfig> getFilterConfig()
getFilterConfig in class Filter<M,Date>public Date getMaxDate()
public DateFilter.DateFilterMessages getMessages()
public Date getMinDate()
public Object getValue()
Filterpublic void handleMenuSelect(ValueChangeEvent<Date> event)
public boolean isActivatable()
Filtertrue if the filter has enough configuration information to be
activated.public void setMaxDate(Date maxDate)
maxDate - the max datepublic void setMessages(DateFilter.DateFilterMessages messages)
public void setMinDate(Date minDate)
minDate - the minimum dateCopyright © 2012. All Rights Reserved.