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

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

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

Button.getDescription介绍

暂无

代码示例

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

public String getClearButtonDescription() {
  return clearButton.getDescription();
}

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

@Test
public void interpret_de() {
  String confirmValueOk = "Bestätigen Sie, dass dieser Wert in Ordnung ist";
  // given
  currentLocale.setLocale(Locale.GERMANY);
  // when
  processor.translate(testObject);
  // then
  assertThat(testObject.getButtonWithAnnotation()
      .getCaption()).isEqualTo("OK");
  assertThat(testObject.getButtonWithAnnotation()
      .getDescription()).isEqualTo(confirmValueOk);
  assertThat(testObject.getButtonWithAnnotation()
      .getLocale()).isEqualTo(Locale.GERMANY);
  assertThat(testObject.getLabel()
      .getCaption()).isEqualTo("OK");
  assertThat(testObject.getLabel()
      .getDescription()).isEqualTo(confirmValueOk);
  // assertThat(testObject.getLabel().getValue()).isEqualTo("Ok");
  assertThat(testObject.getButtonWithAnnotation()
      .getLocale()).isEqualTo(Locale.GERMANY);
}

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

.getDescription()).isIn("Confirm this Value is Ok");
assertThat(testObject.getNewButton()
    .getLocale()).isEqualTo(Locale.UK);
    .getCaption()).isEqualTo("Ok");
assertThat(testObject.getButtonWithAnnotation()
    .getDescription()).isEqualTo("Confirm this Value is Ok");
assertThat(testObject.getButtonWithAnnotation()
    .getLocale()).isEqualTo(Locale.UK);

相关文章