summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/DateTime.java
diff options
context:
space:
mode:
authorCarolyn MacLeod <carolyn>2009-05-27 19:05:21 +0000
committerCarolyn MacLeod <carolyn>2009-05-27 19:05:21 +0000
commit252fa34277ec96231d89bbba1b2222a71f04f4b5 (patch)
treed1ab9d844a8f24e69ec7c33d43992143e4825371 /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/DateTime.java
parent0e9de50affb69f2c41b7aaf179af3432f3658daf (diff)
downloadeclipse.platform.swt-252fa34277ec96231d89bbba1b2222a71f04f4b5.tar.gz
eclipse.platform.swt-252fa34277ec96231d89bbba1b2222a71f04f4b5.tar.xz
eclipse.platform.swt-252fa34277ec96231d89bbba1b2222a71f04f4b5.zip
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/DateTime.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/DateTime.java21
1 files changed, 18 insertions, 3 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/DateTime.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/DateTime.java
index ebf1e46b66..628f2c904a 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/DateTime.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/DateTime.java
@@ -28,13 +28,14 @@ import org.eclipse.swt.internal.gtk.OS;
* </p>
* <dl>
* <dt><b>Styles:</b></dt>
- * <dd>DATE, TIME, CALENDAR, SHORT, MEDIUM, LONG</dd>
+ * <dd>DATE, TIME, CALENDAR, SHORT, MEDIUM, LONG, DROP_DOWN</dd>
* <dt><b>Events:</b></dt>
- * <dd>Selection</dd>
+ * <dd>DefaultSelection, Selection</dd>
* </dl>
* <p>
* Note: Only one of the styles DATE, TIME, or CALENDAR may be specified,
* and only one of the styles SHORT, MEDIUM, or LONG may be specified.
+ * The DROP_DOWN style is a <em>HINT</em>, and it is only valid with the DATE style.
* </p><p>
* IMPORTANT: This class is <em>not</em> intended to be subclassed.
* </p>
@@ -44,6 +45,7 @@ import org.eclipse.swt.internal.gtk.OS;
* @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>
*
* @since 3.3
+ * @noextend This class is not intended to be subclassed by clients.
*/
public class DateTime extends Composite {
int day, month, year, hours, minutes, seconds;
@@ -95,6 +97,10 @@ public class DateTime extends Composite {
* @see SWT#DATE
* @see SWT#TIME
* @see SWT#CALENDAR
+ * @see SWT#SHORT
+ * @see SWT#MEDIUM
+ * @see SWT#LONG
+ * @see SWT#DROP_DOWN
* @see Widget#checkSubclass
* @see Widget#getStyle
*/
@@ -175,7 +181,7 @@ static int checkStyle (int style) {
* interface.
* <p>
* <code>widgetSelected</code> is called when the user changes the control's value.
- * <code>widgetDefaultSelected</code> is not called.
+ * <code>widgetDefaultSelected</code> is typically called when ENTER is pressed.
* </p>
*
* @param listener the listener which should be notified
@@ -885,6 +891,7 @@ public void setDate (int year, int month, int day) {
* Sets the receiver's date, or day of the month, to the specified day.
* <p>
* The first day of the month is 1, and the last day depends on the month and year.
+ * If the specified day is not valid for the receiver's month and year, then it is ignored.
* </p>
*
* @param day a positive integer beginning with 1
@@ -893,6 +900,8 @@ public void setDate (int year, int month, int day) {
* <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
+ *
+ * @see #setDate
*/
public void setDay (int day) {
checkWidget ();
@@ -958,6 +967,7 @@ public void setMinutes (int minutes) {
* Sets the receiver's month.
* <p>
* The first month of the year is 0, and the last month is 11.
+ * If the specified month is not valid for the receiver's day and year, then it is ignored.
* </p>
*
* @param month an integer between 0 and 11
@@ -966,6 +976,8 @@ public void setMinutes (int minutes) {
* <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
+ *
+ * @see #setDate
*/
public void setMonth (int month) {
checkWidget ();
@@ -1038,6 +1050,7 @@ public void setTime (int hours, int minutes, int seconds) {
* Sets the receiver's year.
* <p>
* The first year is 1752 and the last year is 9999.
+ * If the specified year is not valid for the receiver's day and month, then it is ignored.
* </p>
*
* @param year an integer between 1752 and 9999
@@ -1046,6 +1059,8 @@ public void setTime (int hours, int minutes, int seconds) {
* <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
+ *
+ * @see #setDate
*/
public void setYear (int year) {
checkWidget ();