本文整理匯總了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();