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

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

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

Label.setCaptionAsHtml介绍

暂无

代码示例

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

public NlsHelpPanel() {
  text = new Label();
  text.setCaptionAsHtml(true);
  addComponent(text);
  text.setSizeFull();
  setSizeFull();
}

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

private static Label getStatusCountLabel() {
  final Label countLabel = new Label();
  countLabel.setImmediate(true);
  countLabel.addStyleName("bulk-upload-label");
  countLabel.setVisible(false);
  countLabel.setCaptionAsHtml(true);
  countLabel.setId(UIComponentIdProvider.BULK_UPLOAD_COUNT);
  return countLabel;
}

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

private static Label getStatusCountLabel() {
  final Label countLabel = new Label();
  countLabel.setImmediate(true);
  countLabel.addStyleName("bulk-upload-label");
  countLabel.setVisible(false);
  countLabel.setCaptionAsHtml(true);
  countLabel.setId(UIComponentIdProvider.BULK_UPLOAD_COUNT);
  return countLabel;
}

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

@Override
  protected void setValue(Object value) throws MException {
//        DataSource ds = getForm().getDataSource();
//        ((Link)getComponentEditor()).setTargetName("_blank");
//        ((Link)getComponentEditor()).setResource(new ExternalResource( MCast.toString(value) ));
//        ((Link)getComponentEditor()).setCaption( ds.getString(this, "label", getConfig().getString("label", "label=Link") ) );
    
    ((Label)getComponentEditor()).setCaptionAsHtml( getConfig().getBoolean("html", true) );
    if (value == null)
      ((Label)getComponentEditor()).setCaption("");
    else {
      ((Label)getComponentEditor()).setCaption(String.valueOf(value));
    }
    this.value = value;
  }

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

@Override
  protected void setValue(Object value) throws MException {
    DataSource ds = getForm().getDataSource();
//        ((Link)getComponentEditor()).setTargetName("_blank");
//        ((Link)getComponentEditor()).setResource(new ExternalResource( MCast.toString(value) ));
//        ((Link)getComponentEditor()).setCaption( ds.getString(this, "label", getConfig().getString("label", "label=Link") ) );
    
    String label = MXml.encode( ds.getString(this, "label", getConfig().getString("label", "label=Link") ) );
    ((Label)getComponentEditor()).setCaptionAsHtml(true);
    if (value == null)
      ((Label)getComponentEditor()).setCaption(label );
    else {
      String link = MXml.encode( String.valueOf( value )  );
      ((Label)getComponentEditor()).setCaption("<a href=\"" + link + "\" target=_blank>" + label + "</a>" );
    }
    this.value = value;
  }

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

layout.addComponent(serverUrlLabel, 0, 2);
statusLabel.setCaptionAsHtml(true);

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

parapraphOne.setCaptionAsHtml(true);
parapraphOne.setCaption(VaadinIcons.QUESTION_CIRCLE_O.getHtml() + 
    " The table below shows the user directories currently configured for Ikasan.");
parapraphTwo.setCaptionAsHtml(true);
parapraphTwo.setCaption(VaadinIcons.QUESTION_CIRCLE_O.getHtml() + 
    " The order of the directory is the order in which it will be searched for users and groups." +

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

errorCloseHintLabel.setCaptionAsHtml(true);
errorCloseHintLabel.setCaption(VaadinIcons.QUESTION_CIRCLE_O.getHtml() + 
    " Closing errors removes them from the errors view and they will no longer be reported. " +

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

errorCloseHintLabel.setCaptionAsHtml(true);
errorCloseHintLabel.setCaption(VaadinIcons.QUESTION_CIRCLE_O.getHtml() + 
    " Closing errors removes them from the errors view and they will no longer be reported. " +

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

statusIconLabel.setCaptionAsHtml(true);

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

errorCloseHintLabel.setCaptionAsHtml(true);
errorCloseHintLabel.setCaption(VaadinIcons.QUESTION_CIRCLE_O.getHtml() + 
    " Closing errors removes them from the errors view and they will no longer be reported. " +

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

errorCloseHintLabel.setCaptionAsHtml(true);
errorCloseHintLabel.setCaption(VaadinIcons.QUESTION_CIRCLE_O.getHtml() + 
    " Closing errors removes them from the errors view and they will no longer be reported. " +

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

statusIconLabel.setCaptionAsHtml(true);

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

statusIconLabel.setCaptionAsHtml(true);

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

adminPasswordHint.setCaptionAsHtml(true);
adminPasswordHint.setCaption(VaadinIcons.QUESTION_CIRCLE_O.getHtml() + 
    " The initial admin password will be used to log into the application as the 'admin' user.");

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

filterHintLabel.setCaptionAsHtml(true);
filterHintLabel.setCaption(VaadinIcons.QUESTION_CIRCLE_O.getHtml() + 
    " Drag items from the topology tree to the tables below in order to create a filter.");

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

filterHintLabel.setCaptionAsHtml(true);
filterHintLabel.setCaption(VaadinIcons.QUESTION_CIRCLE_O.getHtml() + 
    " Drag items from the topology tree to the tables below in order to narrow your search.");

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

filterHintLabel.setCaptionAsHtml(true);
filterHintLabel.setCaption(VaadinIcons.QUESTION_CIRCLE_O.getHtml() + 
    " Drag items from the topology tree to the tables below in order to narrow your search.");

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

filterHintLabel.setCaptionAsHtml(true);
filterHintLabel.setCaption(VaadinIcons.QUESTION_CIRCLE_O.getHtml() + 
    " Drag items from the topology tree to the tables below in order to narrow your search.");

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

filterHintLabel.setCaptionAsHtml(true);
filterHintLabel.setCaption(VaadinIcons.QUESTION_CIRCLE_O.getHtml() +
    " Drag items from the topology tree to the tables below in order to narrow your search.");

相关文章