Class FormattedCellEditor
java.lang.Object
javax.swing.AbstractCellEditor
javax.swing.DefaultCellEditor
com.inductiveautomation.factorypmi.application.components.table.FormattedCellEditor
- All Implemented Interfaces:
- Serializable,- EventListener,- CellEditor,- DocumentListener,- TableCellEditor,- TreeCellEditor
A TableCellEditor that can handle numbers and dates using a formatted text field. Expects to be installed on a vision
 table component, and supports touchscreen mode.
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from class javax.swing.DefaultCellEditorDefaultCellEditor.EditorDelegate
- 
Field SummaryFields inherited from class javax.swing.DefaultCellEditorclickCountToStart, delegate, editorComponentFields inherited from class javax.swing.AbstractCellEditorchangeEvent, listenerList
- 
Constructor SummaryConstructorsConstructorDescriptionFormattedCellEditor(Class<?> type, TableColumnAttributes attributes, int touchscreenMode, int clickCountToStart) Creates a new cell editor.
- 
Method SummaryModifier and TypeMethodDescriptionvoidgetTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) voidvoidbooleanMethods inherited from class javax.swing.DefaultCellEditorcancelCellEditing, getClickCountToStart, getComponent, getTreeCellEditorComponent, isCellEditable, setClickCountToStart, shouldSelectCellMethods inherited from class javax.swing.AbstractCellEditoraddCellEditorListener, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListenerMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.swing.CellEditoraddCellEditorListener, removeCellEditorListener
- 
Constructor Details- 
FormattedCellEditorpublic FormattedCellEditor(Class<?> type, TableColumnAttributes attributes, int touchscreenMode, int clickCountToStart) Creates a new cell editor.- Parameters:
- type- The type of the column being edited
- touchscreenMode- -1 to turn on touchscreen mode. Anything else turns touchscreen mode off. See- PMITable.TOUCH_SCREEN_MODE_AUTO
 
 
- 
- 
Method Details- 
getTableCellEditorComponentpublic Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) - Specified by:
- getTableCellEditorComponentin interface- TableCellEditor
- Overrides:
- getTableCellEditorComponentin class- DefaultCellEditor
 
- 
getCellEditorValue- Specified by:
- getCellEditorValuein interface- CellEditor
- Overrides:
- getCellEditorValuein class- DefaultCellEditor
 
- 
stopCellEditingpublic boolean stopCellEditing()- Specified by:
- stopCellEditingin interface- CellEditor
- Overrides:
- stopCellEditingin class- DefaultCellEditor
 
- 
insertUpdate- Specified by:
- insertUpdatein interface- DocumentListener
 
- 
removeUpdate- Specified by:
- removeUpdatein interface- DocumentListener
 
- 
changedUpdate- Specified by:
- changedUpdatein interface- DocumentListener
 
 
-