| 
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.AbstractCellEditor
com.jidesoft.grid.AbstractJideCellEditor
com.jidesoft.grid.ContextSensitiveCellEditor
com.jidesoft.grid.FormattedTextFieldCellEditor
public class FormattedTextFieldCellEditor
This is a CellEditor which will assume userObject of a converter context as JFormattedTextField.AbstractFormatter and use it on a FormattedTextField.
| Field Summary | |
|---|---|
protected  JFormattedTextField | 
_textField
 | 
| Fields inherited from class com.jidesoft.grid.ContextSensitiveCellEditor | 
|---|
DEFAULT_CELL_EDITOR_BORDER | 
| Fields inherited from class com.jidesoft.grid.AbstractJideCellEditor | 
|---|
_clickCountToStart | 
| Fields inherited from class javax.swing.AbstractCellEditor | 
|---|
changeEvent, listenerList | 
| Constructor Summary | |
|---|---|
FormattedTextFieldCellEditor()
Creates a FormattedTextFieldCellEditor with no format and String as default class.  | 
|
FormattedTextFieldCellEditor(Class<?> clazz)
Creates a FormattedTextFieldCellEditor with no format and specified class.  | 
|
FormattedTextFieldCellEditor(Class<?> clazz,
                             Format format)
Creates a FormattedTextFieldCellEditor with specified class and format.  | 
|
FormattedTextFieldCellEditor(Class<?> clazz,
                             JFormattedTextField.AbstractFormatter formatter)
Creates a FormattedTextFieldCellEditor with specified class and formatter.  | 
|
| Method Summary | |
|---|---|
protected  JFormattedTextField | 
createFormattedTextField(Format format)
Creates the formatted text field used by this cell editor.  | 
protected  JFormattedTextField | 
createFormattedTextField(JFormattedTextField.AbstractFormatter formatter)
Creates the formatted text field used by this cell editor.  | 
protected  void | 
customizeTextField()
 | 
 void | 
focusGained(FocusEvent e)
 | 
 void | 
focusLost(FocusEvent e)
 | 
 Object | 
getCellEditorValue()
 | 
protected  JFormattedTextField.AbstractFormatterFactory | 
getFormatFactory()
 | 
 Component | 
getTableCellEditorComponent(JTable table,
                            Object value,
                            boolean isSelected,
                            int row,
                            int column)
 | 
 boolean | 
isEditorStyleSupported(int editorStyle)
Checks if the editor style is supported by the cell editor.  | 
 void | 
setCellEditorValue(Object value)
 | 
 void | 
setConverterContext(ConverterContext context)
Set the converter context for the cell editor.  | 
protected  void | 
setupTextField()
 | 
| Methods inherited from class com.jidesoft.grid.ContextSensitiveCellEditor | 
|---|
getConverter, getConverterContext, getEditorContext, getEditorStyle, getType, isUseConverterContext, setConverter, setEditorContext, setEditorStyle, setType, setUseConverterContext | 
| Methods inherited from class com.jidesoft.grid.AbstractJideCellEditor | 
|---|
addValidationListener, getClickCountToStart, getDefaultErrorBehavior, getValidationListeners, isAutoStopCellEditing, isCellEditable, isPassEnterKeyToTable, removeValidationListener, setAutoStopCellEditing, setClickCountToStart, setDefaultErrorBehavior, setPassEnterKeyToTable, validate | 
| Methods inherited from class javax.swing.AbstractCellEditor | 
|---|
addCellEditorListener, cancelCellEditing, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, 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 | 
| Field Detail | 
|---|
protected JFormattedTextField _textField
| Constructor Detail | 
|---|
public FormattedTextFieldCellEditor()
public FormattedTextFieldCellEditor(Class<?> clazz)
clazz - the type.
public FormattedTextFieldCellEditor(Class<?> clazz,
                                    Format format)
clazz - the type.format - Format used to look up an AbstractFormatter
public FormattedTextFieldCellEditor(Class<?> clazz,
                                    JFormattedTextField.AbstractFormatter formatter)
clazz - the type.formatter - AbstractFormatter to use for formatting.| Method Detail | 
|---|
protected JFormattedTextField createFormattedTextField(Format format)
format - Format used to look up an AbstractFormatter
protected JFormattedTextField createFormattedTextField(JFormattedTextField.AbstractFormatter formatter)
formatter - AbstractFormatter to use for formatting.
protected void customizeTextField()
protected void setupTextField()
public void setConverterContext(ConverterContext context)
ContextSensitiveCellEditorContextSensitiveCellEditor.isUseConverterContext() to decide
 if the editor should use the cell's converter context or use null always.
setConverterContext in interface ConverterContextSupportsetConverterContext in class ContextSensitiveCellEditorcontext - the converter contextContextSensitiveCellEditor.getConverterContext()public Object getCellEditorValue()
getCellEditorValue in interface CellEditorpublic void setCellEditorValue(Object value)
public Component getTableCellEditorComponent(JTable table,
                                             Object value,
                                             boolean isSelected,
                                             int row,
                                             int column)
getTableCellEditorComponent in interface TableCellEditorpublic void focusLost(FocusEvent e)
focusLost in interface FocusListenerpublic void focusGained(FocusEvent e)
focusGained in interface FocusListenerprotected JFormattedTextField.AbstractFormatterFactory getFormatFactory()
public boolean isEditorStyleSupported(int editorStyle)
EditorStyleSupport
isEditorStyleSupported in interface EditorStyleSupportisEditorStyleSupported in class ContextSensitiveCellEditoreditorStyle - the editor style
  | 
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||