Class AbstractFilter
java.lang.Object
com.inductiveautomation.factorypmi.plugins.reporting.components.rowselector.AbstractFilter
- All Implemented Interfaces:
Filter
- Direct Known Subclasses:
CustomDateFilter
,DayFilter
,DiscreteFilter
,MonthFilter
,ShiftFilter
,StringFilter
,YearFilter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int
Transient column index numberprotected String
The column name in which to find the date.protected boolean
Transient flag for validation attemptedprotected PathIcon
The icon for this node itselfprotected String
The path to the icon to be displayed.protected boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a classification key for the given row in the dataset.abstract Comparable
classifyObject
(Object obj) protected void
copyProps
(AbstractFilter that) Returns the name of the column that this filter looks atvoid
Called when the dataset being passed to classify has changed.boolean
void
setColumnName
(String columnName) Sets the column that the filter looks atvoid
setIconPath
(String iconPath) void
setIsReverseSort
(boolean isReverseSort) Deprecated.void
setReverseSort
(boolean isReverseSort) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.inductiveautomation.factorypmi.plugins.reporting.components.rowselector.Filter
copyFilter, getDistributionEstimate
-
Field Details
-
columnName
The column name in which to find the date. -
iconPath
The path to the icon to be displayed. Can be null. -
icon
The icon for this node itself -
datasetInspected
protected boolean datasetInspectedTransient flag for validation attempted -
columnIndex
protected int columnIndexTransient column index number -
isReverseSort
protected boolean isReverseSort
-
-
Constructor Details
-
AbstractFilter
public AbstractFilter()
-
-
Method Details
-
getColumnName
Description copied from interface:Filter
Returns the name of the column that this filter looks at- Specified by:
getColumnName
in interfaceFilter
-
setColumnName
Description copied from interface:Filter
Sets the column that the filter looks at- Specified by:
setColumnName
in interfaceFilter
-
classify
Description copied from interface:Filter
Returns a classification key for the given row in the dataset. If the row can't be classified for some reason, like the classification column not exsiting, null should be returned. -
invalidateCache
public void invalidateCache()Description copied from interface:Filter
Called when the dataset being passed to classify has changed. This is used for Filters who do some work up front on the DataSet the first time classify is called, such as calculating the column index that they are working on.- Specified by:
invalidateCache
in interfaceFilter
-
classifyObject
-
getIconPath
- Specified by:
getIconPath
in interfaceFilter
-
setIconPath
- Specified by:
setIconPath
in interfaceFilter
-
isReverseSort
public boolean isReverseSort()- Specified by:
isReverseSort
in interfaceFilter
-
setReverseSort
public void setReverseSort(boolean isReverseSort) - Specified by:
setReverseSort
in interfaceFilter
-
setIsReverseSort
Deprecated.This was the old method signature that caused IGN-1897. Leaving it here on the off chance somebody was calling this method from scripting. -
copyProps
-