Copyright © 2011 Citra Technologies. All Rights Reserved.

com.citra.table.search
Class DateVisualSeeker

java.lang.Object
  extended by com.citra.table.search.VisualSeeker
      extended by com.citra.table.search.DateVisualSeeker

public class DateVisualSeeker
extends VisualSeeker

A VisualSeeker 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 search options.
protected  JCheckBox ignoreTime
          a checkbox used to denote whether time differences should be considered when searching.
 
Fields inherited from class com.citra.table.search.VisualSeeker
anyKey, searchModel
 
Constructor Summary
DateVisualSeeker()
          Constructs a DateVisualSeeker.
 
Method Summary
protected  void bringUpDialog()
          Displays the date chooser dialog
 DateFormat getDateFormat()
          Returns the dateformat object associated with this date visual seeker.
 JTextField getExpression()
          Returns a textfield that is used to display and allow input of the date pattern.
 JComboBox getFieldBoxOptions()
          Returns a combobox containing the search options.
 JCheckBox getIgnoreTime()
          Returns a checkbox that is used to show whether time differences should be considered when searching.
 JPanel getPanel()
          Returns the panel containing the controls used to manipulate the search.
 TableSearch getTableSearch()
          Returns a table search object corresponding to the visual controls of the search.
protected  void setDate(Date d)
          Assigns the supplied date to the expression text field and to the date filter of this visual seeker.
 
Methods inherited from class com.citra.table.search.VisualSeeker
fireSearch, getSearchModel, getSearchOnKey, setSearchOnKey
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ignoreTime

protected JCheckBox ignoreTime
a checkbox used to denote whether time differences should be considered when searching.


fieldBoxOptions

protected JComboBox fieldBoxOptions
a combobox containing the search options.


expression

protected JTextField expression
a textfield used to show and input the date pattern.


dateFilter

protected DateFilter dateFilter
a date filter object used to filter Date values.


dateChooser

protected JDateChooser dateChooser
the datechooser that is contained in the dialog


dialog

protected JDialog dialog
the dialog that is invoked for inputting the date pattern


dateShown

protected Date dateShown
the selected date


df

protected DateFormat df
the dateformat instance that is used to format the current date shown on the textfield.

Constructor Detail

DateVisualSeeker

public DateVisualSeeker()
Constructs a DateVisualSeeker.

Method Detail

bringUpDialog

protected void bringUpDialog()
Displays the date chooser dialog


getDateFormat

public DateFormat getDateFormat()
Returns the dateformat object associated with this date visual seeker.

Returns:
the internal date format object.

getExpression

public JTextField getExpression()
Returns a textfield that is used to display and allow input of the date pattern.

Returns:
the 'date' text field.

getFieldBoxOptions

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

Returns:
the combobox.

getIgnoreTime

public JCheckBox getIgnoreTime()
Returns a checkbox that is used to show whether time differences should be considered when searching.

Returns:
the 'ignore time' checkbox.

getPanel

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

Specified by:
getPanel in class VisualSeeker
Returns:
a panel with controls used in searching.

getTableSearch

public TableSearch getTableSearch()
Returns a table search object corresponding to the visual controls of the search.

Specified by:
getTableSearch in class VisualSeeker
Returns:
a table search

setDate

protected void setDate(Date d)
Assigns the supplied date to the expression text field and to the date filter of this visual seeker.

Parameters:
d - the date object to assign.

Copyright © 2011 Citra Technologies. All Rights Reserved.