本文整理汇总了Java中org.springframework.richclient.progress.BusyIndicator.showAt方法的典型用法代码示例。如果您正苦于以下问题:Java BusyIndicator.showAt方法的具体用法?Java BusyIndicator.showAt怎么用?Java BusyIndicator.showAt使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.springframework.richclient.progress.BusyIndicator
的用法示例。
在下文中一共展示了BusyIndicator.showAt方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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());
}