|
||||||||||
| 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
at.spardat.xma.widgets.DatePicker
The DatePicker widget consists of a Text field and a Button. Usually the text field is to attach to a simple widget model, on which a Date validator has to be set. On a button click a date-chooser dialog is started, after date selection the dialog is closed and the selected date is written to the widget model.
| Field Summary | |
static int |
RED_SUNDAY
Style constant for making Sundays red. |
static int |
RED_WEEKEND
Style constant for making weekends red. |
| Fields inherited from class org.eclipse.swt.widgets.Control |
handle |
| Constructor Summary | |
DatePicker(org.eclipse.swt.widgets.Composite parent)
|
|
DatePicker(org.eclipse.swt.widgets.Composite parent,
int dateFieldStyle)
|
|
DatePicker(org.eclipse.swt.widgets.Composite parent,
int dateFieldStyle,
int datePickerStyle)
|
|
| Method Summary | |
org.eclipse.swt.widgets.Text |
getDateTextField()
Returns the text field used by the DatePicker. |
java.util.Calendar |
getPickedCalendar()
Returns the calendar set with the date as chosen by the date-chosser dialog. |
boolean |
isEditable()
|
void |
setBackground(org.eclipse.swt.graphics.Color color)
|
void |
setDatePickerDate(java.util.Date aDate)
Sets the date preselected at the date-chooser dialog. |
void |
setDatePickerFont(org.eclipse.swt.graphics.Font font)
Sets the Font of the date-chooser dialog and its controls. |
void |
setDatePickerLocale(java.util.Locale locale)
Sets the Locale of the date-chooser dialog and its controls. |
void |
setEditable(boolean editable)
Editables text field of DatePicker and enables/disables Button. |
void |
setEnabled(boolean enabled)
|
| Methods inherited from class org.eclipse.swt.widgets.Composite |
changed, checkSubclass, computeSize, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, 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.Control |
addControlListener, addFocusListener, addHelpListener, addKeyListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addPaintListener, addTraverseListener, computeSize, forceFocus, getAccessible, getBackground, getBorderWidth, getBounds, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getParent, getShell, getSize, getToolTipText, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, redraw, redraw, removeControlListener, removeFocusListener, removeHelpListener, removeKeyListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removePaintListener, removeTraverseListener, setBounds, setBounds, setCapture, setCursor, setFont, setForeground, setLayoutData, setLocation, setLocation, setMenu, setParent, setRedraw, setSize, setSize, setToolTipText, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, update |
| 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 |
| Field Detail |
public static final int RED_SUNDAY
public static final int RED_WEEKEND
| Constructor Detail |
public DatePicker(org.eclipse.swt.widgets.Composite parent,
int dateFieldStyle,
int datePickerStyle)
parent - dateFieldStyle - The style for the Text dateTextField. Any style valid or a Text widget.datePickerStyle - The style for the date-picker composite. Can be any style valid for a Composite and RED_WEEKEND, RED_SUNDAY.
public DatePicker(org.eclipse.swt.widgets.Composite parent,
int dateFieldStyle)
parent - dateFieldStyle - The style for the Text dateTextField. Any style valid or a Text widget.public DatePicker(org.eclipse.swt.widgets.Composite parent)
parent - | Method Detail |
public org.eclipse.swt.widgets.Text getDateTextField()
public java.util.Calendar getPickedCalendar()
public void setDatePickerDate(java.util.Date aDate)
aDate - public void setDatePickerFont(org.eclipse.swt.graphics.Font font)
public void setDatePickerLocale(java.util.Locale locale)
public void setBackground(org.eclipse.swt.graphics.Color color)
public void setEnabled(boolean enabled)
public void setEditable(boolean editable)
editable - public boolean isEditable()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||