當前位置: 首頁>>代碼示例>>Java>>正文


Java BusyIndicator類代碼示例

本文整理匯總了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();
}
 
開發者ID:pan-dora,項目名稱:modeller,代碼行數:26,代碼來源:BagView.java

示例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());
}
 
開發者ID:pan-dora,項目名稱:modeller,代碼行數:22,代碼來源:AddDataHandler.java

示例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);
    }
}
 
開發者ID:shevek,項目名稱:spring-rich-client,代碼行數:22,代碼來源:SortTableCommand.java

示例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());
}
 
開發者ID:pan-dora,項目名稱:modeller,代碼行數:12,代碼來源:AddDataHandler.java

示例5: statusBarEnd

import org.springframework.richclient.progress.BusyIndicator; //導入依賴的package包/類
/**
 * statusBarEnd.
 */
public static void statusBarEnd() {
    BusyIndicator.clearAt(Application.instance().getActiveWindow().getControl());
}
 
開發者ID:pan-dora,項目名稱:modeller,代碼行數:7,代碼來源:BagView.java


注:本文中的org.springframework.richclient.progress.BusyIndicator類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。