com.jidesoft.grid
Class MonthCellEditor
java.lang.Object
javax.swing.AbstractCellEditor
com.jidesoft.grid.AbstractJideCellEditor
com.jidesoft.grid.ContextSensitiveCellEditor
com.jidesoft.grid.ExComboBoxCellEditor
com.jidesoft.grid.MonthCellEditor
- All Implemented Interfaces:
- ConverterContextSupport, EditorContextSupport, EditorStyleSupport, JideCellEditor, ActionListener, Serializable, EventListener, CellEditor, PopupMenuListener, TableCellEditor
public class MonthCellEditor
- extends ExComboBoxCellEditor
CellEditor for Month/Year. It uses MonthExComboBox to provide an editor for Calendar which has month and year value.
You can override createMonthComboBox()
method to provide your own MonthExComboBox.
- See Also:
- Serialized Form
Methods inherited from class com.jidesoft.grid.ExComboBoxCellEditor |
actionPerformed, createExComboBox, customizeExComboBox, getCellEditorValue, getComboBox, getTableCellEditorComponent, isEditorStyleSupported, popupMenuCanceled, popupMenuWillBecomeInvisible, popupMenuWillBecomeVisible, setCellEditorValue, setConverter, setType, stopCellEditing |
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
MonthCellEditor
public MonthCellEditor()
- Creates a MonthCellEditor.
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.
createMonthComboBox
protected MonthExComboBox 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.