Package lumis.doui.table.filter
Class MonthTableSourceFilter
- java.lang.Object
-
- lumis.doui.table.filter.AbstractTableSourceFilter
-
- lumis.doui.table.filter.TableSourceFilter
-
- 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
- Version:
- $Revision: 3902 $ $Date: 2006-08-09 11:29:10 -0300 (Wed, 09 Aug 2006) $
-
-
Constructor Summary
Constructors Constructor Description MonthTableSourceFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
calculateFilterOperator(Node filterNode)
Always return the equals operator, just to be a valid binary operator and the extendedTableSourceFilter
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, isEnabled, isOrNull, isRequired, isValueInLookup, setDefinition, setFieldId, setFilterValue, setOperator, setOrNull, setParameters, setRequired, setValueInLookup, shouldHideAllResults
-
-
-
-
Method Detail
-
calculateFilterOperator
protected String calculateFilterOperator(Node filterNode) throws PortalException
Always return the equals operator, just to be a valid binary operator and the extendedTableSourceFilter
to behave as expected.- Overrides:
calculateFilterOperator
in classTableSourceFilter
- 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 classTableSourceFilter
- Parameters:
queryField
- the query field that will be filtered.queryValue
- the query value. Must contain a value assignable to aDate
.- 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 interfaceISourceFilter<TableSource>
- Overrides:
getInputControlType
in classTableSourceFilter
- Returns:
- the input control type, or null if there is no frontend for this filter instance.
- Throws:
PortalException
-
-