org.jsqltool.gui.graphics
Class DateCellEditor
java.lang.Object
|
+--javax.swing.AbstractCellEditor
|
+--org.jsqltool.gui.graphics.DateCellEditor
- All Implemented Interfaces:
- javax.swing.CellEditor, java.io.Serializable, javax.swing.table.TableCellEditor
- public class DateCellEditor
- extends javax.swing.AbstractCellEditor
- implements javax.swing.table.TableCellEditor
Title: JSqlTool Project
Description: Editor for date cell: it contains a date input field (read only) + combo box for set a date from a calendar.
Copyright: Copyright (C) 2006 Mauro Carniel
This file is part of JSqlTool project.
This library is free software; you can redistribute it and/or
modify it under the terms of the (LGPL) Lesser General Public
License as published by the Free Software Foundation;
GNU LESSER GENERAL PUBLIC LICENSE
Version 2.1, February 1999
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
The author may be contacted at:
maurocarniel@tin.it
- See Also:
- Serialized Form
|
Field Summary |
protected java.sql.Timestamp |
startVal
|
| Fields inherited from class javax.swing.AbstractCellEditor |
changeEvent, listenerList |
| 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 |
startVal
protected java.sql.Timestamp startVal
DateCellEditor
public DateCellEditor()
getTableCellEditorComponent
public java.awt.Component getTableCellEditorComponent(javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
int row,
int column)
- Specified by:
getTableCellEditorComponent in interface javax.swing.table.TableCellEditor
- Parameters:
table - - the table we are in.value - - starting value, before editingisSelected - - true => the cell is selected.row - - the row of this cell, in case you caredcolumn - - thye column, in case you cared.
- Returns:
- The component that will be placed on the screen where the user
will enter a new value for the given cell.
getCellEditorValue
public java.lang.Object getCellEditorValue()
- Specified by:
getCellEditorValue in interface javax.swing.CellEditor