本文整理匯總了Java中org.springframework.richclient.progress.BusyIndicator類的典型用法代碼示例。如果您正苦於以下問題:Java BusyIndicator類的具體用法?Java BusyIndicator怎麽用?Java BusyIndicator使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
BusyIndicator類屬於org.springframework.richclient.progress包,在下文中一共展示了BusyIndicator類的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: statusBarBegin
import org.springframework.richclient.progress.BusyIndicator; //導入依賴的package包/類
/**
* statusBarBegin.
*
* @param progress Progress
* @param message String
* @param activityMonitored String
*/
public void statusBarBegin(final Progress progress, final String message,
final String activityMonitored) {
BusyIndicator.showAt(Application.instance().getActiveWindow().getControl());
task = new LongTask();
task.setActivityMonitored(activityMonitored);
task.setProgress(progress);
timer.addActionListener(new TimerListener());
progressMonitor =
new ProgressMonitor(this.getControl(), message, "Preparing the " + "operation...",
0, 1);
progressMonitor.setMillisToDecideToPopup(ONE_SECOND);
task.setMonitor(progressMonitor);
task.go();
timer.start();
}
示例2: addBagData
import org.springframework.richclient.progress.BusyIndicator; //導入依賴的package包/類
/**
* addBagData.
*
* @param file File
*/
private void addBagData(final File file) {
BusyIndicator.showAt(Application.instance().getActiveWindow().getControl());
try {
bagView.getBag().addFileToPayload(file);
final boolean alreadyExists = bagView.bagPayloadTree.addNodes(file, false);
if (alreadyExists) {
BagView.showWarningErrorDialog("Warning - file already exists",
"File: " + file.getName() + "\n" + "already exists in bag.");
}
} catch (final Exception e) {
log.error("Failed to add bag file", e);
BagView.showWarningErrorDialog("Error - file not added",
"Error adding bag file: " + file + "\ndue to:\n" + e.getMessage());
}
BusyIndicator.clearAt(Application.instance().getActiveWindow().getControl());
}
示例3: doSort
import org.springframework.richclient.progress.BusyIndicator; //導入依賴的package包/類
private void doSort() {
try {
BusyIndicator.showAt(table);
final int[] preSortSelectedRows = table.getSelectedRows();
int[] postSortSelectedRows = sortableTableModel
.sortByColumns(sortList.getSortLevels(), preSortSelectedRows);
for (int i = 0; i < postSortSelectedRows.length; i++) {
table.addRowSelectionInterval(postSortSelectedRows[i], postSortSelectedRows[i]);
}
if (postSortSelectedRows.length > 0) {
TableUtils.scrollToRow(table, postSortSelectedRows[0]);
}
}
finally {
BusyIndicator.clearAt(table);
}
}
示例4: actionPerformed
import org.springframework.richclient.progress.BusyIndicator; //導入依賴的package包/類
/**
* actionPerformed.
*
* @param e ActionEvent
*/
@Override
public void actionPerformed(final ActionEvent e) {
BusyIndicator.showAt(Application.instance().getActiveWindow().getControl());
addData();
BusyIndicator.clearAt(Application.instance().getActiveWindow().getControl());
}
示例5: statusBarEnd
import org.springframework.richclient.progress.BusyIndicator; //導入依賴的package包/類
/**
* statusBarEnd.
*/
public static void statusBarEnd() {
BusyIndicator.clearAt(Application.instance().getActiveWindow().getControl());
}