当前位置: 首页>>代码示例>>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;未经允许,请勿转载。