本文整理了Java中com.smartgwt.client.widgets.Label
类的一些代码示例,展示了Label
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Label
类的具体详情如下:
包路径:com.smartgwt.client.widgets.Label
类名称:Label
[英]Labels display a small amount of com.smartgwt.client.widgets.Label#getAlign com.smartgwt.client.widgets.Label#getContents with optional com.smartgwt.client.widgets.Label#getIconand com.smartgwt.client.widgets.Label#getAutoFit.
For a general-purpose container for HTML content, use com.smartgwt.client.widgets.HTMLFlow or com.smartgwt.client.widgets.HTMLPane instead.
[中]标签显示少量com。smartgwt。客户小部件。标签#getAlign com。smartgwt。客户小部件。使用可选com标记#getContents。smartgwt。客户小部件。标签#geticon和com。smartgwt。客户小部件。标签#getAutoFit。
对于HTML内容的通用容器,请使用com。smartgwt。客户小部件。HTMLFlow或com。smartgwt。客户小部件。而不是HTMLPane。
代码示例来源: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 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.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.widget/geomajas-widget-advancedviews-gwt
public Canvas createCategory(String title) {
Label cat = new Label(title);
cat.setStyleName("themeWidget-selectionPanelTitle");
cat.setWidth100();
cat.setHeight(20);
return cat;
}
代码示例来源: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 getSeparator(){
Label pipe = new Label("|");
pipe.setStyleName("n52_sensorweb_client_pipe");
pipe.setAutoWidth();
return pipe;
}
代码示例来源:origin: org.geomajas.plugin/geomajas-plugin-springsecurity
Label titleLabel = new Label(slogan);
titleLabel.setWidth(logoWidth);
titleLabel.setHeight(24);
titleLabel.setLayoutAlign(Alignment.CENTER);
titleLabel.setAlign(Alignment.CENTER);
layout.addMember(titleLabel);
errorLabel = new Label();
errorLabel.setWidth100();
errorLabel.setHeight(14);
layout.addMember(errorLabel);
代码示例来源:origin: org.geomajas/geomajas-project-deskmanager-gwt
public WmsPreviewLayerStep(Wizard parent) {
super(NewLayerModelWizardWindow.STEP_WMS_PREVIEW_LAYER, MESSAGES.wmsPreviewLayerStepNumbering() + " " +
MESSAGES.wmsPreviewLayerStepTitle(), false, parent);
setWindowTitle(MESSAGES.wmsPreviewLayerStepTitle());
img = new Img();
img.setWidth(300);
img.setHeight(200);
img.setImageType(ImageStyle.CENTER);
img.setLayoutAlign(VerticalAlignment.CENTER);
addMember(img);
warnings = new Label();
warnings.setWidth100();
warnings.setAutoHeight();
warnings.setPadding(3);
warnings.setOverflow(Overflow.VISIBLE);
warnings.setVisible(false);
warnings.setBackgroundColor("#FFCCCC");
addMember(warnings);
}
代码示例来源:origin: org.geomajas.plugin/geomajas-plugin-printing-gwt-example-jar
topBar.addSpacer(6);
Label title = new Label("Geomajas, Simple printing GWT example");
title.setStyleName("sgwtTitle");
title.setWidth(400);
topBar.addMember(title);
代码示例来源:origin: com.github.livesense/org.liveSense.jcr.explorer
public void drawMainLayout() {
mainLayout.setLayoutMargin(15);
Label navigationLabel = new Label();
navigationLabel.setAlign(Alignment.CENTER);
navigationLabel.setOverflow(Overflow.HIDDEN);
navigationLabel.setWidth("40%");
navigationLabel.setShowResizeBar(true);
Label topRightLabel = new Label();
topRightLabel.setAlign(Alignment.CENTER);
topRightLabel.setOverflow(Overflow.HIDDEN);
topRightLabel.setHeight("185");
topRightLabel.setShowResizeBar(true);
Label bottonRightLabel = new Label();
bottonRightLabel.setAlign(Alignment.CENTER);
bottonRightLabel.setOverflow(Overflow.HIDDEN);
bottonRightLabel.setHeight("100%");
navigationLabel.addChild(createNavigation());
topRightLabel.addChild(new Details().createDetails(this));
bottomRightTabSet.setWidth100();
bottomRightTabSet.setHeight100();
bottomRightTabSet.setTabs(createPropertiesTab(), createSearchResultsTab());
bottonRightLabel.addChild(bottomRightTabSet);
vLayout.addMember(topRightLabel);
vLayout.addMember(bottonRightLabel);
代码示例来源:origin: org.geomajas.widget/geomajas-widget-searchandfilter-gwt
mainLayout.setHeight100();
Label titleBar = new Label(messages.geometricSearchWidgetSelectionSearchTitle());
titleBar.setBackgroundColor("#E0E9FF");
titleBar.setWidth100();
titleBar.setHeight(20);
titleBar.setPadding(5);
noSelection = new Label(messages.geometricSearchWidgetSelectionSearchNothingSelected());
noSelection.setWidth100();
noSelection.setAlign(Alignment.CENTER);
noSelection.setPadding(5);
noSelection.setTooltip(messages.geometricSearchWidgetSelectionSearchNothingSelectedTooltip());
代码示例来源:origin: org.geomajas/geomajas-project-deskmanager-gwt
private void createLoadingWidget() {
loadingLayout = new VLayout();
loadingLayout.setWidth100();
loadingLayout.setHeight100();
loadingLayout.setOpacity(70);
loadingLayout.setBackgroundColor("ffffff");
loadingLabel = new Label();
loadingLabel.setTop("30%");
loadingLabel.setAlign(Alignment.CENTER);
loadingLayout.addMember(loadingLabel);
loadingLayout.hide();
}
}
代码示例来源:origin: org.geomajas/geomajas-project-deskmanager-gwt
lbl = new Label(label);
lbl.setWidth(147);
lbl.setHeight(20);
lbl.setAlign(Alignment.RIGHT);
lbl.setBaseStyle("formTitle");
lbl.setShowDisabled(true);
lbl.setDisabled(true);
if (tooltip != null) {
lbl.setTooltip(tooltip);
代码示例来源: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.geomajas/geomajas-project-deskmanager-gwt
if (tooltip == null) {
tooltip = new VLayout(5);
info = new Label(getInfoText());
info.setAutoHeight();
info.setWidth100();
info.setAlign(Alignment.CENTER);
tooltip.setWidth(width);
tooltip.setAutoHeight();
info.setContents(getInfoText());
代码示例来源:origin: org.n52.sensorweb/sensorwebclient-ui
Label day = new Label(i18n.day());
day.setWidth(35);
day.setAlign(Alignment.CENTER);
day.setPosition(Positioning.ABSOLUTE);
day.setStyleName("controlLabel");
Label week = new Label(i18n.week());
week.setWidth(35);
week.setAlign(Alignment.CENTER);
week.setPosition(Positioning.ABSOLUTE);
week.setStyleName("controlLabel");
Label month = new Label(i18n.month());
month.setWidth(35);
month.setAlign(Alignment.CENTER);
month.setPosition(Positioning.ABSOLUTE);
month.setStyleName("controlLabel");
Label year = new Label(i18n.year());
year.setWidth(35);
year.setAlign(Alignment.CENTER);
year.setPosition(Positioning.ABSOLUTE);
year.setStyleName("controlLabel");
代码示例来源:origin: org.geomajas.widget/geomajas-widget-searchandfilter-gwt
public MultiFeatureListGrid(MapWidget map) {
super();
this.map = map;
tabset = new TabSet();
tabset.setWidth100();
tabset.setHeight100();
tabset.setOverflow(Overflow.HIDDEN);
tabset.addCloseClickHandler(new CloseClickHandler() {
public void onCloseClick(TabCloseClickEvent event) {
setEmpty((tabset.getTabs().length == 1));
}
});
this.addChild(tabset);
empty = new Label(MESSAGES.multiFeatureListGridNoData());
empty.setWidth100();
empty.setAlign(Alignment.CENTER);
empty.setPadding(15);
this.addChild(empty);
}
代码示例来源:origin: org.geomajas.widget/geomajas-widget-searchandfilter-gwt
layout.setAlign(Alignment.CENTER);
layout.setWidth100();
Label label = new Label(messages.searchControllerSearchingMessage());
label.setWidth100();
label.setHeight(30);
label.setAlign(Alignment.CENTER);
layout.addMember(label);
代码示例来源:origin: org.geomajas.widget/geomajas-widget-advancedviews-gwt
labeltext.append("<br />" + description);
Label desc = new Label(labeltext.toString());
desc.setCursor(Cursor.HAND);
desc.setBackgroundColor("transparent");
desc.setWidth100();
desc.setHeight100();
desc.setBackgroundColor("transparent");
desc.setValign(VerticalAlignment.CENTER);
addMember(desc);
desc.addMouseOverHandler(movh);
desc.addMouseOutHandler(mouh);
内容来源于网络,如有侵权,请联系作者删除!