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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MonthTableSourceFilter
public MonthTableSourceFilter()
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 6.2.0.120405 - Copyright © 2006–2012 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.