|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.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 TableCellEditorpublic void setCellEditorValue(Object value)
value - the new value.public Object getCellEditorValue()
getCellEditorValue in interface CellEditorpublic void setType(Class<?> valueClass)
ConverterContextSupport
setType in interface ConverterContextSupportsetType in class ContextSensitiveCellEditorpublic boolean stopCellEditing()
stopCellEditing in interface CellEditorstopCellEditing in class AbstractCellEditorpublic void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenerpublic void popupMenuWillBecomeVisible(PopupMenuEvent e)
popupMenuWillBecomeVisible in interface PopupMenuListenerpublic void popupMenuWillBecomeInvisible(PopupMenuEvent e)
popupMenuWillBecomeInvisible in interface PopupMenuListenerpublic void popupMenuCanceled(PopupMenuEvent e)
popupMenuCanceled in interface PopupMenuListenerpublic ExComboBox getComboBox()
public void setConverter(ObjectConverter converter)
ContextSensitiveCellEditor
setConverter in class ContextSensitiveCellEditorconverter - the new converterpublic boolean isEditorStyleSupported(int editorStyle)
EditorStyleSupport
isEditorStyleSupported in interface EditorStyleSupportisEditorStyleSupported in class ContextSensitiveCellEditoreditorStyle - the editor style
|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||