JIDE 3.5.15

com.jidesoft.grid
Class LegacyTableComboBoxCellEditor

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.AbstractComboBoxCellEditor
                  extended by com.jidesoft.grid.LegacyTableComboBoxCellEditor
All Implemented Interfaces:
ConverterContextSupport, EditorContextSupport, EditorStyleSupport, JideCellEditor, ActionListener, ItemListener, Serializable, EventListener, CellEditor, PopupMenuListener, TableCellEditor

public class LegacyTableComboBoxCellEditor
extends AbstractComboBoxCellEditor

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

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.jidesoft.grid.AbstractComboBoxCellEditor
_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
LegacyTableComboBoxCellEditor(TableModel model)
          Creates a LegacyTableComboBoxCellEditor.
LegacyTableComboBoxCellEditor(TableModel model, Class<?> type)
          Creates a LegacyTableComboBoxCellEditor .
 
Method Summary
 AbstractComboBox createAbstractComboBox()
          Creates an AbstractComboBox or its subclass used by this cell editor.
 AbstractComboBox createAbstractComboBox(ComboBoxModel model, Class<?> type)
          Creates an AbstractComboBox or its subclass used by this cell editor.
protected  TableComboBox createTableComboBox()
          Creates the TableComboBox.
protected  TableComboBox createTableComboBox(TableModel model, Class<?> type)
          Deprecated. please use createTableComboBox() instead.
 TableModel getTableModel()
          Gets the table model.
 
Methods inherited from class com.jidesoft.grid.AbstractComboBoxCellEditor
actionPerformed, customizeAbstractComboBox, getCellEditorValue, getComboBox, getTableCellEditorComponent, isEditorStyleSupported, itemStateChanged, popupMenuCanceled, popupMenuWillBecomeInvisible, popupMenuWillBecomeVisible, setCellEditorValue, setConverter, stopCellEditing
 
Methods inherited from class com.jidesoft.grid.ContextSensitiveCellEditor
getConverter, getConverterContext, getEditorContext, getEditorStyle, getType, isUseConverterContext, setConverterContext, setEditorContext, setEditorStyle, setType, 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

LegacyTableComboBoxCellEditor

public LegacyTableComboBoxCellEditor(TableModel model)
Creates a LegacyTableComboBoxCellEditor.

Parameters:
model - the TableModel

LegacyTableComboBoxCellEditor

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

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

getTableModel

public TableModel getTableModel()
Gets the table model.

Returns:
the table model.

createAbstractComboBox

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

Overrides:
createAbstractComboBox in class AbstractComboBoxCellEditor
Parameters:
model - the combobox model.
type - the type of the element in the model.
Returns:
an AbstractComboBox.

createAbstractComboBox

public AbstractComboBox createAbstractComboBox()
Description copied from class: AbstractComboBoxCellEditor
Creates an AbstractComboBox or its subclass used by this cell editor.

Specified by:
createAbstractComboBox in class AbstractComboBoxCellEditor
Returns:
an AbstractComboBox.

createTableComboBox

protected TableComboBox createTableComboBox()
Creates the TableComboBox.

Returns:
the TableComboBox instance.

createTableComboBox

@Deprecated
protected TableComboBox createTableComboBox(TableModel model,
                                                       Class<?> type)
Deprecated. please use createTableComboBox() instead.

Creates the TableComboBox.

Parameters:
model - the TableModel.
type - the element type.
Returns:
the TableComboBox.

JIDE 3.5.15