|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EditorStyleSupport
This is a supporting interface for CellEditor to use. If a CellEditor implements this interface and the JTable is an
instance of ContextSensitiveTable, setEditorStyle(int)
will be invoked after checking isEditorStyleSupported(int)
.
TableCellEditor#getTableCellEditorComponent()
.
The available editor style is defined in EditorStyleTableModel
.
ContextSensitiveCellEditor
is an abstract class which implements this interface. If you already
extended that class, all you have to do is to override ContextSensitiveCellEditor.isEditorStyleSupported(int)
to enable more editor styles than just EditorStyleTableModel.EDITOR_STYLE_NORMAL
and
EditorStyleTableModel.EDITOR_STYLE_EDITABLE
only then configure your cell editor if you happen to override the
getTableCellEditorComponent()
method or implement it by yourself.
Method Summary | |
---|---|
boolean |
isEditorStyleSupported(int editorStyle)
Checks if the editor style is supported by the cell editor. |
void |
setEditorStyle(int editorStyle)
Sets the editor style to the cell editor. |
Method Detail |
---|
boolean isEditorStyleSupported(int editorStyle)
editorStyle
- the editor style
void setEditorStyle(int editorStyle)
editorStyle
- the editor style
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |