com.jidesoft.grid
Class LegacyMonthCellEditor
java.lang.Object
javax.swing.AbstractCellEditor
com.jidesoft.grid.AbstractJideCellEditor
com.jidesoft.grid.ContextSensitiveCellEditor
com.jidesoft.grid.AbstractComboBoxCellEditor
com.jidesoft.grid.LegacyMonthCellEditor
- All Implemented Interfaces:
- ConverterContextSupport, EditorContextSupport, EditorStyleSupport, JideCellEditor, ActionListener, ItemListener, Serializable, EventListener, CellEditor, PopupMenuListener, TableCellEditor
public class LegacyMonthCellEditor
- extends AbstractComboBoxCellEditor
CellEditor for Month/Year. It uses MonthComboBox to provide an editor for Calendar which has month and year value.
You can override createMonthComboBox()
method to provide your own MonthComboBox.
- See Also:
- Serialized Form
Methods inherited from class com.jidesoft.grid.AbstractComboBoxCellEditor |
actionPerformed, createAbstractComboBox, 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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CONTEXT
public static final EditorContext CONTEXT
LegacyMonthCellEditor
public LegacyMonthCellEditor()
- Creates a MonthCellEditor.
createAbstractComboBox
public AbstractComboBox createAbstractComboBox()
- Creates the month combobox used by this cell editor.
- Specified by:
createAbstractComboBox
in class AbstractComboBoxCellEditor
- Returns:
- the month combobox.
createMonthComboBox
protected MonthComboBox createMonthComboBox()
- Creates the month combobox used by this cell editor.
- Returns:
- the month combobox.
validate
public ValidationResult validate(Object oldValue,
Object newValue)
- Description copied from class:
AbstractJideCellEditor
- Returns the state after validation.
- Specified by:
validate
in interface JideCellEditor
- Overrides:
validate
in class AbstractJideCellEditor
- Parameters:
oldValue
- the old valuenewValue
- the new value
- Returns:
- ValidateState. If it's null, it means validation passed. Only when the validation
fails, it returns ValidationState.