com.smartgwt.client.widgets.Label.setWidth100()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(6.1k)|赞(0)|评价(0)|浏览(125)

本文整理了Java中com.smartgwt.client.widgets.Label.setWidth100()方法的一些代码示例,展示了Label.setWidth100()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Label.setWidth100()方法的具体详情如下:
包路径:com.smartgwt.client.widgets.Label
类名称:Label
方法名:setWidth100

Label.setWidth100介绍

暂无

代码示例

代码示例来源: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 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

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.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

urlWarningLabel.setWidth100();
Layout errorLabelLayout = new Layout();
errorLabelLayout.setStyleName(resource.css().addLayerGetCapabilitiesUrlErrorLabel());

代码示例来源:origin: org.geomajas.widget/geomajas-widget-advancedviews-gwt

desc.setCursor(Cursor.HAND);
desc.setBackgroundColor("transparent");
desc.setWidth100();
desc.setHeight100();
desc.setBackgroundColor("transparent");

代码示例来源: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.widget/geomajas-widget-featureinfo-gwt

public Window createFeatureDetailWindow(Feature feature, boolean editingAllowed) {
  String url = buildUrl(feature);
  if (url == null) {
    if (showDefaultIfNull) {
      return FeatureDetailWidgetFactory.createDefaultFeatureDetailWindow(feature, feature.getLayer(),
          editingAllowed);
    } else {
      Label l = new Label(MESSAGES.urlFeatureDetailWidgetBuilderNoValue());
      l.setWidth100();
      l.setHeight100();
      l.setValign(VerticalAlignment.CENTER);
      l.setAlign(Alignment.CENTER);
      Window w = createWindow(feature.getLabel());
      w.addItem(l);
      return w;
    }
  } else {
    HTMLPane htmlPane = new HTMLPane();
    htmlPane.setWidth100();
    htmlPane.setHeight100();
    htmlPane.setContentsURL(url);
    htmlPane.setContentsType(ContentsType.PAGE);
    Window w = createWindow(feature.getLabel());
    w.addItem(htmlPane);
    return w;
  }
}

代码示例来源:origin: org.geomajas/geomajas-project-deskmanager-gwt

Label l = new Label("<b>" + MESSAGES.editLayerSettingsStepVisibleArea() + " : </b>");
l.setPadding(10);
l.setWidth100();
l.setAutoHeight();
root.addMember(l);

代码示例来源:origin: org.geomajas/geomajas-project-deskmanager-gwt

info = new Label(getInfoText());
info.setAutoHeight();
info.setWidth100();
info.setAlign(Alignment.CENTER);
tooltip.setWidth(width);

代码示例来源: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);

代码示例来源:origin: org.geomajas.widget/geomajas-widget-searchandfilter-gwt

titleBar.setWidth100();
titleBar.setHeight(20);
titleBar.setPadding(5);

代码示例来源:origin: org.geomajas.widget/geomajas-widget-searchandfilter-gwt

layout.setWidth100();
Label label = new Label(messages.searchControllerSearchingMessage());
label.setWidth100();
label.setHeight(30);
label.setAlign(Alignment.CENTER);

代码示例来源:origin: org.geomajas/geomajas-project-deskmanager-gwt

warnings.setWidth100();
warnings.setAutoHeight();
warnings.setPadding(3);

代码示例来源:origin: org.geomajas/geomajas-project-deskmanager-gwt

warnings.setWidth100();
warnings.setAutoHeight();
warnings.setPadding(3);

代码示例来源:origin: org.geomajas.plugin/geomajas-plugin-springsecurity

errorLabel.setWidth100();
errorLabel.setHeight(14);
layout.addMember(errorLabel);

代码示例来源:origin: org.geomajas.plugin/geomajas-plugin-staticsecurity-gwt

errorLabel.setWidth100();
errorLabel.setHeight(14);
layout.addMember(errorLabel);

代码示例来源:origin: org.n52.sensorweb/sensorwebclient-ui

this.titleLabel.setWidth100();
this.titleLabel.setStyleName("n52_sensorweb_client_legendEntryTitle");
this.titleLabel.setOverflow(Overflow.HIDDEN);

代码示例来源:origin: org.geomajas/geomajas-project-deskmanager-gwt

warnings.setWidth100();
warnings.setAutoHeight();
warnings.setPadding(3);

相关文章