|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sciapp.filter.BooleanFilter
public class BooleanFilter
A boolean filter. This filter does not depend on a pattern object. It performs filtering according to the operation mode, which can be either TRUE or FALSE.
| Field Summary | |
|---|---|
static int |
FALSE
The mode that tests if a boolean value is false. |
protected int |
mode
The current filter mode. |
protected String[] |
options
The options presented to the user. |
protected boolean |
pattern
The filter pattern used as a boolean value. |
static int |
TRUE
The mode that tests if a boolean value is true. |
| Constructor Summary | |
|---|---|
BooleanFilter()
Constructs a BooleanFilter. |
|
| Method Summary | |
|---|---|
boolean |
accept(boolean b)
Matches the boolean value b against the current filter. |
boolean |
accept(Object o)
Matches a specified object against the current filter. |
String[] |
getDescriptions()
Returns a string array representing the filter options presented to the user. |
int |
getMode()
Returns the current filter operation mode. |
Object |
getPattern()
Returns the object used as the filter pattern. |
void |
setMode(int mode)
Sets the operation mode of the filter. |
void |
setPattern(boolean pattern)
Sets the filter pattern as a boolean value. |
void |
setPattern(Object pattern)
Defines an abstract object to be used as the filter pattern. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int TRUE
public static final int FALSE
protected boolean pattern
protected int mode
protected String[] options
| Constructor Detail |
|---|
public BooleanFilter()
| Method Detail |
|---|
public boolean accept(Object o)
accept in interface Filtero - the object we want to match
public boolean accept(boolean b)
b against the current filter.
b - a boolean value
public String[] getDescriptions()
getDescriptions in interface Filterpublic int getMode()
getMode in interface Filterpublic Object getPattern()
getPattern in interface Filterpublic void setMode(int mode)
setMode in interface Filtermode - the operation modepublic void setPattern(Object pattern)
setPattern in interface Filterpattern - the filter patternpublic void setPattern(boolean pattern)
pattern - the filter pattern
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||