本文整理汇总了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;
}
}
示例2: getProgressWidget
import gwt.material.design.client.ui.MaterialProgress; //导入依赖的package包/类
@Override
public MaterialProgress getProgressWidget() {
return progressWidget;
}
示例3: getProgress
import gwt.material.design.client.ui.MaterialProgress; //导入依赖的package包/类
@Override
public MaterialProgress getProgress() {
return progress;
}
示例4: getProgressWidget
import gwt.material.design.client.ui.MaterialProgress; //导入依赖的package包/类
/**
* Get the data views progress widget.
*/
MaterialProgress getProgressWidget();
示例5: getProgress
import gwt.material.design.client.ui.MaterialProgress; //导入依赖的package包/类
MaterialProgress getProgress();