JIDE 3.5.15

com.jidesoft.grid
Class LegacyMonthCellEditor

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.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

Field Summary
static EditorContext CONTEXT
           
 
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
LegacyMonthCellEditor()
          Creates a MonthCellEditor.
 
Method Summary
 AbstractComboBox createAbstractComboBox()
          Creates the month combobox used by this cell editor.
protected  MonthComboBox createMonthComboBox()
          Creates the month combobox used by this cell editor.
 ValidationResult validate(Object oldValue, Object newValue)
          Returns the state after validation.
 
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 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

CONTEXT

public static final EditorContext CONTEXT
Constructor Detail

LegacyMonthCellEditor

public LegacyMonthCellEditor()
Creates a MonthCellEditor.

Method Detail

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 value
newValue - the new value
Returns:
ValidateState. If it's null, it means validation passed. Only when the validation fails, it returns ValidationState.

JIDE 3.5.15