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
-
Field Summary
Fields Modifier and Type Field Description protected DateChooserCombo
combo
The DateChooserCombo control -
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()
TheDateChooserComboCellEditor
implementation of thisCellEditor
framework method returns the date value.protected void
doSetFocus()
protected void
doSetValue(java.lang.Object value)
TheDateChooserComboCellEditor
implementation of thisCellEditor
framework method accepts a date value (typeDate
).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
-
Field Details
-
combo
The DateChooserCombo control
-
-
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 controlstyle
- the style bits
-
-
Method Details
-
createControl
protected org.eclipse.swt.widgets.Control createControl(org.eclipse.swt.widgets.Composite parent)- Specified by:
createControl
in classorg.eclipse.jface.viewers.CellEditor
-
doGetValue
protected java.lang.Object doGetValue()TheDateChooserComboCellEditor
implementation of thisCellEditor
framework method returns the date value.- Specified by:
doGetValue
in classorg.eclipse.jface.viewers.CellEditor
- Returns:
- the date value
-
doSetFocus
protected void doSetFocus()- Specified by:
doSetFocus
in classorg.eclipse.jface.viewers.CellEditor
-
doSetValue
protected void doSetValue(java.lang.Object value)TheDateChooserComboCellEditor
implementation of thisCellEditor
framework method accepts a date value (typeDate
).- Specified by:
doSetValue
in classorg.eclipse.jface.viewers.CellEditor
- Parameters:
value
- a date value
-
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 classorg.eclipse.jface.viewers.CellEditor
- Returns:
- the layout data object
-