|
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.DateVisualFilter
public class DateVisualFilter
A VisualFilter for Date values. A textfield is used to show the date pattern. If the textfield is clicked with the mouse, a dialog is invoked, through which the date pattern can be selected.
Field Summary | |
---|---|
protected JDateChooser |
dateChooser
the datechooser that is contained in the dialog |
protected DateFilter |
dateFilter
a date filter object used to filter Date values. |
protected Date |
dateShown
the selected date |
protected DateFormat |
df
the dateformat instance that is used to format the current date shown on the textfield. |
protected JDialog |
dialog
the dialog that is invoked for inputting the date pattern |
protected JTextField |
expression
a textfield used to show and input the date pattern. |
protected JComboBox |
fieldBoxOptions
a combobox containing the filter options. |
protected JLabel |
filterLabel
the label between the filter options combo box and the expression |
protected JCheckBox |
ignoreTime
a checkbox used to denote whether time differences should be considered when filtering. |
protected boolean |
selectCurrentDateIfNull
flag that indicates whether the current date should be selected when showing the date dialog, if there is no selection date. |
Fields inherited from class com.sciapp.filter.VisualFilter |
---|
anyKey, filterModel |
Constructor Summary | |
---|---|
DateVisualFilter()
Constructs a DateVisualFilter. |
Method Summary | |
---|---|
protected void |
bringUpDialog()
Displays the date chooser dialog |
JDateChooser |
getDateChooser()
Returns the date chooser that is shown to the user. |
DateFormat |
getDateFormat()
Returns the dateformat object associated with this date visual filter. |
JTextField |
getExpression()
Returns a textfield that is used to display and allow input of the date 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. |
JCheckBox |
getIgnoreTime()
Returns a checkbox that is used to show whether time differences should be considered when filtering. |
JPanel |
getPanel()
Returns the panel containing the controls used to manipulate the filter. |
boolean |
getSelectCurrentDateIfNull()
Determines whether to select the current date when the date chooser is displayed, if the selected date is null. |
TableFilter |
getTableFilter()
Returns a table filter object corresponding to the visual controls of the filter. |
protected void |
setDate(Date d)
Assigns the supplied date to the expression text field and to the date filter of this visual filter. |
void |
setDateFormat(DateFormat dateFormat)
Assigns a new dateformat. |
void |
setSelectCurrentDateIfNull(boolean selectCurrentDateIfNull)
Determines whether to select the current date when the date chooser is displayed, if the selected date is null. |
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 boolean selectCurrentDateIfNull
protected JCheckBox ignoreTime
protected JComboBox fieldBoxOptions
protected JTextField expression
protected DateFilter dateFilter
protected JDateChooser dateChooser
protected JDialog dialog
protected Date dateShown
protected JLabel filterLabel
protected DateFormat df
Constructor Detail |
---|
public DateVisualFilter()
Method Detail |
---|
protected void bringUpDialog()
public JDateChooser getDateChooser()
public DateFormat getDateFormat()
public JTextField getExpression()
public JComboBox getFieldBoxOptions()
public Filter getFilter()
getFilter
in class VisualFilter
public JLabel getFilterLabel()
public JCheckBox getIgnoreTime()
public JPanel getPanel()
getPanel
in class VisualFilter
public boolean getSelectCurrentDateIfNull()
public TableFilter getTableFilter()
getTableFilter
in class VisualFilter
protected void setDate(Date d)
d
- the date object to assign.public void setDateFormat(DateFormat dateFormat)
dateFormat
- the date format object to assignpublic void setSelectCurrentDateIfNull(boolean selectCurrentDateIfNull)
selectCurrentDateIfNull
- true, if the current date is to be set, false otherwisepublic 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 |