|
Eclipse Platform Release 3.4 |
||||||||||
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
org.eclipse.jface.dialogs.ProgressIndicator
A control for showing progress feedback for a long running operation. This
control supports both determinate and indeterminate SWT progress bars. For
indeterminate progress, we don't have to know the total amount of work in
advance and no worked
method needs to be called.
Field Summary |
Fields inherited from class org.eclipse.swt.widgets.Control |
handle |
Constructor Summary | |
ProgressIndicator(Composite parent)
Create a ProgressIndicator as a child under the given parent. |
|
ProgressIndicator(Composite parent,
int style)
Create a ProgressIndicator as a child under the given parent. |
Method Summary | |
void |
beginAnimatedTask()
Initialize the progress bar to be animated. |
void |
beginTask(int max)
Initialize the progress bar. |
void |
done()
Progress is done. |
void |
sendRemainingWork()
Moves the progress indicator to the end. |
void |
showError()
Show the receiver as showing an error. |
void |
showNormal()
Reset the progress bar to it's normal style. |
void |
showPaused()
Show the receiver as being paused. |
void |
worked(double work)
Moves the progress indicator by the given amount of work units |
Methods inherited from class org.eclipse.swt.widgets.Composite |
changed, checkSubclass, computeSize, 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, getListeners, 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 ProgressIndicator(Composite parent)
parent
- The widgets parentpublic ProgressIndicator(Composite parent, int style)
parent
- The widgets parentstyle
- the SWT style constants for progress monitors created
by the receiver.Method Detail |
public void beginAnimatedTask()
public void beginTask(int max)
max
- The maximum value.public void done()
public void sendRemainingWork()
public void worked(double work)
work
- the amount of work to increment by.public void showError()
public void showPaused()
public void showNormal()
|
Eclipse Platform Release 3.4 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.