JIDE 3.5.15

com.jidesoft.grid
Interface EditorStyleTableModel

All Known Implementing Classes:
AbstractPropertyTableModel, BatchedCrudTableModelWrapper, CachedTableModel, CrudTableModelAdapter, DefaultGroupTableModel, DefaultTableModelWrapper, FilterableAggregateTableModel, FilterableTableModel, FilterableTreeTableModel, LuceneFilterableTableModel, PropertyTableModel, SortableAggregateTableModel, SortableTableModel, SortableTreeTableModel, TableModelWrapperImpl

public interface EditorStyleTableModel

This is a table model to define the editor style. It will only take effect if TableModel#isCellEditable(int, int) returns true and your table is an instance of ContextSensitiveTable.

If you have defined your own cell editor, you need check if your cell editor implemented EditorStyleSupport already to make sure the settings would take effect.


Field Summary
static int EDITOR_STYLE_EDITABLE
          Force the cell editor to be editable.
static int EDITOR_STYLE_NORMAL
          In this case, JIDE will not touch the existing setting of the cell editor and just use the editor default settings.
static int EDITOR_STYLE_READ_ONLY
          Although the cell is editable defined in TableModel#isCellEditable(int, int), the cell is read only.
static int EDITOR_STYLE_SELECT_ONLY
          For combo box/spinner/slider based cell editors, the text field is not editable however the customer could select from the popup to change the value of the cell.
 
Method Summary
 int getEditorStyleAt(int rowIndex, int columnIndex)
          Gets editor style at the cell.
 

Field Detail

EDITOR_STYLE_NORMAL

static final int EDITOR_STYLE_NORMAL
In this case, JIDE will not touch the existing setting of the cell editor and just use the editor default settings.

See Also:
Constant Field Values

EDITOR_STYLE_SELECT_ONLY

static final int EDITOR_STYLE_SELECT_ONLY
For combo box/spinner/slider based cell editors, the text field is not editable however the customer could select from the popup to change the value of the cell.

See Also:
Constant Field Values

EDITOR_STYLE_READ_ONLY

static final int EDITOR_STYLE_READ_ONLY
Although the cell is editable defined in TableModel#isCellEditable(int, int), the cell is read only. However, the customer would be able to select the content inside the cell and copy it out.

See Also:
Constant Field Values

EDITOR_STYLE_EDITABLE

static final int EDITOR_STYLE_EDITABLE
Force the cell editor to be editable.

See Also:
Constant Field Values
Method Detail

getEditorStyleAt

int getEditorStyleAt(int rowIndex,
                     int columnIndex)
Gets editor style at the cell.

Parameters:
rowIndex - the row index
columnIndex - the column index
Returns:
the editor style.

JIDE 3.5.15