public class FormattedCellEditor
extends javax.swing.DefaultCellEditor
implements javax.swing.event.DocumentListener
| Constructor and Description |
|---|
FormattedCellEditor(java.lang.Class<?> type,
TableColumnAttributes attributes,
int touchscreenMode,
int clickCountToStart)
Creates a new cell editor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
changedUpdate(javax.swing.event.DocumentEvent e) |
java.lang.Object |
getCellEditorValue() |
java.awt.Component |
getTableCellEditorComponent(javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
int row,
int column) |
void |
insertUpdate(javax.swing.event.DocumentEvent e) |
void |
removeUpdate(javax.swing.event.DocumentEvent e) |
boolean |
stopCellEditing() |
cancelCellEditing, getClickCountToStart, getComponent, getTreeCellEditorComponent, isCellEditable, setClickCountToStart, shouldSelectCelladdCellEditorListener, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListenerpublic FormattedCellEditor(java.lang.Class<?> type,
TableColumnAttributes attributes,
int touchscreenMode,
int clickCountToStart)
type - The type of the column being editedtouchscreenMode - -1 to turn on touchscreen mode. Anything else turns touchscreen mode off. See
PMITable.TOUCH_SCREEN_MODE_AUTOpublic java.awt.Component getTableCellEditorComponent(javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
int row,
int column)
getTableCellEditorComponent in interface javax.swing.table.TableCellEditorgetTableCellEditorComponent in class javax.swing.DefaultCellEditorpublic java.lang.Object getCellEditorValue()
getCellEditorValue in interface javax.swing.CellEditorgetCellEditorValue in class javax.swing.DefaultCellEditorpublic boolean stopCellEditing()
stopCellEditing in interface javax.swing.CellEditorstopCellEditing in class javax.swing.DefaultCellEditorpublic void insertUpdate(javax.swing.event.DocumentEvent e)
insertUpdate in interface javax.swing.event.DocumentListenerpublic void removeUpdate(javax.swing.event.DocumentEvent e)
removeUpdate in interface javax.swing.event.DocumentListenerpublic void changedUpdate(javax.swing.event.DocumentEvent e)
changedUpdate in interface javax.swing.event.DocumentListener