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, shouldSelectCell
addCellEditorListener, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListener
public FormattedCellEditor(java.lang.Class<?> type, TableColumnAttributes attributes, int touchscreenMode, int clickCountToStart)
type
- The type of the column being editedattributes
- touchscreenMode
- -1 to turn on touchscreen mode. Anything else turns touchscreen mode off. See
PMITable.TOUCH_SCREEN_MODE_AUTO
clickCountToStart
- 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
getTableCellEditorComponent
in class javax.swing.DefaultCellEditor
public java.lang.Object getCellEditorValue()
getCellEditorValue
in interface javax.swing.CellEditor
getCellEditorValue
in class javax.swing.DefaultCellEditor
public boolean stopCellEditing()
stopCellEditing
in interface javax.swing.CellEditor
stopCellEditing
in class javax.swing.DefaultCellEditor
public void insertUpdate(javax.swing.event.DocumentEvent e)
insertUpdate
in interface javax.swing.event.DocumentListener
public void removeUpdate(javax.swing.event.DocumentEvent e)
removeUpdate
in interface javax.swing.event.DocumentListener
public void changedUpdate(javax.swing.event.DocumentEvent e)
changedUpdate
in interface javax.swing.event.DocumentListener