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