Package lumis.doui.table.filter
Class AbstractTableSourceFilter
- java.lang.Object
-
- lumis.doui.table.filter.AbstractTableSourceFilter
-
- All Implemented Interfaces:
ISourceFilter<TableSource>
,ITableSourceFilter
- Direct Known Subclasses:
TableSourceFilter
public abstract class AbstractTableSourceFilter extends Object implements ITableSourceFilter
Base class for table source filters.- Since:
- 4.1.0
- Version:
- $Revision: 8618 $ $Date: 2007-12-18 11:34:20 -0200 (Tue, 18 Dec 2007) $
-
-
Constructor Summary
Constructors Constructor Description AbstractTableSourceFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ITableSourceFilter
getFilter(String filterId)
Returns the filter with the given id.String
getId()
String
getInputControlType()
Returns the input control type for this filter doui frontend.TableSource
getSource()
void
init(TableSource source, Node filterNode)
Initialization method, called before any other method on the filter instance.void
setId(String id)
void
setSource(TableSource source)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface lumis.doui.source.filter.ISourceFilter
isEnabled
-
Methods inherited from interface lumis.doui.table.filter.ITableSourceFilter
getQueryFilter
-
-
-
-
Method Detail
-
init
public void init(TableSource source, Node filterNode) throws PortalException
Description copied from interface:ISourceFilter
Initialization method, called before any other method on the filter instance.- Specified by:
init
in interfaceISourceFilter<TableSource>
- Parameters:
source
- the source the filter belongs to.filterNode
- the filter definition node.- Throws:
PortalException
- if the filter could not initialize itself.
-
getFilter
public ITableSourceFilter getFilter(String filterId) throws PortalException
Description copied from interface:ISourceFilter
Returns the filter with the given id. The filter instances should use a chain of responsability with their children to find and return the requested source filter.- Specified by:
getFilter
in interfaceISourceFilter<TableSource>
- Specified by:
getFilter
in interfaceITableSourceFilter
- Parameters:
filterId
- the filter id.- Returns:
- return the filter instance or null if the corresponding filter was not found.
- Throws:
PortalException
-
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>
- Returns:
- the input control type, or null if there is no frontend for this filter instance.
- Throws:
PortalException
-
getId
public String getId()
-
setId
public void setId(String id)
-
getSource
public TableSource getSource()
-
setSource
public void setSource(TableSource source)
-
-