JIDE 3.5.15

com.jidesoft.grid
Class TableComboBoxCellEditor

java.lang.Object
  extended by javax.swing.AbstractCellEditor
      extended by com.jidesoft.grid.AbstractJideCellEditor
          extended by com.jidesoft.grid.ContextSensitiveCellEditor
              extended by com.jidesoft.grid.ExComboBoxCellEditor
                  extended by com.jidesoft.grid.TableComboBoxCellEditor
All Implemented Interfaces:
ConverterContextSupport, EditorContextSupport, EditorStyleSupport, JideCellEditor, ActionListener, Serializable, EventListener, CellEditor, PopupMenuListener, TableCellEditor

public class TableComboBoxCellEditor
extends ExComboBoxCellEditor

This class is for any cell editor where one needs to choose value from a table. It used TableExComboBox as the editor.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.jidesoft.grid.ExComboBoxCellEditor
_comboBox
 
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
TableComboBoxCellEditor(TableModel model)
          Creates a TableComboBoxCellEditor.
TableComboBoxCellEditor(TableModel model, Class<?> type)
          Creates a TableComboBoxCellEditor .
 
Method Summary
 ExComboBox createExComboBox()
          Creates an ExComboBox or its subclass used by this cell editor.
 ExComboBox createExComboBox(ComboBoxModel model, Class<?> type)
          Creates an ExComboBox or its subclass used by this cell editor.
protected  TableExComboBox createTableComboBox()
          Creates the TableExComboBox.
 TableModel getTableModel()
          Gets the table model.
 
Methods inherited from class com.jidesoft.grid.ExComboBoxCellEditor
actionPerformed, customizeExComboBox, getCellEditorValue, getComboBox, getTableCellEditorComponent, isEditorStyleSupported, popupMenuCanceled, popupMenuWillBecomeInvisible, popupMenuWillBecomeVisible, setCellEditorValue, setConverter, setType, stopCellEditing
 
Methods inherited from class com.jidesoft.grid.ContextSensitiveCellEditor
getConverter, getConverterContext, getEditorContext, getEditorStyle, getType, isUseConverterContext, setConverterContext, setEditorContext, setEditorStyle, 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
 
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
 

Constructor Detail

TableComboBoxCellEditor

public TableComboBoxCellEditor(TableModel model)
Creates a TableComboBoxCellEditor.

Parameters:
model - the TableModel

TableComboBoxCellEditor

public TableComboBoxCellEditor(TableModel model,
                               Class<?> type)
Creates a TableComboBoxCellEditor .

Parameters:
model - the TableModel
type - the element type.
Method Detail

getTableModel

public TableModel getTableModel()
Gets the table model.

Returns:
the table model.

createExComboBox

public ExComboBox createExComboBox(ComboBoxModel model,
                                   Class<?> type)
Description copied from class: ExComboBoxCellEditor
Creates an ExComboBox or its subclass used by this cell editor. Different from ExComboBoxCellEditor.createExComboBox(), this method takes a ComboBoxModel and type. By default, this method will call createExComboBox() but subclass can override it to create an ExComboBox.

Overrides:
createExComboBox in class ExComboBoxCellEditor
Parameters:
model - the combobox model.
type - the type of the element in the model.
Returns:
an ExComboBox.

createExComboBox

public ExComboBox createExComboBox()
Description copied from class: ExComboBoxCellEditor
Creates an ExComboBox or its subclass used by this cell editor.

Specified by:
createExComboBox in class ExComboBoxCellEditor
Returns:
an ExComboBox.

createTableComboBox

protected TableExComboBox createTableComboBox()
Creates the TableExComboBox.

Returns:
the TableExComboBox instance.

JIDE 3.5.15