public final class Top10Filter extends Filter
Modifier and Type | Method and Description |
---|---|
FilterType |
getFilterType()
Gets the
FilterType.TOP_10 value. |
double |
getValue()
Gets the top or bottom value to use as the filter criteria.
|
boolean |
isPercent()
Gets a value indicating whether or not to filter by percent value of the column.
|
boolean |
isTop()
Gets a value indicating whether or not to filter by top order.
|
void |
setPercent(boolean percent)
Sets a value indicating whether or not to filter by percent value of the column.
|
void |
setTop(boolean top)
Sets a value indicating whether or not to filter by top order.
|
void |
setValue(double value)
Sets the top or bottom value to use as the filter criteria.
|
String |
toString()
Returns a
String that represents this Top10Filter instance. |
public FilterType getFilterType()
FilterType.TOP_10
value.getFilterType
in class Filter
FilterType.TOP_10
value.public double getValue()
public boolean isPercent()
Gets a value indicating whether or not to filter by percent value of the column. A false
value filters by number of items.
Default value is false
.
true
to filter by percent value of the column; otherwise, false
.public boolean isTop()
Gets a value indicating whether or not to filter by top order. A false
value filters by bottom order.
Default value is true
.
true
to filter by top order; otherwise, false
.public void setPercent(boolean percent)
Sets a value indicating whether or not to filter by percent value of the column. A false
value filters by number of items.
Default value is false
.
percent
- true
to filter by percent value of the column; otherwise, false
.public void setTop(boolean top)
Sets a value indicating whether or not to filter by top order. A false
value filters by bottom order.
Default value is true
.
top
- true
to filter by top order; otherwise, false
.public void setValue(double value)
value
- The top or bottom value to use as the filter criteria.IndexOutOfBoundsException
- Value must be greater than zero.public String toString()
String
that represents this Top10Filter
instance.
This method should be used primarily for debugging purposes and should be considered volatile (format of its return value might change in future versions).
toString
in class Filter
String
that represents this Top10Filter
instance.© GemBox d.o.o. — All rights reserved.