Class DateChooserComboCellEditor

java.lang.Object
org.eclipse.jface.viewers.CellEditor
org.eclipse.nebula.widgets.datechooser.DateChooserComboCellEditor

public class DateChooserComboCellEditor
extends org.eclipse.jface.viewers.CellEditor
A cell editor that manages a date field, using a DateChooserCombo. The cell editor's value is a Date.
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.eclipse.jface.viewers.CellEditor

    org.eclipse.jface.viewers.CellEditor.LayoutData
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected DateChooserCombo combo
    The DateChooserCombo control

    Fields inherited from class org.eclipse.jface.viewers.CellEditor

    COPY, CUT, DELETE, FIND, PASTE, REDO, SELECT_ALL, UNDO
  • Constructor Summary

    Constructors 
    Constructor Description
    DateChooserComboCellEditor​(org.eclipse.swt.widgets.Composite parent)
    Creates a new date cell editor parented under the given control.
    DateChooserComboCellEditor​(org.eclipse.swt.widgets.Composite parent, int style)
    Creates a new date string cell editor parented under the given control.
  • Method Summary

    Modifier and Type Method Description
    protected org.eclipse.swt.widgets.Control createControl​(org.eclipse.swt.widgets.Composite parent)  
    protected java.lang.Object doGetValue()
    The DateChooserComboCellEditor implementation of this CellEditor framework method returns the date value.
    protected void doSetFocus()  
    protected void doSetValue​(java.lang.Object value)
    The DateChooserComboCellEditor implementation of this CellEditor framework method accepts a date value (type Date).
    DateChooserCombo getCombo()
    Returns the wrapped DateChooserCombo widget.
    org.eclipse.jface.viewers.CellEditor.LayoutData getLayoutData()
    Returns a layout data object for this cell editor.

    Methods inherited from class org.eclipse.jface.viewers.CellEditor

    activate, activate, addListener, addPropertyChangeListener, create, deactivate, deactivate, dependsOnExternalFocusListener, dispose, fireApplyEditorValue, fireCancelEditor, fireEditorValueChanged, fireEnablementChanged, focusLost, getControl, getDoubleClickTimeout, getErrorMessage, getStyle, getValidator, getValue, isActivated, isCopyEnabled, isCorrect, isCutEnabled, isDeleteEnabled, isDirty, isFindEnabled, isPasteEnabled, isRedoEnabled, isSelectAllEnabled, isUndoEnabled, isValueValid, keyReleaseOccured, markDirty, performCopy, performCut, performDelete, performFind, performPaste, performRedo, performSelectAll, performUndo, removeListener, removePropertyChangeListener, setErrorMessage, setFocus, setStyle, setValidator, setValue, setValueValid, valueChanged

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • DateChooserComboCellEditor

      public DateChooserComboCellEditor​(org.eclipse.swt.widgets.Composite parent)
      Creates a new date cell editor parented under the given control.
      Parameters:
      parent - the parent control
    • DateChooserComboCellEditor

      public DateChooserComboCellEditor​(org.eclipse.swt.widgets.Composite parent, int style)
      Creates a new date string cell editor parented under the given control.
      Parameters:
      parent - the parent control
      style - the style bits
  • Method Details

    • createControl

      protected org.eclipse.swt.widgets.Control createControl​(org.eclipse.swt.widgets.Composite parent)
      Specified by:
      createControl in class org.eclipse.jface.viewers.CellEditor
    • doGetValue

      protected java.lang.Object doGetValue()
      The DateChooserComboCellEditor implementation of this CellEditor framework method returns the date value.
      Specified by:
      doGetValue in class org.eclipse.jface.viewers.CellEditor
      Returns:
      the date value
    • doSetFocus

      protected void doSetFocus()
      Specified by:
      doSetFocus in class org.eclipse.jface.viewers.CellEditor
    • doSetValue

      protected void doSetValue​(java.lang.Object value)
      The DateChooserComboCellEditor implementation of this CellEditor framework method accepts a date value (type Date).
      Specified by:
      doSetValue in class org.eclipse.jface.viewers.CellEditor
      Parameters:
      value - a date value
    • getCombo

      public DateChooserCombo getCombo()
      Returns the wrapped DateChooserCombo widget. This allows to customize the display of the DateChooser in the popup.
      Returns:
      the wrapped combo
    • getLayoutData

      public org.eclipse.jface.viewers.CellEditor.LayoutData getLayoutData()
      Returns a layout data object for this cell editor. This is called each time the cell editor is activated and controls the layout of the SWT table editor.

      Since a text editor field is scrollable we don't set a minimumSize, except that the minimum width is 60 pixels to make sure the arrow button and some text is visible.

      Overrides:
      getLayoutData in class org.eclipse.jface.viewers.CellEditor
      Returns:
      the layout data object