本文整理匯總了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;
}