JIDE 3.5.15

com.jidesoft.grid
Interface EditorStyleSupport

All Known Implementing Classes:
AbstractComboBoxCellEditor, AbstractTableCellEditorRenderer, BeanProperty, BooleanCellEditor, BooleanCheckBoxCellEditor, ButtonTableCellEditorRenderer, ByteCellEditor, CalculatorCellEditor, CheckBoxListComboBoxCellEditor, CheckBoxTreeComboBoxCellEditor, ChildBeanProperty, ColorCellEditor, ContextSensitiveCellEditor, DateCellEditor, DefaultProperty, DimensionCellEditor, DoubleCellEditor, EnumCellEditor, ExComboBoxCellEditor, FileCellEditor, FileNameCellEditor, FloatCellEditor, FolderCellEditor, FolderNameCellEditor, FontCellEditor, FontNameCellEditor, FormattedTextFieldCellEditor, HyperlinkTableCellEditorRenderer, InsetsCellEditor, IntegerCellEditor, IPAddressCellEditor, LegacyBooleanCellEditor, LegacyCheckBoxListComboBoxCellEditor, LegacyColorCellEditor, LegacyDateCellEditor, LegacyEnumCellEditor, LegacyFileCellEditor, LegacyFileNameCellEditor, LegacyFolderCellEditor, LegacyFolderNameCellEditor, LegacyFontNameCellEditor, LegacyInsetsCellEditor, LegacyListComboBoxCellEditor, LegacyMonthCellEditor, LegacyMultilineStringCellEditor, LegacyStringArrayCellEditor, LegacyTableComboBoxCellEditor, LegacyTreeComboBoxCellEditor, ListComboBoxCellEditor, LongCellEditor, MonthCellEditor, MultilineStringCellEditor, MultilineTableCellEditor, MultipleEnumCellEditor, NumberCellEditor, PasswordCellEditor, PointCellEditor, Property, RectangleCellEditor, ShortCellEditor, SliderCellEditor, SpinnerCellEditor, StringArrayCellEditor, StringCellEditor, TableComboBoxCellEditor, TextFieldCellEditor, TreeComboBoxCellEditor, TristateCheckBoxCellEditor

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).

Basically, you need configure your cell editor while implementing 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

isEditorStyleSupported

boolean isEditorStyleSupported(int editorStyle)
Checks if the editor style is supported by the cell editor.

Parameters:
editorStyle - the editor style
Returns:
true if it is supported. Otherwise false.

setEditorStyle

void setEditorStyle(int editorStyle)
Sets the editor style to the cell editor.

Parameters:
editorStyle - the editor style

JIDE 3.5.15