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


Java MaterialProgress類代碼示例

本文整理匯總了Java中gwt.material.design.client.ui.MaterialProgress的典型用法代碼示例。如果您正苦於以下問題:Java MaterialProgress類的具體用法?Java MaterialProgress怎麽用?Java MaterialProgress使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


MaterialProgress類屬於gwt.material.design.client.ui包,在下文中一共展示了MaterialProgress類的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: setup

import gwt.material.design.client.ui.MaterialProgress; //導入依賴的package包/類
@Override
public void setup(TableScaffolding scaffolding) throws Exception {
    try {
        container = $(getContainer());
        table = scaffolding.getTable();
        tableBody = $(scaffolding.getTableBody());
        topPanel = $(scaffolding.getTopPanel());
        tbody = table.getBody();
        thead = table.getHead();
        $table = table.getJsElement();

        headerRow = new TableRow();
        thead.add(headerRow);

        // Create progress widget
        progressWidget = new MaterialProgress();
        progressWidget.setTop(0);
        progressWidget.setGwtDisplay(Display.NONE);
        TableRow progressRow = new TableRow();
        progressRow.addStyleName(TableCssName.STICKYEXCLUDE);
        progressRow.setHeight("3px");
        TableData progressTd = new TableData();
        progressTd.getElement().setAttribute("colspan", "999");
        progressTd.setPadding(0);
        progressTd.setHeight("0px");
        progressTd.add(progressWidget);
        progressRow.add(progressTd);
        thead.add(progressRow);

        if(useRowExpansion) {
            // Add the expand header
            TableHeader expandHeader = new TableHeader();
            expandHeader.setStyleName(TableCssName.COLEX);
            addHeader(0, expandHeader);
        }

        if(!selectionType.equals(SelectionType.NONE)) {
            setupHeaderSelectionBox();

            if(selectionType.equals(SelectionType.MULTIPLE)) {
                setupShiftDetection();
            }
        }

        // Setup the sticky header bar
        if (useStickyHeader) {
            setupStickyHeader();
        }

        // Setup the subheaders for categories
        setupSubHeaders();

        // Setup the resize event handlers
        tableBody.on("resize." + id, e -> {
            refresh();
            return true;
        });

        // We will check the window resize just in case
        // it has updated the view size of the data view.
        $(window()).on("resize." + id, e -> {
            // In the cases where the table is not currently attached.
            if(getContainer().isAttached()) {
                refresh();
            }
            return true;
        });

        setup = true;

        onSetup(scaffolding);

        SetupEvent.fire(this, scaffolding);
    } catch (Exception ex) {
        logger.log(Level.SEVERE, "Problem setting up the DataView.", ex);
        throw ex;
    }
}
 
開發者ID:GwtMaterialDesign,項目名稱:gwt-material-table,代碼行數:79,代碼來源:AbstractDataView.java

示例2: getProgressWidget

import gwt.material.design.client.ui.MaterialProgress; //導入依賴的package包/類
@Override
public MaterialProgress getProgressWidget() {
    return progressWidget;
}
 
開發者ID:GwtMaterialDesign,項目名稱:gwt-material-table,代碼行數:5,代碼來源:AbstractDataView.java

示例3: getProgress

import gwt.material.design.client.ui.MaterialProgress; //導入依賴的package包/類
@Override
public MaterialProgress getProgress() {
    return progress;
}
 
開發者ID:GwtMaterialDesign,項目名稱:gwt-material,代碼行數:5,代碼來源:ProgressMixin.java

示例4: getProgressWidget

import gwt.material.design.client.ui.MaterialProgress; //導入依賴的package包/類
/**
 * Get the data views progress widget.
 */
MaterialProgress getProgressWidget();
 
開發者ID:GwtMaterialDesign,項目名稱:gwt-material-table,代碼行數:5,代碼來源:DataView.java

示例5: getProgress

import gwt.material.design.client.ui.MaterialProgress; //導入依賴的package包/類
MaterialProgress getProgress(); 
開發者ID:GwtMaterialDesign,項目名稱:gwt-material,代碼行數:2,代碼來源:HasProgress.java


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