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

x33g5p2x  于2022-02-03 转载在 其他  
字(3.4k)|赞(0)|评价(0)|浏览(118)

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

Window.addComponent介绍

暂无

代码示例

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

if (registry == null) {
  if (getApplication() != null) {
    getApplication().getMainWindow().addComponent(new Label(
        "Aperte Workflow is being installed. Please refresh your page."
    ));

代码示例来源:origin: net.sf.itcb.common/itcb-common-web-vaadin

window.addComponent(uriFragmentUtility);
ItcbComponent component=  mapping.get(defaultPageKey);
if(component == null) {

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

@Override
public void init() {
  final Window mainWindow = new Window();
  setMainWindow(mainWindow);
  ApplicationContext applicationContext = getContext();
  if (applicationContext instanceof PortletApplicationContext2) {
    PortletApplicationContext2 portletCtx = (PortletApplicationContext2) applicationContext;
    portletCtx.addPortletListener(this, this);
  } else {
    mainWindow.addComponent(new Label(getMessage("please.use.from.a.portlet")));
  }
}

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

/**
 * Reinitialize the application from the last received configuration
 */
private void refreshApplication() {
  mainWindow.removeAllComponents();
  processConfig = ProcessConfigJSONHandler.getInstance().toObject(jsonProcessConfig);
  processEditorPanel = new ProcessEditorPanel();
  processEditorPanel.setProcessConfig(processConfig);
  processEditorPanel.loadData();
  mainWindow.addComponent(processEditorPanel);
}

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

public void init() {
  setTheme("ace");
  if (!m_dependenciesResolved.get()) {
    final Window message = new Window("Apache ACE");
    message.getContent().setSizeFull();
    setMainWindow(message);
    Label richText = new Label("<h1>Apache ACE User Interface</h1>"
      + "<p>Due to missing component dependencies on the server, probably due to misconfiguration, "
      + "the user interface cannot be properly started. Please contact your server administrator. "
      + "You can retry accessing the user interface by <a href=\"?restartApplication\">following this link</a>.</p>");
    richText.setContentMode(Label.CONTENT_XHTML);
    // TODO we might want to add some more details here as to what's
    // missing on the other hand, the user probably can't fix that anyway
    message.addComponent(richText);
    return;
  }
  m_mainWindow = new Window("Apache ACE");
  m_mainWindow.getContent().setSizeFull();
  m_mainWindow.setBorder(Window.BORDER_NONE);
  setMainWindow(m_mainWindow);
  // Authenticate the user either by showing a login window; or by another means...
  authenticate();
}

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

if (loginRequired) {
  window.removeAllComponents();
  window.addComponent(new Label(getMessage("please.log.in")));
  return;

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

vl.setComponentAlignment(hl, Alignment.BOTTOM_CENTER);
newConfirmationWindow.addComponent(vl);

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

vl.setComponentAlignment(hl, Alignment.BOTTOM_CENTER);
newConfirmationWindow.addComponent(vl);

代码示例来源:origin: org.apache.ace/org.apache.ace.webui.vaadin

message.addComponent(richText);
  return;
addListener(m_targetsPanel, StatefulGatewayObject.TOPIC_ALL);
main.addComponent(m_grid);

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

addListener(m_targetsPanel, StatefulTargetObject.TOPIC_ALL, TargetObject.TOPIC_ALL, RepositoryAdmin.TOPIC_STATUSCHANGED, RepositoryAdmin.TOPIC_LOGIN, RepositoryAdmin.TOPIC_REFRESH);
m_mainWindow.addComponent(m_grid);

相关文章

微信公众号

最新文章

更多