com.sencha.gxt.widget.core.client.grid.filters
Class DateFilter<M>

java.lang.Object
  extended by com.sencha.gxt.widget.core.client.grid.filters.Filter<M,Date>
      extended by com.sencha.gxt.widget.core.client.grid.filters.DateFilter<M>
All Implemented Interfaces:
ActivateEvent.HasActivateHandlers<Filter<M,?>>, DeactivateEvent.HasDeactivateHandlers<Filter<M,?>>, UpdateEvent.HasUpdateHandlers

public class DateFilter<M>
extends Filter<M,Date>


Nested Class Summary
static interface DateFilter.DateFilterMessages
           
 class DateFilter.DefaultDateFilterMessages
           
 
Constructor Summary
DateFilter(ValueProvider<? super M,Date> valueProvider)
           
 
Method Summary
 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.
 
Methods inherited from class com.sencha.gxt.widget.core.client.grid.filters.Filter
addActivateHandler, addDeactivateHandler, addUpdateHandler, getHandler, getMenu, getUpdateBuffer, getValueProvider, isActive, setActive, setHandler, setUpdateBuffer
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateFilter

public DateFilter(ValueProvider<? super M,Date> valueProvider)
Method Detail

getFilterConfig

public List<FilterConfig> getFilterConfig()
Specified by:
getFilterConfig in class Filter<M,Date>

getMaxDate

public Date getMaxDate()
Returns the max date.

Returns:
the max date

getMessages

public DateFilter.DateFilterMessages getMessages()

getMinDate

public Date getMinDate()
Returns the minimum date.

Returns:
the minimum date

getValue

public Object getValue()
Description copied from class: Filter
Template method to be implemented by all subclasses that is to get and return the value of the filter.

Specified by:
getValue in class Filter<M,Date>

handleMenuSelect

public void handleMenuSelect(ValueChangeEvent<Date> event)

isActivatable

public boolean isActivatable()
Description copied from class: Filter
Template method to be implemented by all subclasses that is to return true if the filter has enough configuration information to be activated.

Returns:
true if if the filter has enough configuration information to be activated

setMaxDate

public void setMaxDate(Date maxDate)
Sets the max date as passed to the date picker.

Parameters:
maxDate - the max date

setMessages

public void setMessages(DateFilter.DateFilterMessages messages)

setMinDate

public void setMinDate(Date minDate)
Set's the minimum date as passed to the date picker.

Parameters:
minDate - the minimum date


Copyright © 2012. All Rights Reserved.