de.iwes.widgets.api.widgets.WidgetPage.linebreak()方法的使用及代码示例

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

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

WidgetPage.linebreak介绍

[英]Append a line break to the page.
[中]在页面上添加换行符。

代码示例

代码示例来源:origin: org.ogema.tools/app-collections-api

private final void buildPage() {
  page.append(header).linebreak().append(apps);
  
}

代码示例来源:origin: org.ogema.widgets/widget-extended

@SuppressWarnings("unchecked")
  @Override
  public <P extends ResourcePattern<R>, R extends Resource, D extends LocaleDictionary> PatternEditor<P,D> newPatternDisplayPage(
      final Class<P> pattern, String url,boolean setAsStartPage, Class<D> dictionary) {
    if (dictionary == null)
      dictionary = (Class<D>) LocaleDictionary.class;
    WidgetPage<D> page = app.createWidgetPage(url,setAsStartPage);
//        page.setTitle("View pattern: "+ pattern.getSimpleName());
    Header header = new Header(page, "header","View patterns: "+ pattern.getSimpleName());
    header.addDefaultStyle(HeaderData.CENTERED);
    page.append(header).linebreak();
    PatternEditor<P,D> patternSelector = addPatternEditor(pattern, page, pattern.getSimpleName() + "_displayWidget", dictionary, true);
    page.append(patternSelector).linebreak();
    return patternSelector;
  }

代码示例来源:origin: org.ogema.widgets/widget-extended

@SuppressWarnings("unchecked")
  @Override
  public <P extends ResourcePattern<R>, R extends Resource, D extends LocaleDictionary> PatternEditor<P,D> newPatternEditorPage(
      final Class<P> pattern, String url,	boolean setAsStartPage, Class<D> dictionary) {
    if (dictionary == null)
      dictionary = (Class<D>) LocaleDictionary.class;
    WidgetPage<D> page = app.createWidgetPage(url, setAsStartPage);
//        page.setTitle("Edit pattern: "+ pattern.getSimpleName());
    Header header = new PageHeader<D>(page, "header", dictionary);	
    header.setDefaultText("Edit patterns: "+ pattern.getSimpleName());
    page.append(header).linebreak();
    PatternEditor<P,D> patternSelector = addPatternEditor(pattern, page, pattern.getSimpleName() + "_patternEditor", dictionary, false);
    page.append(patternSelector).linebreak();
    return patternSelector;
  }

代码示例来源:origin: org.ogema.widgets/widget-extended

@Override
  public <P extends ResourcePattern<R>, R extends Resource, D extends LocaleDictionary> PatternCreator<P, R, D> newPatternCreatorPage(Class<P> pattern, 
      String url, boolean setAsStartPage, PatternCreatorConfiguration<P, R> config, Class<D> dictionary) {
    if (config == null)
      config = new PatternCreatorConfiguration<>();
    WidgetPage<D> page = app.createWidgetPage(url, setAsStartPage);
//        page.setTitle("Create new pattern: "+ pattern.getSimpleName());
    Header header = new PageHeader<D>(page, "header",dictionary);
    header.setDefaultText("Create new pattern: "+ pattern.getSimpleName());
    PatternCreator<P, R, D> pc = addPatternCreator(pattern, page, dictionary, config);
    page.append(header).linebreak().append(pc).linebreak();
    return pc;
  }

代码示例来源:origin: org.ogema.widgets/widget-extended

@Override
  public <P extends ContextSensitivePattern<R, C>, R extends Resource, C, D extends LocaleDictionary> PatternCreator<P, R, D> newContextPatternCreatorPage(
      Class<P> pattern, String url, boolean setAsStartPage, PatternCreatorConfiguration<P, R> config, Class<D> dictionary, Class<C> contextType) {
    if (config == null)
      config = new PatternCreatorConfiguration<>();
    WidgetPage<D> page = app.createWidgetPage(url, setAsStartPage);
//        page.setTitle("Create new pattern: "+ pattern.getSimpleName());
    Header header = new PageHeader<D>(page, "header",dictionary);
    header.setDefaultText("Create new pattern: "+ pattern.getSimpleName());
    PatternCreator<P, R, D> pc = addPatternCreator(pattern, page, dictionary, config, contextType);
    page.append(header).linebreak().append(pc).linebreak();
    return pc;
  }

代码示例来源:origin: org.smartrplace.sim/resource-simulation

private final void buildPage() {
  page.append(header).linebreak().append(alert)
    .append(simulationsHeader).append(table).linebreak().append(newConfigPopupTrigger).linebreak();
         .setContent(row, 0, "Select secondary type").setContent(row++, 1, templateSecondarySelector)
                           .setContent(row++, 1, templatePlotSubmit)
   ).linebreak().append(templatePlot);
  newConfigPopup.setTitle("Create new simulation", null);
  page.linebreak().append(newConfigPopup).linebreak().append(plotPopup);

代码示例来源:origin: org.ogema.messaging/message-settings

page.append(header).linebreak();
page.append(info).linebreak();
info.addDefaultStyle(AlertData.BOOTSTRAP_INFO);
info.setDefaultVisibility(true);
page.append(alert).linebreak();

代码示例来源:origin: org.ogema.messaging/message-settings

page.append(header).linebreak();
page.append(alert).linebreak();

相关文章