本文整理了Java中com.smartgwt.client.widgets.Label.setContents()
方法的一些代码示例,展示了Label.setContents()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Label.setContents()
方法的具体详情如下:
包路径:com.smartgwt.client.widgets.Label
类名称:Label
方法名:setContents
[英]The contents of a canvas or label widget. Any HTML string is acceptable. Changes the contents of a widget to newContents, an HTML string.
When com.smartgwt.client.widgets.Canvas#getDynamicContents is set, setContents()
can also be called with no arguments to cause contents to be re-evaluated.
[中]画布或标签小部件的内容。任何HTML字符串都是可以接受的。将小部件的内容更改为newContents,一个HTML字符串。
当你在通信时。smartgwt。客户小部件。Canvas#getDynamicContents已设置,setContents()
也可以在没有参数的情况下调用,以导致重新计算内容。
代码示例来源:origin: com.smartgwt/smartgwt
public Label(String contents) {
setContents(contents);
scClassName = "Label";
}
代码示例来源:origin: org.geomajas.plugin/geomajas-plugin-staticsecurity-gwt
protected void reportError(String error) {
errorLabel.setContents("<span style='color:#FFAA00;'>" + error + "</span>");
}
代码示例来源:origin: org.geomajas/geomajas-project-deskmanager-gwt
private void setLoaded() {
loadingLayout.animateHide(AnimationEffect.FADE);
loadingLabel.setContents("");
}
代码示例来源:origin: org.geomajas/geomajas-project-deskmanager-gwt
public void setWarning(String warning) {
if (warning == null || "".equals(warning)) {
warnings.setVisible(false);
warnings.setContents("");
} else {
warnings.setVisible(true);
warnings.setContents(warning);
}
}
代码示例来源:origin: org.geomajas/geomajas-project-deskmanager-gwt
@Override
public void setLoaded() {
loadingLayout.animateHide(AnimationEffect.FADE);
loadingLabel.setContents("");
}
代码示例来源:origin: org.geomajas/geomajas-project-deskmanager-gwt
private void setLoaded() {
loadingLayout.animateHide(AnimationEffect.FADE);
loadingLabel.setContents("");
}
代码示例来源:origin: org.geomajas/geomajas-project-deskmanager-gwt
private void setLoaded() {
loadingLayout.animateHide(AnimationEffect.FADE);
loadingLabel.setContents("");
}
代码示例来源:origin: org.geomajas.widget/geomajas-widget-utility-gwt-example-jar
public void onMouseMove(ListenerEvent event) {
Coordinate worldPosition = event.getWorldPosition();
double x = ((double) Math.round(worldPosition.getX() * 1000)) / 1000;
double y = ((double) Math.round(worldPosition.getY() * 1000)) / 1000;
xLabel.setContents(xText + ": " + x);
yLabel.setContents(yText + ": " + y);
}
代码示例来源:origin: org.n52.sensorweb/sensorwebclient-ui
public void setWindowTitle(String windowTitle) {
if (windowTitle.isEmpty() || windowTitle == null) {
title.hide();
} else {
title.setContents(windowTitle);
title.show();
}
}
代码示例来源:origin: org.geomajas/geomajas-project-deskmanager-gwt
public void execute(String result) {
reset();
warnings.setVisible(true);
warnings.setContents("<b><i>" + result + "</i></b>");
loading = false;
fireChangedEvent();
}
});
代码示例来源:origin: org.geomajas/geomajas-project-deskmanager-gwt
public void execute(String result) {
grid.setShowEmptyMessage(false);
reset();
warnings.setVisible(true);
warnings.setContents("<b><i>" + result + "</i></b>");
}
});
代码示例来源:origin: org.geomajas/geomajas-project-deskmanager-gwt
public void reset() {
grid.deselectAllRecords();
grid.setData(new Record[]{});
warnings.setVisible(false);
warnings.setContents("");
}
代码示例来源:origin: org.geomajas/geomajas-project-deskmanager-gwt
@Override
public void setLoading() {
loadingLabel.setContents("<B><i>" + MESSAGES.loadingConfig() + "</i> " + "<img src='"
+ Geomajas.getIsomorphicDir() + "/images/circle.gif' style='height: 1em' /></B>");
loadingLayout.animateShow(AnimationEffect.FADE);
}
代码示例来源:origin: org.geomajas/geomajas-project-deskmanager-gwt
public void execute(String result) {
grid.setShowEmptyMessage(false);
reset();
warnings.setVisible(true);
warnings.setContents("<b><i>" + result + "</i></b>");
}
});
代码示例来源:origin: org.geomajas/geomajas-project-deskmanager-gwt
private void setLoading() {
loadingLabel.setContents("<B><i>" + MESSAGES.loadingConfig() + "</i> <img src='" + Geomajas.getIsomorphicDir()
+ "/images/circle.gif' style='height: 1em' /></B>");
loadingLayout.animateShow(AnimationEffect.FADE);
}
代码示例来源:origin: org.geomajas/geomajas-project-deskmanager-gwt
private void setLoading() {
loadingLabel.setContents("<B><i>" + MESSAGES.blueprintDetailLoadingConfig() + "</i> " + "<img src='"
+ Geomajas.getIsomorphicDir() + "/images/circle.gif' style='height: 1em' /></B>");
loadingLayout.animateShow(AnimationEffect.FADE);
}
代码示例来源:origin: org.geomajas/geomajas-project-deskmanager-gwt
@Override
public void reset() {
grid.deselectAllRecords();
grid.setData(new Record[] {});
warnings.setVisible(false);
warnings.setContents("");
}
代码示例来源:origin: org.geomajas/geomajas-project-deskmanager-gwt
private void setLoading() {
loadingLabel.setContents("<B><i>" + MESSAGES.loadingConfig() + "</i> " + "<img src='"
+ Geomajas.getIsomorphicDir() + "/images/circle.gif' style='height: 1em' /></B>");
loadingLayout.animateShow(AnimationEffect.FADE);
}
代码示例来源:origin: org.geomajas/geomajas-project-deskmanager-gwt
@Override
public void reset() {
grid.deselectAllRecords();
grid.setData(new Record[] {});
warnings.setVisible(false);
warnings.setContents("");
}
代码示例来源:origin: org.geomajas/geomajas-project-deskmanager-gwt
public void onMapModelChanged(MapModelChangedEvent event) {
onLoadRegistration.removeHandler();
label.setContents(I18nProvider.getGlobal().loadScreenLoadText());
if (GwtCommandDispatcher.getInstance().isBusy()) {
GwtCommandDispatcher.getInstance().addDispatchStoppedHandler(new DispatchStoppedHandler() {
public void onDispatchStopped(DispatchStoppedEvent event) {
fadeOut();
}
});
} else {
fadeOut();
}
}
});
内容来源于网络,如有侵权,请联系作者删除!