Mercurial > projects > dwt-linux
diff dwt/widgets/ProgressBar.d @ 259:c0d810de7093
Update SWT 3.4M7 to 3.4
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 29 Jun 2008 14:33:38 +0200 |
parents | ce446666f5a2 |
children | 4bffbf81e2d6 |
line wrap: on
line diff
--- a/dwt/widgets/ProgressBar.d Tue Jun 24 22:12:18 2008 +0200 +++ b/dwt/widgets/ProgressBar.d Sun Jun 29 14:33:38 2008 +0200 @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2007 IBM Corporation and others. + * Copyright (c) 2000, 2008 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -41,6 +41,10 @@ * IMPORTANT: This class is intended to be subclassed <em>only</em> * within the DWT implementation. * </p> + * + * @see <a href="http://www.eclipse.org/swt/snippets/#progressbar">ProgressBar snippets</a> + * @see <a href="http://www.eclipse.org/swt/examples.php">DWT Example: ControlExample</a> + * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a> */ public class ProgressBar : Control { CallbackData callbackData; @@ -146,6 +150,23 @@ return selection; } +/** + * Returns the state of the receiver. The value will be one of: + * <ul> + * <li>{@link DWT#NORMAL}</li> + * <li>{@link DWT#ERROR}</li> + * <li>{@link DWT#PAUSED}</li> + * </ul> + * + * @return the state + * + * @exception DWTException <ul> + * <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> + * + * @since 3.4 + */ public int getState () { checkWidget (); return DWT.NORMAL; @@ -239,6 +260,23 @@ updateBar (selection, minimum, maximum); } +/** + * Sets the state of the receiver. The state must be one of these values: + * <ul> + * <li>{@link DWT#NORMAL}</li> + * <li>{@link DWT#ERROR}</li> + * <li>{@link DWT#PAUSED}</li> + * </ul> + * + * @param state the new state + * + * @exception DWTException <ul> + * <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> + * + * @since 3.4 + */ public void setState (int state) { checkWidget (); //NOT IMPLEMENTED