本文整理了Java中com.smartgwt.client.widgets.Label.setPadding()
方法的一些代码示例,展示了Label.setPadding()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Label.setPadding()
方法的具体详情如下:
包路径:com.smartgwt.client.widgets.Label
类名称:Label
方法名:setPadding
暂无
代码示例来源:origin: org.geomajas.widget/geomajas-widget-featureinfo-gwt-example-jar
public CustomCountriesFeatureInfoCanvas(Feature feature) {
setBackgroundColor("#BBFFBB");
l = new Label("<b>Custom DetailPanel for feature: </b>" + feature.getId());
l.setWidth(250);
l.setPadding(10);
addChild(l);
}
代码示例来源: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.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/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/geomajas-project-deskmanager-gwt
root.addMember(form);
Label l = new Label("<b>" + MESSAGES.editLayerSettingsStepVisibleArea() + " : </b>");
l.setPadding(10);
l.setWidth100();
l.setAutoHeight();
代码示例来源:origin: org.geomajas.widget/geomajas-widget-searchandfilter-gwt
titleBar.setWidth100();
titleBar.setHeight(20);
titleBar.setPadding(5);
代码示例来源:origin: org.geomajas.widget/geomajas-widget-searchandfilter-gwt
titleBar.setWidth100();
titleBar.setHeight(20);
titleBar.setPadding(5);
noSelection.setWidth100();
noSelection.setAlign(Alignment.CENTER);
noSelection.setPadding(5);
noSelection.setTooltip(messages.geometricSearchWidgetSelectionSearchNothingSelectedTooltip());
代码示例来源:origin: org.geomajas/geomajas-project-deskmanager-gwt
warnings.setWidth100();
warnings.setAutoHeight();
warnings.setPadding(3);
warnings.setOverflow(Overflow.VISIBLE);
warnings.setVisible(false);
代码示例来源:origin: org.geomajas/geomajas-project-deskmanager-gwt
warnings.setWidth100();
warnings.setAutoHeight();
warnings.setPadding(3);
warnings.setOverflow(Overflow.VISIBLE);
warnings.setVisible(false);
代码示例来源:origin: org.geomajas/geomajas-project-deskmanager-gwt
warnings.setWidth100();
warnings.setAutoHeight();
warnings.setPadding(3);
warnings.setOverflow(Overflow.VISIBLE);
warnings.setVisible(false);
内容来源于网络,如有侵权,请联系作者删除!