lumis.doui.table.filter
Class MonthTableSourceFilter

Package class diagram package MonthTableSourceFilter
java.lang.Object
  extended by lumis.doui.table.filter.AbstractTableSourceFilter
      extended by lumis.doui.table.filter.TableSourceFilter
          extended by lumis.doui.table.filter.MonthTableSourceFilter
All Implemented Interfaces:
ISourceFilter<TableSource>, ITableSourceFilter

public class MonthTableSourceFilter
extends TableSourceFilter

Generates a query filter for the associated field, filtering by the month of the value.

Since:
4.0.5

Constructor Summary
MonthTableSourceFilter()
           
 
Method Summary
protected  String calculateFilterOperator(Node filterNode)
          Always return the equals operator, just to be a valid binary operator and the extended TableSourceFilter to behave as expected.
 String getInputControlType()
          Returns the input control type for this filter doui frontend.
 IQueryFilter getQueryFilter(QueryField queryField, IQueryValue queryValue)
          Generate a query filter that filters the queryField by the month of the given value.
 
Methods inherited from class lumis.doui.table.filter.TableSourceFilter
calculateFilterValue, convertFilterStandardValue, convertOperatorStandardValue, getFieldId, getFilterValue, getOperator, getParameters, getQueryFilter, init, init, isOrNull, isRequired, isValueInLookup, setDefinition, setFieldId, setFilterValue, setOperator, setOrNull, setParameters, setRequired, setValueInLookup, shouldHideAllResults
 
Methods inherited from class lumis.doui.table.filter.AbstractTableSourceFilter
getFilter, getId, getSource, setId, setSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MonthTableSourceFilter

public MonthTableSourceFilter()
Method Detail

calculateFilterOperator

protected String calculateFilterOperator(Node filterNode)
                                  throws PortalException
Always return the equals operator, just to be a valid binary operator and the extended TableSourceFilter to behave as expected.

Overrides:
calculateFilterOperator in class TableSourceFilter
Parameters:
filterNode - the filter definition node.
Returns:
the filter operator.
Throws:
PortalException
Since:
4.0.5

getQueryFilter

public IQueryFilter getQueryFilter(QueryField queryField,
                                   IQueryValue queryValue)
Generate a query filter that filters the queryField by the month of the given value.

Overrides:
getQueryFilter in class TableSourceFilter
Parameters:
queryField - the query field that will be filtered.
queryValue - the query value. Must contain a value assignable to a Date.
Returns:
the query filter.

getInputControlType

public String getInputControlType()
                           throws PortalException
Description copied from interface: ISourceFilter
Returns the input control type for this filter doui frontend.

Specified by:
getInputControlType in interface ISourceFilter<TableSource>
Overrides:
getInputControlType in class TableSourceFilter
Returns:
the input control type, or null if there is no frontend for this filter instance.
Throws:
PortalException


Lumisportal  4.1.0.071221 - Copyright © 2001-2007, Lumis. All Rights Reserved.