|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.AbstractCellEditor
org.jdesktop.swingx.table.DatePickerCellEditor
public class DatePickerCellEditor
A CellEditor using a JXDatePicker as editor component.
NOTE: this class will be moved!
| Constructor Summary | |
|---|---|
DatePickerCellEditor()
Instantiates a editor with the default dateFormat. |
|
DatePickerCellEditor(java.text.DateFormat dateFormat)
Instantiates an editor with the given dateFormat. |
|
| Method Summary | |
|---|---|
java.util.Date |
getCellEditorValue()
Returns the pickers date. |
int |
getClickCountToStart()
Returns the number of clicks needed to start editing. |
java.text.DateFormat[] |
getFormats()
|
java.awt.Component |
getTableCellEditorComponent(javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
int row,
int column)
|
java.awt.Component |
getTreeCellEditorComponent(javax.swing.JTree tree,
java.lang.Object value,
boolean isSelected,
boolean expanded,
boolean leaf,
int row)
|
boolean |
isCellEditable(java.util.EventObject anEvent)
|
void |
setClickCountToStart(int count)
Specifies the number of clicks needed to start editing. |
void |
setFormats(java.text.DateFormat... formats)
|
boolean |
stopCellEditing()
Overridden to commit pending edits. |
| Methods inherited from class javax.swing.AbstractCellEditor |
|---|
addCellEditorListener, cancelCellEditing, getCellEditorListeners, removeCellEditorListener, shouldSelectCell |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.swing.CellEditor |
|---|
addCellEditorListener, cancelCellEditing, removeCellEditorListener, shouldSelectCell |
| Constructor Detail |
|---|
public DatePickerCellEditor()
public DatePickerCellEditor(java.text.DateFormat dateFormat)
dateFormat - | Method Detail |
|---|
public java.util.Date getCellEditorValue()
getCellEditorValue in interface javax.swing.CellEditorpublic boolean isCellEditable(java.util.EventObject anEvent)
isCellEditable in interface javax.swing.CellEditorisCellEditable in class javax.swing.AbstractCellEditorpublic boolean stopCellEditing()
Overridden to commit pending edits. If commit successful, returns super, else returns false.
stopCellEditing in interface javax.swing.CellEditorstopCellEditing in class javax.swing.AbstractCellEditorpublic void setClickCountToStart(int count)
count - an int specifying the number of clicks needed to start
editinggetClickCountToStart()public int getClickCountToStart()
public java.awt.Component getTableCellEditorComponent(javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
int row,
int column)
getTableCellEditorComponent in interface javax.swing.table.TableCellEditor
public java.awt.Component getTreeCellEditorComponent(javax.swing.JTree tree,
java.lang.Object value,
boolean isSelected,
boolean expanded,
boolean leaf,
int row)
getTreeCellEditorComponent in interface javax.swing.tree.TreeCellEditorpublic java.text.DateFormat[] getFormats()
JXDatePicker.getFormats().public void setFormats(java.text.DateFormat... formats)
formats - the formats to use in the datepicker.JXDatePicker.setFormats(DateFormat...)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||