Copyright © 2011 Citra Technologies. All Rights Reserved.

com.citra.filter
Class BooleanVisualFilter

java.lang.Object
  extended by com.citra.filter.VisualFilter
      extended by com.citra.filter.BooleanVisualFilter

public class BooleanVisualFilter
extends VisualFilter

A VisualFilter for Boolean values.


Field Summary
protected  BooleanFilter booleanFilter
          a boolean filter object used to filter Boolean values.
protected  JComboBox fieldBoxOptions
          a combobox containing the filter options.
 
Fields inherited from class com.citra.filter.VisualFilter
anyKey, filterModel
 
Constructor Summary
BooleanVisualFilter()
          Constructs a BooleanVisualFilter.
 
Method Summary
 JComboBox getFieldBoxOptions()
          Returns a combobox containing the filter options.
 Filter getFilter()
          Returns the filter object that this component uses to filter the values.
 JPanel getPanel()
          Returns the panel containing the controls used to manipulate the filter.
 TableFilter getTableFilter()
          Returns a table filter object corresponding to the visual controls of the filter.
 void setFilter(Filter filter)
          Assigns a filter object that this component uses to filter the values.
 void setTableFilter(TableFilter tf)
          This method should modify the visual control's values to those corresponding to the supplied TableFilter object.
 boolean shouldApplyFilter()
          Returns true if the current filter should be applied, false otherwise.
 
Methods inherited from class com.citra.filter.VisualFilter
fireFilter, getFilterModel, getFilterOnKey, setFilterOnKey
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fieldBoxOptions

protected JComboBox fieldBoxOptions
a combobox containing the filter options.


booleanFilter

protected BooleanFilter booleanFilter
a boolean filter object used to filter Boolean values.

Constructor Detail

BooleanVisualFilter

public BooleanVisualFilter()
Constructs a BooleanVisualFilter.

Method Detail

getFieldBoxOptions

public JComboBox getFieldBoxOptions()
Returns a combobox containing the filter options.

Returns:
the 'filter' combobox.

getFilter

public Filter getFilter()
Returns the filter object that this component uses to filter the values.

Specified by:
getFilter in class VisualFilter
Returns:
a filter

getPanel

public JPanel getPanel()
Returns the panel containing the controls used to manipulate the filter.

Specified by:
getPanel in class VisualFilter
Returns:
a panel with controls used in filtering.

getTableFilter

public TableFilter getTableFilter()
Returns a table filter object corresponding to the visual controls of the filter.

Specified by:
getTableFilter in class VisualFilter
Returns:
a table filter

setTableFilter

public void setTableFilter(TableFilter tf)
This method should modify the visual control's values to those corresponding to the supplied TableFilter object.

Specified by:
setTableFilter in class VisualFilter
Parameters:
tf - the TableFilter to set.

shouldApplyFilter

public boolean shouldApplyFilter()
Returns true if the current filter should be applied, false otherwise. Sometimes, can opt NOT to filter, e.g. if a number or a date is not parseable.

Specified by:
shouldApplyFilter in class VisualFilter
Returns:
true if the filter should be applied

setFilter

public void setFilter(Filter filter)
Assigns a filter object that this component uses to filter the values.

Specified by:
setFilter in class VisualFilter
Parameters:
filter - the filter to assign

Copyright © 2011 Citra Technologies. All Rights Reserved.