com.vaadin.ui.Label.setHeight()方法的使用及代码示例

x33g5p2x  于2022-01-23 转载在 其他  
字(3.5k)|赞(0)|评价(0)|浏览(145)

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

Label.setHeight介绍

暂无

代码示例

代码示例来源:origin: de.mhus.lib/mhu-lib-vaadin6

protected Component label() {
  Label out = new Label(" > ");
  out.setHeight("30px");
  return out;
}

代码示例来源:origin: com.haulmont.cuba/cuba-web

protected void adjustHeight() {
  if (getHeight() < 0) {
    if (userNameLabel != null) {
      userNameLabel.setHeight(-1, Unit.PIXELS);
    } else if (userComboBox != null) {
      userComboBox.setHeight(-1, Unit.PIXELS);
    }
  } else {
    if (userNameLabel != null) {
      userNameLabel.setHeight(100, Unit.PERCENTAGE);
    } else if (userComboBox != null) {
      userComboBox.setHeight(100, Unit.PERCENTAGE);
    }
  }
}

代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui

/**
 * Build label.
 * 
 * @return Label
 */
public Label buildLabel() {
  final Label label = createLabel();
  label.setImmediate(false);
  label.setWidth("-1px");
  label.setHeight("-1px");
  if (StringUtils.hasText(caption)) {
    label.setCaption(caption);
  }
  return label;
}

代码示例来源:origin: eclipse/hawkbit

/**
 * Build label.
 * 
 * @return Label
 */
public Label buildLabel() {
  final Label label = createLabel();
  label.setImmediate(false);
  label.setWidth("-1px");
  label.setHeight("-1px");
  if (StringUtils.hasText(caption)) {
    label.setCaption(caption);
  }
  return label;
}

代码示例来源:origin: org.activiti/activiti-explorer

protected void addHtmlContent(String html) {
 Panel panel = new Panel();
 panel.setWidth(800, UNITS_PIXELS);
 panel.setHeight(300, UNITS_PIXELS);
 
 content = new Label(html, Label.CONTENT_XHTML);
 content.setHeight(100, UNITS_PERCENTAGE);
 
 panel.addComponent(content);
 addComponent(panel);
}

代码示例来源:origin: KrailOrg/krail

@Override
public void doBuild() {
  label = new Label("This is the " + this.getClass()
                      .getSimpleName());
  label.setHeight("100px");
  grid = new GridLayout(3, 3);
  grid.addComponent(label, 1, 1);
  grid.setSizeFull();
  grid.setColumnExpandRatio(0, 0.33f);
  grid.setColumnExpandRatio(1, 0.33f);
  grid.setColumnExpandRatio(2, 0.33f);
  grid.setRowExpandRatio(0, 0.4f);
  grid.setRowExpandRatio(1, 0.2f);
  grid.setRowExpandRatio(2, 0.4f);
  label.setSizeFull();
  setRootComponent(grid);
}

代码示例来源:origin: uk.q3c.krail/krail

@Override
public void doBuild(ViewChangeBusMessage busMessage) {
  label = new Label("This is the " + this.getClass()
                      .getSimpleName());
  label.setHeight("100px");
  grid = new GridLayout(3, 3);
  grid.addComponent(label, 1, 1);
  grid.setSizeFull();
  grid.setColumnExpandRatio(0, 0.33f);
  grid.setColumnExpandRatio(1, 0.33f);
  grid.setColumnExpandRatio(2, 0.33f);
  grid.setRowExpandRatio(0, 0.4f);
  grid.setRowExpandRatio(1, 0.2f);
  grid.setRowExpandRatio(2, 0.4f);
  label.setSizeFull();
  setRootComponent(grid);
}

代码示例来源:origin: vaadin/material-theme-fw8

this.stepLabel.addStyleName(Styles.Misc.BORDER_RADIUS_FULL);
this.stepLabel.setContentMode(ContentMode.HTML);
this.stepLabel.setHeight(CIRCLE_SIZE, Unit.PIXELS);
this.stepLabel.setWidth(CIRCLE_SIZE, Unit.PIXELS);

代码示例来源:origin: org.ikasan/ikasan-dashboard-jar

this.bannerLabel.setHeight("100%");
this.imagePanelLayout.addComponent(this.bannerLabel);
this.imagePanelLayout.setExpandRatio(this.bannerLabel, 0.5f);

代码示例来源:origin: org.opennms.features.bsm/vaadin-adminpage

sz.setHeight(5, Unit.PIXELS);
addComponent(sz);

代码示例来源:origin: apache/ace

m_additionalInfo.setImmediate(true);
m_additionalInfo.setStyleName("alert");
m_additionalInfo.setHeight("1.2em");

代码示例来源:origin: org.ikasan/ikasan-dashboard-jar

ikasanWelcomeLabel2.setHeight("50px");

代码示例来源:origin: org.ikasan/ikasan-dashboard-jar

bannerLabel.setHeight("100%");

相关文章