|
||||||||||
| 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.DateEdit
public final class DateEdit
is an editor for the date in a text format. The editor uses Apache's
FastDateFormat to obtain default system date format. So the editor is
locale sensible.
During editing user may use up/down arrow keys to increment/decrement the
selected date field or enter date explicitly by typing digits.
| Field Summary |
|---|
| Fields inherited from class org.eclipse.swt.widgets.Control |
|---|
handle |
| Constructor Summary | |
|---|---|
DateEdit(Composite parent,
int style)
creates an instance of the DateEdit for default Locale. |
|
DateEdit(Composite parent,
int style,
Locale locale)
creates an instance of the DateEdit. |
|
| Method Summary | |
|---|---|
void |
addModifyListener(ModifyListener listener)
Adds the listener to the collection of listeners who will be notified when the receiver's text is modified, by sending it one of the messages defined in the ModifyListener interface. |
Point |
computeSize(int wHint,
int hHint,
boolean changed)
|
Calendar |
getDate()
the current date in the control. |
void |
removeModifyListener(ModifyListener listener)
Removes the listener from the collection of listeners who will be notified when the receiver's text is modified. |
void |
setDate(Calendar date)
sets date into the calendar. |
void |
setEnabled(boolean enabled)
|
| Methods inherited from class org.eclipse.swt.widgets.Composite |
|---|
changed, checkSubclass, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, 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 DateEdit(Composite parent,
int style)
DateEdit for default Locale.
parent - the parent composite.style - the style.
public DateEdit(Composite parent,
int style,
Locale locale)
DateEdit.
parent - the parent composite.style - the style.locale - the locale used to obtain date format.| Method Detail |
|---|
public void addModifyListener(ModifyListener listener)
ModifyListener interface.
listener - the listener which should be notified
IllegalArgumentException - SWTException - ModifyListener,
removeModifyListener(org.eclipse.swt.events.ModifyListener)
public Point computeSize(int wHint,
int hHint,
boolean changed)
computeSize in class Compositepublic Calendar getDate()
public void removeModifyListener(ModifyListener listener)
listener - the listener which should no longer be notified
IllegalArgumentException - SWTException - ModifyListener,
addModifyListener(org.eclipse.swt.events.ModifyListener)public void setDate(Calendar date)
date - the date value or null to reset editor.public void setEnabled(boolean enabled)
setEnabled in class Control
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||