本文整理汇总了Java中org.eclipse.swt.SWT.INDETERMINATE属性的典型用法代码示例。如果您正苦于以下问题:Java SWT.INDETERMINATE属性的具体用法?Java SWT.INDETERMINATE怎么用?Java SWT.INDETERMINATE使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.eclipse.swt.SWT
的用法示例。
在下文中一共展示了SWT.INDETERMINATE属性的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: AZProgressBar
/**
*
* @param parent
* @param isIndeterminate
* @param useInputButton determines whether the <code>inputButton</code> is available or not
* @param image an <code>Image</code> to display; may be null
*/
public AZProgressBar(Composite parent, boolean isIndeterminate) {
super(parent, SWT.NULL);
incrementalProgressBar = new ProgressBar(this, SWT.HORIZONTAL);
indeterminateProgressBar = new ProgressBar(this, SWT.HORIZONTAL
| SWT.INDETERMINATE);
stack = new StackLayout();
setLayout(stack);
pack();
setIndeterminate(isIndeterminate);
}
示例2: createDialogArea
private Control createDialogArea(Composite shell) {
GridLayout layout = new GridLayout();
layout.numColumns = 1;
shell.setLayout(layout);
lblStep = new Label(shell, SWT.NONE);
lblStep.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false));
lblStep.setText("Step 1 / 999");
lblMessage = new Label(shell, SWT.NONE);
lblMessage.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false));
lblMessage.setText("Idle");
pbProg = new ProgressBar(shell, SWT.SMOOTH | SWT.INDETERMINATE);
pbProg.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false));
pbProg.setMaximum(1000);
pbProg.setSelection(0);
pbProg.setSelection(256);
final Label lblSeparator = new Label(shell, SWT.SEPARATOR | SWT.HORIZONTAL);
lblSeparator.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false));
txtLog = new Text(shell, SWT.MULTI
| SWT.BORDER
| SWT.H_SCROLL
| SWT.V_SCROLL);
txtLog.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, true));
txtLog.setEditable(false);
txtLog.setBackground(new Color(shell.getDisplay(), 10,10,10));
txtLog.setForeground(new Color(shell.getDisplay(), 200,200,200));
shell.layout();
return shell;
}