|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.AbstractCellEditor com.jidesoft.grid.AbstractJideCellEditor com.jidesoft.grid.ContextSensitiveCellEditor com.jidesoft.grid.ExComboBoxCellEditor
public abstract class ExComboBoxCellEditor
A cell editor based on ExComboBox. This is an abstract class. You need to implement createExComboBox to create a subclass of ExComboBox.
Field Summary | |
---|---|
protected ExComboBox |
_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 | |
---|---|
ExComboBoxCellEditor()
Creates an ExComboBoxCellEditor. |
|
ExComboBoxCellEditor(ComboBoxModel model,
Class<?> type)
Creates an ExComboBoxCellEditor. |
Method Summary | |
---|---|
void |
actionPerformed(ActionEvent e)
|
abstract 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 void |
customizeExComboBox()
|
Object |
getCellEditorValue()
Gets the value of the cell editor. |
ExComboBox |
getComboBox()
Gets the combobox used by this cell editor. |
Component |
getTableCellEditorComponent(JTable table,
Object value,
boolean isSelected,
int row,
int column)
|
boolean |
isEditorStyleSupported(int editorStyle)
Checks if the editor style is supported by the cell editor. |
void |
popupMenuCanceled(PopupMenuEvent e)
|
void |
popupMenuWillBecomeInvisible(PopupMenuEvent e)
|
void |
popupMenuWillBecomeVisible(PopupMenuEvent e)
|
void |
setCellEditorValue(Object value)
Sets the value to the combobox. |
void |
setConverter(ObjectConverter converter)
Sets a new converter for the cell editor. |
void |
setType(Class<?> valueClass)
Sets the class of the value. |
boolean |
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 |
Field Detail |
---|
protected ExComboBox _comboBox
Constructor Detail |
---|
public ExComboBoxCellEditor()
public ExComboBoxCellEditor(ComboBoxModel model, Class<?> type)
model
- the combobox model.type
- the type of the element in the model.Method Detail |
---|
protected void customizeExComboBox()
public abstract ExComboBox createExComboBox()
public ExComboBox createExComboBox(ComboBoxModel model, Class<?> type)
createExComboBox()
, this method takes a ComboBoxModel and type. By default, this method will call
createExComboBox() but subclass can override it to create an ExComboBox.
model
- the combobox model.type
- the type of the element in the model.
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
getTableCellEditorComponent
in interface TableCellEditor
public void setCellEditorValue(Object value)
value
- the new value.public Object getCellEditorValue()
getCellEditorValue
in interface CellEditor
public void setType(Class<?> valueClass)
ConverterContextSupport
setType
in interface ConverterContextSupport
setType
in class ContextSensitiveCellEditor
public boolean stopCellEditing()
stopCellEditing
in interface CellEditor
stopCellEditing
in class AbstractCellEditor
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
public void popupMenuWillBecomeVisible(PopupMenuEvent e)
popupMenuWillBecomeVisible
in interface PopupMenuListener
public void popupMenuWillBecomeInvisible(PopupMenuEvent e)
popupMenuWillBecomeInvisible
in interface PopupMenuListener
public void popupMenuCanceled(PopupMenuEvent e)
popupMenuCanceled
in interface PopupMenuListener
public ExComboBox getComboBox()
public void setConverter(ObjectConverter converter)
ContextSensitiveCellEditor
setConverter
in class ContextSensitiveCellEditor
converter
- the new converterpublic boolean isEditorStyleSupported(int editorStyle)
EditorStyleSupport
isEditorStyleSupported
in interface EditorStyleSupport
isEditorStyleSupported
in class ContextSensitiveCellEditor
editorStyle
- the editor style
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |