Class CustomDateFilter
- java.lang.Object
-
- com.inductiveautomation.factorypmi.plugins.reporting.components.rowselector.AbstractFilter
-
- com.inductiveautomation.factorypmi.plugins.reporting.components.rowselector.CustomDateFilter
-
- All Implemented Interfaces:
Filter
public class CustomDateFilter extends AbstractFilter
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CustomDateFilter.DateKey
-
Field Summary
-
Fields inherited from class com.inductiveautomation.factorypmi.plugins.reporting.components.rowselector.AbstractFilter
columnIndex, columnName, datasetInspected, icon, iconPath, isReverseSort
-
-
Constructor Summary
Constructors Constructor Description CustomDateFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Comparable
classifyObject(java.lang.Object obj)
Filter
copyFilter()
Creates a copy of this filter.java.lang.String
getDateFormatString()
int
getDistributionEstimate()
Given an evenly distributed dataset, how many different classification keys should be expected from this Filter? For instance, a Month filter would return 12, a Day-of-week filter would return 7, while a Year filter would simply return some guess.void
invalidateCache()
Called when the dataset being passed to classify has changed.void
setDateFormatString(java.lang.String dateFormatString)
java.lang.String
toString()
-
Methods inherited from class com.inductiveautomation.factorypmi.plugins.reporting.components.rowselector.AbstractFilter
classify, copyProps, getColumnName, getIconPath, isReverseSort, setColumnName, setIconPath, setIsReverseSort
-
-
-
-
Method Detail
-
classifyObject
public java.lang.Comparable classifyObject(java.lang.Object obj)
- Specified by:
classifyObject
in classAbstractFilter
-
getDistributionEstimate
public int getDistributionEstimate()
Description copied from interface:Filter
Given an evenly distributed dataset, how many different classification keys should be expected from this Filter? For instance, a Month filter would return 12, a Day-of-week filter would return 7, while a Year filter would simply return some guess. This isn't critical, it is used to try and give arrays reasonable initial sizes so they don't have to re-allocate frequently.
-
copyFilter
public Filter copyFilter()
Description copied from interface:Filter
Creates a copy of this filter. Used for the customizer
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
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
- Overrides:
invalidateCache
in classAbstractFilter
-
getDateFormatString
public java.lang.String getDateFormatString()
-
setDateFormatString
public void setDateFormatString(java.lang.String dateFormatString)
-
-