|
Copyright © 2005 Scientific Applications. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sciapp.filter.VisualFilter
com.sciapp.filter.NumericalVisualFilter
public class NumericalVisualFilter
A VisualFilter for numeric values.
Field Summary | |
---|---|
protected JTextField |
expression
a textfield used to input the number. |
protected JComboBox |
fieldBoxOptions
a combobox containing the filter options. |
protected JLabel |
filterLabel
the label between the filter options combo box and the expression |
protected NumberFormat |
nf
the numberformat instance that is used to format the number shown on the textfield. |
protected NumberFilter |
numberFilter
a numeric filter object used to filter Number objects. |
Fields inherited from class com.sciapp.filter.VisualFilter |
---|
anyKey, filterModel |
Constructor Summary | |
---|---|
NumericalVisualFilter(NumberFilter numberFilter)
Constructs a NumericVisualFilter. |
Method Summary | |
---|---|
JTextField |
getExpression()
Returns a textfield that is used to display and allow input of the numerical pattern. |
JComboBox |
getFieldBoxOptions()
Returns a combobox containing the filter options. |
Filter |
getFilter()
Returns the filter object that this component uses to filter the values. |
JLabel |
getFilterLabel()
Returns a label between the filter options combo box and the expression textfield. |
NumberFormat |
getNumberFormat()
Returns the numberformat object associated with this numerical visual filter. |
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. |
protected void |
setNumber(Number n)
Assigns the supplied number to the expression text field and to the number filter of this visual filter. |
void |
setNumberFormat(NumberFormat numberFormat)
Assigns a new numberformat. |
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.sciapp.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 |
---|
protected JComboBox fieldBoxOptions
protected NumberFilter numberFilter
protected JTextField expression
protected JLabel filterLabel
protected NumberFormat nf
Constructor Detail |
---|
public NumericalVisualFilter(NumberFilter numberFilter)
Method Detail |
---|
public JTextField getExpression()
public JComboBox getFieldBoxOptions()
public Filter getFilter()
getFilter
in class VisualFilter
public JLabel getFilterLabel()
public NumberFormat getNumberFormat()
public JPanel getPanel()
getPanel
in class VisualFilter
public TableFilter getTableFilter()
getTableFilter
in class VisualFilter
protected void setNumber(Number n)
n
- the number object to assignpublic void setNumberFormat(NumberFormat numberFormat)
numberFormat
- the new number format to assignpublic void setTableFilter(TableFilter tf)
setTableFilter
in class VisualFilter
tf
- the TableFilter to set.public boolean shouldApplyFilter()
shouldApplyFilter
in class VisualFilter
|
Copyright © 2005 Scientific Applications. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |