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

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

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

Label.<init>介绍

[英]Creates an empty Label.
[中]创建一个空标签。

代码示例

代码示例来源:origin: com.vaadin/vaadin-server

/**
 * This is an internal constructor. Use
 * {@link PopupView#PopupView(String, Component)} instead.
 *
 * @since 7.5.0
 */
@Deprecated
public PopupView() {
  registerRpc(rpc);
  setHideOnMouseOut(true);
  setContent(createContent("", new Label("")));
}

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

@Override
  public Component createEditor() {
    return new Label();
//        return new Link();
  }

代码示例来源:origin: com.vaadin/vaadin-server

final Component dummyComponent = new Label("");

代码示例来源:origin: org.opencms/opencms-core

/**
 * Displays an error message in a centered box.<p>
 *
 * @param error the error message to display
 */
public void setError(String error) {
  setContentToDialog("Error", new Label(error));
}

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

protected void addEmptySpace(ComponentContainer container) {
 Label emptySpace = new Label("&nbsp;", Label.CONTENT_XHTML);
 emptySpace.setSizeUndefined();
 container.addComponent(emptySpace);
}

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

protected void addConvertWarning() {
 Label convertLabel = new Label(i18nManager.getMessage(Messages.PROCESS_CONVERT_POPUP_MESSAGE));
 convertLabel.addStyleName(Reindeer.LABEL_SMALL);
 addComponent(convertLabel);
 
 // Some empty space
 Label emptySpace = new Label("&nbsp;", Label.CONTENT_XHTML);
 addComponent(emptySpace);
}

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

@Override
protected void initContent(VerticalLayout layout) throws Exception {
  label = new Label(message);
  label.setContentMode(ContentMode.HTML);
  layout.addComponent(label);
}

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

@Override
protected void initContent(VerticalLayout layout) throws Exception {
  label = new Label(message);
  label.setContentMode(ContentMode.HTML);
  layout.addComponent(label);
}

代码示例来源:origin: org.aperteworkflow/gui-commons

public Component getHelpIcon(String key) {
  if (cannotEdit()) return new Label("");
  initHelpProvider();
  return helpProvider.getHelpIcon(key);
}

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

protected void initEventTitle(HorizontalLayout eventsHeader) {
 Label usersHeader = new Label(i18nManager.getMessage(Messages.ADMIN_DEFINITIONS));
 usersHeader.addStyleName(ExplorerLayout.STYLE_H3);
 eventsHeader.addComponent(usersHeader);
}

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

public void clear() {
  grid.removeAllComponents();
  grid.setRows(1);
  grid.addComponent(new Label("<strong>" + MNls.find(this,"attribute=Attribute") +"</strong>",ContentMode.HTML));
  grid.addComponent(new Label("<strong>" + MNls.find(this,"value=Value") + "</strong>",ContentMode.HTML));
}

代码示例来源:origin: org.opencms/opencms-core

/** Creates a new instance. */
public CmsSitemapTreeNode() {
  CmsVaadinUtils.readAndLocalizeDesign(this, CmsVaadinUtils.getWpMessagesForCurrentLocale(), null);
  setOpen(false);
  setContent(new Label("[content not set]"));
}

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

protected void initTitle(HorizontalLayout headerLayout) {
 title = new Label(i18nManager.getMessage(Messages.TASK_PEOPLE));
 title.addStyleName(ExplorerLayout.STYLE_H3);
 title.setWidth(100, UNITS_PERCENTAGE);
 headerLayout.addComponent(title);
 headerLayout.setExpandRatio(title, 1.0f);
}

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

protected void addSimpleRow(String labelMessageKey, String content) {
 addLabel(labelMessageKey);
 
 Label subjectLabel = new Label(content);
 subjectLabel.setSizeUndefined();
 subjectLabel.addStyleName(ExplorerLayout.STYLE_LABEL_BOLD);
 
 gridLayout.addComponent(subjectLabel);
 gridLayout.setComponentAlignment(subjectLabel, Alignment.MIDDLE_LEFT);
}

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

protected void initTitle() {
 Label title = new Label();
 title.addStyleName(Reindeer.LABEL_H1);
 
 if (ExplorerApp.get().getEnvironment().equals(Environments.ALFRESCO)) {
  title.addStyleName(ExplorerLayout.STYLE_WORKFLOW_CONSOLE_LOGO);
 } else {
  title.addStyleName(ExplorerLayout.STYLE_APPLICATION_LOGO);
 }
 
 addComponent(title);
 
 setExpandRatio(title, 1.0f);
}

代码示例来源:origin: org.aperteworkflow/editor

private void initComponent() {
  confirmButton = new Button("confirm.window.confirm");
  confirmButton.addListener(this);
  
  cancelButton = new Button("confirm.window.cancel");
  cancelButton.addListener(this);
  
  messageLabel = new Label("confirm.window.message.default");
  messageLabel.setContentMode(Label.CONTENT_XHTML);
}

代码示例来源:origin: org.aperteworkflow/editor

private void  initComponents(){
  I18NSource messages = I18NSource.ThreadUtil.getThreadI18nSource();
  taskItemClassLabel = styled(new Label(messages.getMessage("process.definition.taskItemClass")), "h2");
  taskItemClassField = new Select();
  taskItemClassField.setNewItemsAllowed(true);
  taskItemClassField.setWidth("100%");
}

代码示例来源:origin: org.opencms/opencms-core

/**
 * @see org.opencms.ui.apps.I_CmsWorkplaceApp#initUI(org.opencms.ui.apps.I_CmsAppUIContext)
 */
public void initUI(I_CmsAppUIContext context) {
  Label label = new Label(CmsVaadinUtils.getMessageText(Messages.GUI_APP_NOT_AVAILABLE_0));
  label.addStyleName(ValoTheme.LABEL_H2);
  label.addStyleName(OpenCmsTheme.LABEL_ERROR);
  VerticalLayout content = new VerticalLayout();
  content.setMargin(true);
  content.addComponent(label);
  context.setAppContent(content);
}

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

protected void addProfileInputField(GridLayout layout, String name, AbstractField inputField, String inputFieldValue) {
 Label label = new Label(name + ": ");
 label.addStyleName(ExplorerLayout.STYLE_PROFILE_FIELD);
 label.setSizeUndefined();
 layout.addComponent(label);
 layout.setComponentAlignment(label, Alignment.MIDDLE_LEFT);
 
 if (inputFieldValue != null) {
  inputField.setValue(inputFieldValue);
 }
 layout.addComponent(inputField);
 layout.setComponentAlignment(inputField, Alignment.MIDDLE_LEFT);
}

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

protected void initNameField(GridLayout layout) {
  nameField = new TextField();
  nameField.setWriteThrough(true);
  nameField.setImmediate(true);
  layout.addComponent(new Label(ExplorerApp.get().getI18nManager().getMessage(Messages.PROCESS_EDITOR_NAME)));
  layout.addComponent(nameField);
  if (workflowName != null) {
   nameField.setValue(workflowName);
   workflowName = null;
  }
}

相关文章