Class DatePickerTableCellEditor
java.lang.Object
javax.swing.AbstractCellEditor
be.gaudry.swing.component.table.editors.DatePickerTableCellEditor
- All Implemented Interfaces:
Serializable
,CellEditor
,TableCellEditor
Cell editor for dates.
Allows to set a date by typing it into a text field or by selecting it into a date picker
Provided by the broldev.core.swing project.
- Since:
- 1.0 (Dec 26, 2008), broldev.core.swing 0.0.1-SNAPSHOT dependency
- Version:
- 1.0 (Dec 26, 2008)
- Author:
- Steph GAUDRY
- See Also:
- Serialized Form
-
Field Summary
Fields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList
-
Constructor Summary
ConstructorDescriptionBuilds an instance of the date picker editorDatePickerTableCellEditor(org.jdesktop.swingx.JXDatePicker datePicker)
Builds an instance of the date picker editor with an existingJXDatePicker
-
Method Summary
Modifier and TypeMethodDescriptiongetTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
Methods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, cancelCellEditing, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditing
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface javax.swing.CellEditor
addCellEditorListener, cancelCellEditing, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditing
-
Constructor Details
-
DatePickerTableCellEditor
public DatePickerTableCellEditor()Builds an instance of the date picker editor -
DatePickerTableCellEditor
public DatePickerTableCellEditor(org.jdesktop.swingx.JXDatePicker datePicker)Builds an instance of the date picker editor with an existingJXDatePicker
- Parameters:
datePicker
- date picker to show
-
-
Method Details
-
getTableCellEditorComponent
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)- Specified by:
getTableCellEditorComponent
in interfaceTableCellEditor
-
getCellEditorValue
- Specified by:
getCellEditorValue
in interfaceCellEditor
-