|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Control
org.eclipse.swt.widgets.Scrollable
org.eclipse.swt.widgets.Composite
net.sf.ecl.datepicker.AbstractCombo
net.sf.ecl.datepicker.DatePicker
public final class DatePicker
is a combo providing date editing with DateEdit control and a
drop-down with DateSelector control. Groupped together these controls
allow to explicitly enter or quickly select date.
| Field Summary |
|---|
| Fields inherited from class org.eclipse.swt.widgets.Control |
|---|
handle |
| Constructor Summary | |
|---|---|
DatePicker(Composite parent,
int style)
creates instance of DatePicker. |
|
DatePicker(Composite parent,
int style,
Locale locale)
creates instance of DatePicker. |
|
| Method Summary | |
|---|---|
protected Control |
createInput(Composite parent,
int style)
creates an input widget. |
protected Control |
createPopup(Composite parent,
int style)
creates a control placed into combo's drop-down. |
Calendar |
getSelection()
return the selected date. |
protected void |
handlePopupHiding()
notification of popup hiding. |
protected void |
handlePopupShowing()
notification of popup appearance. |
void |
setSelection(Calendar date)
sets selected date. |
| Methods inherited from class net.sf.ecl.datepicker.AbstractCombo |
|---|
addSelectionListener, computeSize, dispose, hidePopup, layout, removeSelectionListener, setBackground, setEnabled, setFont, setForeground, setToolTipText, showPopup |
| Methods inherited from class org.eclipse.swt.widgets.Composite |
|---|
changed, checkSubclass, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList |
| Methods inherited from class org.eclipse.swt.widgets.Scrollable |
|---|
computeTrim, getClientArea, getHorizontalBar, getVerticalBar |
| Methods inherited from class org.eclipse.swt.widgets.Widget |
|---|
addDisposeListener, addListener, checkWidget, getData, getData, getDisplay, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, setData, setData, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DatePicker(Composite parent,
int style)
DatePicker.
parent - the parent composite.style - the control's style.
public DatePicker(Composite parent,
int style,
Locale locale)
DatePicker.
parent - the parent composite.style - the control's style.locale - the locale used to obtain date format, month & weekday titles.| Method Detail |
|---|
public Calendar getSelection()
public void setSelection(Calendar date)
date - the date or null to reset selection.
protected Control createInput(Composite parent,
int style)
AbstractCombo
createInput in class AbstractComboparent - the input widget's parent.style - the style for input widget. The style is derived from the
composite's style.
protected Control createPopup(Composite parent,
int style)
AbstractCombo
createPopup in class AbstractComboparent - the parent control.style - the style derived from the style of the combo.
protected void handlePopupHiding()
AbstractCombo
handlePopupHiding in class AbstractComboprotected void handlePopupShowing()
AbstractCombo
handlePopupShowing in class AbstractCombo
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||