本文整理了Java中com.smartgwt.client.widgets.Label.setWrap()
方法的一些代码示例,展示了Label.setWrap()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Label.setWrap()
方法的具体详情如下:
包路径:com.smartgwt.client.widgets.Label
类名称:Label
方法名:setWrap
[英]If false, the label text will not be wrapped to the next line.
[中]如果为false,标签文本将不会换行到下一行。
代码示例来源:origin: org.n52.sensorweb/sensorwebclient-ui
private Label getHeaderLinkLabel(String labelText) {
Label label = new Label(labelText);
label.setStyleName("n52_sensorweb_client_headerlink");
label.setAutoWidth();
label.setWrap(false);
return label;
}
代码示例来源:origin: org.n52.sensorweb/sensorwebclient-ui
private Label getHeaderLinkLabel(String labelText) {
Label label = new Label(labelText);
label.setStyleName("n52_sensorweb_client_headerlink");
label.setAutoWidth();
label.setWrap(false);
return label;
}
代码示例来源:origin: org.n52.sensorweb/sensorwebclient-ui
private Label createCSVLabel() {
Label toCSV = new Label(i18n.toCSV());
toCSV.setWrap(false);
toCSV.setAutoFit(true);
toCSV.setPadding(3);
toCSV.setWidth100();
toCSV.setStyleName("n52_sensorweb_client_exportEntry");
toCSV.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
controller.exportTo(ExportType.CSV_ZIP);
exportMenu.hide();
}
});
return toCSV;
}
代码示例来源:origin: org.n52.sensorweb/sensorwebclient-ui
private Label createPDFLabel() {
Label toPDF = new Label(i18n.toPDF());
toPDF.setWrap(false);
toPDF.setAutoFit(true);
toPDF.setPadding(3);
toPDF.setWidth100();
toPDF.setStyleName("n52_sensorweb_client_exportEntry");
toPDF.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
controller.exportTo(ExportType.PDF_ALL_IN_ONE);
exportMenu.hide();
}
});
return toPDF;
}
代码示例来源:origin: org.n52.sensorweb/sensorwebclient-ui
private Canvas createValueIntervalLabel() {
Layout interval = new HLayout();
interval.setAutoWidth();
interval.setStyleName("n52_sensorweb_client_legendInfoRow");
this.firstValueInterval.setAutoWidth();
this.firstValueInterval.setWrap(false);
this.firstValueInterval.setStyleName("n52_sensorweb_client_legendlink");
this.lastValueInterval.setAutoWidth();
this.lastValueInterval.setWrap(false);
this.lastValueInterval.setStyleName("n52_sensorweb_client_legendlink");
Label separator = new Label(i18n.to());
separator.setAlign(Alignment.CENTER);
separator.setWidth(20);
interval.addMember(this.firstValueInterval);
interval.addMember(separator);
interval.addMember(this.lastValueInterval);
return interval;
}
代码示例来源:origin: org.n52.sensorweb/sensorwebclient-ui
private Canvas createAutoScaleButton() {
Layout layout = new Layout();
layout.setStyleName("n52_sensorweb_client_scaleButtonLayout");
autoScaleButton = new Label(i18n.resetScale());
autoScaleButton.setStyleName("n52_sensorweb_client_scaleButton");
autoScaleButton.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
EventBus.getMainEventBus().fireEvent(new SwitchAutoscaleEvent(true), new EventCallback() {
public void onEventFired() {
EventBus.getMainEventBus().fireEvent(new RequestDataEvent());
}
});
}
});
autoScaleButton.setWidth(80);
autoScaleButton.setWrap(false);
return autoScaleButton;
}
代码示例来源:origin: org.n52.sensorweb/sensorwebclient-ui
public InteractionWindow(Layout content) {
this.setContent(content);
title = new Label();
title.setWidth100();
title.setAutoHeight();
title.setStyleName("n52_sensorweb_client_interactionmenuHeader");
title.setWrap(false);
title.hide();
addMember(title);
addMember(content);
setStyleName("n52_sensorweb_client_interactionmenu");
}
代码示例来源:origin: org.n52.sensorweb/sensorwebclient-ui
private Canvas createSelectionMenuButton() {
showSelectionMenuButton = new Label(i18n.chooseDataSource());
showSelectionMenuButton.setStyleName("n52_sensorweb_client_legendbuttonPrimary");
showSelectionMenuButton.setZIndex(1000000);
showSelectionMenuButton.setAutoHeight();
showSelectionMenuButton.setAutoWidth();
showSelectionMenuButton.setWrap(false);
showSelectionMenuButton.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
if (selectionMenu.isVisible()) {
selectionMenu.animateHide(AnimationEffect.SLIDE);
} else {
selectionMenu.animateShow(AnimationEffect.SLIDE);
}
}
});
setSelectionMenuButtonPosition();
return showSelectionMenuButton;
}
代码示例来源:origin: org.n52.sensorweb/sensorwebclient-ui
private Canvas createGridToggleButton() {
Layout layout = new Layout();
layout.setStyleName("n52_sensorweb_client_gridButtonLayout");
gridShown = true;
gridButton = new Label(i18n.hideGrid());
gridButton.setStyleName("n52_sensorweb_client_gridButton");
gridButton.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
EventBus.getMainEventBus().fireEvent(new SwitchGridEvent(), new EventCallback() {
public void onEventFired() {
EventBus.getMainEventBus().fireEvent(new RequestDataEvent());
final boolean gridShown = DataControlsTimeSeries.this.gridShown;
if (gridShown) {
String contents = "<html>" + i18n.showGrid() + "</html>";
gridButton.setContents(contents);
} else {
String contents = "<html>" + i18n.hideGrid() + "</html>";
gridButton.setContents(contents);
}
DataControlsTimeSeries.this.gridShown = !gridShown;
}
});
}
});
gridButton.setWidth(80);
gridButton.setWrap(false);
layout.addMember(gridButton);
return layout;
}
代码示例来源:origin: org.n52.sensorweb/sensorwebclient-ui
user.setStyleName("n52_sensorweb_client_headerLoggedInAs");
user.setAutoWidth();
user.setWrap(false);
addMember(user);
代码示例来源:origin: org.geomajas.widget/geomajas-widget-layer-gwt-example-jar
label.setWrap(false);
addImgContainer.addMember(label);
内容来源于网络,如有侵权,请联系作者删除!