更新时间:2023-01-08 17:22:09
在 SWT 中,有 3 种内置状态,每种状态用一种颜色表示:
In SWT there are 3 built-in states, each represented by a color:
progressBar.setState(SWT.ERROR); //Red Fill color. Useful when the task is aborted.
此状态不支持不确定的进度条样式(SWT.INDETERMINATE).
This state does not support an indeterminate progress bar style (SWT.INDETERMINATE).
progressBar.setState(SWT.PAUSED); //Yellow Fill color.
此状态将暂停不确定的进度条动画.
This state will pause the indeterminate progress bar animation.
progressBar.setState(SWT.NORMAL); //Default state and color as controlled by OS.