|
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
public abstract class ContextSensitiveCellEditor
CellEditor which can accept ConverterContext. All CellEditor we built extends this class.
| Field Summary | |
|---|---|
static Border |
DEFAULT_CELL_EDITOR_BORDER
Default cell editor border. |
| Fields inherited from class com.jidesoft.grid.AbstractJideCellEditor |
|---|
_clickCountToStart |
| Fields inherited from class javax.swing.AbstractCellEditor |
|---|
changeEvent, listenerList |
| Constructor Summary | |
|---|---|
ContextSensitiveCellEditor()
Creates a context sensitive cell editor. |
|
ContextSensitiveCellEditor(ConverterContext context)
Creates a context sensitive cell editor using the converter context. |
|
| Method Summary | |
|---|---|
ObjectConverter |
getConverter()
Gets the object converter. |
ConverterContext |
getConverterContext()
Gets the converter context. |
EditorContext |
getEditorContext()
Gets the editor context. |
int |
getEditorStyle()
|
Class<?> |
getType()
Gets the class of the value. |
boolean |
isEditorStyleSupported(int editorStyle)
Checks if the editor style is supported by the cell editor. |
boolean |
isUseConverterContext()
Checks if converter context should be used for editor. |
void |
setConverter(ObjectConverter converter)
Sets a new converter for the cell editor. |
void |
setConverterContext(ConverterContext converterContextForEditor)
Set the converter context for the cell editor. |
void |
setEditorContext(EditorContext context)
Sets the editor context. |
void |
setEditorStyle(int editorStyle)
Sets the editor style to the cell editor. |
void |
setType(Class<?> valueClass)
Sets the class of the value. |
void |
setUseConverterContext(boolean useConverterContext)
Sets if the converter context should be used. |
| 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.table.TableCellEditor |
|---|
getTableCellEditorComponent |
| Methods inherited from interface javax.swing.CellEditor |
|---|
addCellEditorListener, cancelCellEditing, getCellEditorValue, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditing |
| Field Detail |
|---|
public static Border DEFAULT_CELL_EDITOR_BORDER
| Constructor Detail |
|---|
public ContextSensitiveCellEditor()
public ContextSensitiveCellEditor(ConverterContext context)
context - converter context| Method Detail |
|---|
public ConverterContext getConverterContext()
isUseConverterContext() returns false, this method will always return null. Otherwise, it will return
the converter you set by invoking setConverterContext(com.jidesoft.converter.ConverterContext) first, if
you don't set any converter context, the same converter context defined in the ContextSensitiveTableModel for the
editing cell will be returned.
getConverterContext in interface ConverterContextSupportpublic Class<?> getType()
ConverterContextSupport
getType in interface ConverterContextSupportpublic void setType(Class<?> valueClass)
ConverterContextSupport
setType in interface ConverterContextSupportpublic ObjectConverter getConverter()
public void setConverter(ObjectConverter converter)
converter - the new converterpublic boolean isUseConverterContext()
setUseConverterContext(boolean)public void setUseConverterContext(boolean useConverterContext)
useConverterContext - true or false. True to use converter context. Otherwise false.public EditorContext getEditorContext()
getEditorContext in interface EditorContextSupportpublic void setEditorContext(EditorContext context)
setEditorContext in interface EditorContextSupportcontext - editor contextpublic void setConverterContext(ConverterContext converterContextForEditor)
isUseConverterContext() to decide
if the editor should use the cell's converter context or use null always.
setConverterContext in interface ConverterContextSupportconverterContextForEditor - the converter contextgetConverterContext()public boolean isEditorStyleSupported(int editorStyle)
EditorStyleSupport
isEditorStyleSupported in interface EditorStyleSupporteditorStyle - the editor style
public void setEditorStyle(int editorStyle)
EditorStyleSupport
setEditorStyle in interface EditorStyleSupporteditorStyle - the editor stylepublic int getEditorStyle()
|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||