|
||||||||||
| 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.DateSelector
public final class DateSelector
is a flat calendar control allowing to select single date.
| Field Summary |
|---|
| Fields inherited from class org.eclipse.swt.widgets.Control |
|---|
handle |
| Constructor Summary | |
|---|---|
DateSelector(Composite parent,
int style)
creates a new instance of the DateSelector. |
|
DateSelector(Composite parent,
int style,
Locale locale)
creates a new instance of the DateSelector. |
|
| Method Summary | |
|---|---|
void |
addSelectionListener(SelectionListener listener)
adds a selection listener to the control. |
Point |
computeSize(int wHint,
int hHint,
boolean changed)
|
Calendar |
getSelection()
returns the selected date. |
void |
layout(boolean changed)
|
void |
removeSelectionListener(SelectionListener listener)
removes the given selection listener. |
void |
setSelection(Calendar date)
sets the selected date. |
| 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, dispose, 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 DateSelector(Composite parent,
int style)
DateSelector.
parent - the parent composite.style - the control style.
public DateSelector(Composite parent,
int style,
Locale locale)
DateSelector.
parent - the parent composite.style - the control style.locale - the locale to use.| Method Detail |
|---|
public void addSelectionListener(SelectionListener listener)
listener - the listener.
public Point computeSize(int wHint,
int hHint,
boolean changed)
computeSize in class Compositepublic Calendar getSelection()
public void layout(boolean changed)
layout in class Compositepublic void removeSelectionListener(SelectionListener listener)
listener - the listener.public void setSelection(Calendar date)
date - the date to select. not null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||