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

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

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

Label.setWidth介绍

暂无

代码示例

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

private void setSelectionMenuButtonPosition() {
  int width = 150;
  showSelectionMenuButton.setWidth(width);
  showSelectionMenuButton.setTop(3);
  showSelectionMenuButton.setLeft(WIDTH - width - 25);
}

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

titleLabel.setWidth(logoWidth);
titleLabel.setHeight(24);
titleLabel.setLayoutAlign(Alignment.CENTER);

代码示例来源:origin: com.github.livesense/org.liveSense.jcr.explorer

public MixinNodeTypes(JcrExplorer jcrExplorer) {
  Label label = new Label(" Mixin Node Types");
  label.setWidth(100);
  this.addMember(label);
  this.jcrExplorer = jcrExplorer;
}

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

titleLabel.setWidth(logoWidth);
titleLabel.setHeight(24);
titleLabel.setLayoutAlign(Alignment.CENTER);

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

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

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

imprint.setTooltip(i18n.Impressum());
imprint.setStyleName("label");
imprint.setWidth(60);
exportButton = createExportLabelButton();
sesTabButton = createSESTabLabelButton();
space.setWidth("1%");
exportButton.setWidth("20%");
exportLoadingSpinner.setTop(5);
exportLoadingSpinner.setWidth("2%");
menuStack.addMember(space);
if (ClientUtils.isSesEnabled()) {
  addTS.setWidth("38%");
  sesTabButton.setWidth("35%");
  menuStack.addMember(sesTabButton);
  menuStack.addMember(space);
  addTS.setWidth("75%");

代码示例来源:origin: com.github.livesense/org.liveSense.jcr.explorer

navigationLabel.setAlign(Alignment.CENTER);
navigationLabel.setOverflow(Overflow.HIDDEN);
navigationLabel.setWidth("40%");
navigationLabel.setShowResizeBar(true);

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

lbl.setWidth(147);
lbl.setHeight(20);
lbl.setAlign(Alignment.RIGHT);

代码示例来源:origin: org.geomajas.plugin/geomajas-plugin-printing-gwt-example-jar

title.setWidth(400);
topBar.addMember(title);

代码示例来源:origin: org.geomajas.plugin/geomajas-client-gwt-plugin-print-example-jar

title.setWidth(400);
topBar.addMember(title);

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

titleLabel.setWidth(SsecLayout.tokenRequestWindowLogoWidth);
titleLabel.setHeight(SsecLayout.tokenRequestWindowSloganHeight);
titleLabel.setLayoutAlign(Alignment.CENTER);

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

day.setWidth(35);
day.setAlign(Alignment.CENTER);
day.setPosition(Positioning.ABSOLUTE);
week.setWidth(35);
week.setAlign(Alignment.CENTER);
week.setPosition(Positioning.ABSOLUTE);
month.setWidth(35);
month.setAlign(Alignment.CENTER);
month.setPosition(Positioning.ABSOLUTE);
year.setWidth(35);
year.setAlign(Alignment.CENTER);
year.setPosition(Positioning.ABSOLUTE);

代码示例来源:origin: org.geomajas.widget/geomajas-widget-featureinfo-gwt-example-jar

title.setWidth(300);
topBar.addMember(title);
topBar.addFill();

相关文章