|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This interface describes the filters for fields in an AutoFilter.
AutoFilter| Inner Class Summary | |
static class |
Filter.EOperator
Enumeration class for defining operators. |
| Field Summary | |
static int |
kMaxTop10Value
The maximum number of items that can be shown in a top 10 filter. |
| Method Summary | |
void |
apply(boolean isTop,
int numItems,
boolean wantPercentage)
Apply top 10 criteria to filter this field. |
void |
apply(java.lang.String criteria)
Applies the given criteria and filters the field. |
void |
apply(java.lang.String criteria1,
Filter.EOperator op,
java.lang.String criteria2)
Applies the given criteria and filters the field. |
java.lang.String |
getCriteria1()
Returns the value of first criteria. |
java.lang.String |
getCriteria2()
Returns the value of second criteria. |
java.lang.String |
getName()
Returns the field name. |
int |
getNumUniqueValues()
Returns the number of unique values in this field. |
Filter.EOperator |
getOperator()
Returns the operator that is currently being used in this filter. |
int |
getTop10Criteria()
Returns the number of items to show in top 10 filter. |
java.lang.String |
getUniqueValue(int index)
Returns the unique value in the field at the specified index. |
boolean |
isOn()
Indicates whether the filter is currently on (hiding data). |
void |
showAll()
Shows all of the items in the filter. |
| Methods inherited from interface com.f1j.util.Lockable |
getLock,
releaseLock |
| Field Detail |
public static final int kMaxTop10Value
| Method Detail |
public void apply(java.lang.String criteria)
throws F1Exception
criteria - The criteria that should be used to filter this field
(example: ">=abc"). Use "=" to find blank fields, or use "<>" to find
nonblank fields.
public void apply(java.lang.String criteria1,
Filter.EOperator op,
java.lang.String criteria2)
throws F1Exception
criteria1 - The criteria that should be used to filter this field
(example: ">=abc"). Use "=" to find blank fields, or use "<>" to find
nonblank fields.op - Th operator that should be used to filter this field.criteria2 - An optional second criteria that can be used to
filter this field. Use null if no second criteria.Filter.EOperator
public void apply(boolean isTop,
int numItems,
boolean wantPercentage)
throws F1Exception
isTop - true = if want top items to be displayed rather
than bottom items.numItems - Indicates the number of items to show or the percentage
if wantPercentage is true.wantPercentage - true = if want top percentage of
items rather than the number of items.public java.lang.String getCriteria1()
public java.lang.String getCriteria2()
public java.lang.String getName()
public int getNumUniqueValues()
public Filter.EOperator getOperator()
Filter.EOperatorpublic int getTop10Criteria()
public java.lang.String getUniqueValue(int index)
public boolean isOn()
true if the filter is currently on.
public void showAll()
throws F1Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||