本文整理了Java中de.iwes.widgets.api.widgets.WidgetPage.append()
方法的一些代码示例,展示了WidgetPage.append()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WidgetPage.append()
方法的具体详情如下:
包路径:de.iwes.widgets.api.widgets.WidgetPage
类名称:WidgetPage
方法名:append
[英]Append a widget to the page. Must be called explicitly for all widgets to be shown on the page.
[中]将小部件附加到页面。必须显式调用才能在页面上显示所有小部件。
代码示例来源:origin: org.ogema.tools/app-collections-api
private final void buildPage() {
page.append(header).linebreak().append(apps);
}
代码示例来源:origin: org.smartrplace.apps/smartrplace-util-proposed
public void triggerPageBuild() {
page.append(popMore1);
mainTableRowTemplate = new ResourceGUITableTemplate<T>(
new ResourceGUITableTemplate.TableProvider<T>() {
page.append(alert);
page.append(mainTable);
代码示例来源:origin: org.smartrplace.apps/smartrplace-util-proposed
public void triggerPageBuild() {
page.append(popMore1);
page.append(alert);
page.append(mainTable);
addWidgetsBelowTable();
代码示例来源: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.smartrplace.apps/smartrplace-util-proposed
protected void finalize(StaticTable table) {
if(table != null) registerDependentWidgets(drop, table);
String mainUrl = getOverviewPageUrl();
if(mainUrl != null) {
RedirectButton mainPageBut = new RedirectButton(page, "mainPageBut", "Main page",
mainUrl);
page.append(mainPageBut);
}
}
public static void registerDependentWidgets(OgemaWidget governor, StaticTable table) {
代码示例来源:origin: org.smartrplace.apps/smartrplace-util-proposed
protected void finalize(StaticTable table) {
if(table != null) registerDependentWidgets(drop, table);
String mainUrl = getOverviewPageUrl();
if(mainUrl != null) {
RedirectButton mainPageBut = new RedirectButton(page, "mainPageBut", "Main page",
mainUrl);
page.append(mainPageBut);
}
}
public static void registerDependentWidgets(OgemaWidget governor, StaticTable table) {
代码示例来源: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.apps/smartrplace-util-proposed
page.append(drop);
代码示例来源:origin: org.smartrplace.apps/smartrplace-util-proposed
page.append(drop);
代码示例来源:origin: org.smartrplace.apps/smartrplace-util-proposed
public ResourceGUITablePage(final WidgetPage<?> page, final ApplicationManager appMan,
final ApplicationManagerMinimal appManMin, Class<T> resourceType,
boolean autoBuildPage, final boolean registerDependentWidgets) {
this.page = page;
this.appMan = appMan;
this.appManMin = appManMin;
this.resourceType = resourceType;
this.registerDependentWidgets = registerDependentWidgets;
//init all widgets
knownWidgets = new KnownWidgetHolder<T>(page, "knownWidgets");
page.append(knownWidgets);
alert = new Alert(page, "alert", "");
popMore1 = new ClosingPopup<T>(page, "popMore1",
"More Information", true, ClosingMode.CLOSE) {
private static final long serialVersionUID = 1L;
@Override
public void onGET(OgemaHttpRequest req) {
T item = getItem(req);
if(item == null) return;
}
};
if(autoBuildPage) triggerPageBuild();
}
代码示例来源:origin: org.smartrplace.sim/resource-simulation
private final void buildPage() {
page.append(header).linebreak().append(alert)
.append(simulationsHeader).append(table).linebreak().append(newConfigPopupTrigger).linebreak();
page.append(templatesHeader)
.append(new StaticTable(3, 3, new int[] {3,3,6})
.setContent(row, 0, "Select primary type").setContent(row++, 1, templatePrimarySelector)
.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.smartrplace.apps/smartrplace-util-proposed
public ObjectGUITablePage(final WidgetPage<?> page,
final ApplicationManager appMan, final ApplicationManagerMinimal appManMin,
T initSampleObject, boolean autoBuildPage, boolean registerDependentWidgets) {
this.page = page;
this.appMan = appMan;
this.appManMin = appManMin;
this.initSampleObject = initSampleObject;
this.registerDependentWidgets = registerDependentWidgets;
headerObject = getHeaderObject();
//init all widgets
alert = new Alert(page, "alert"+pid(), "");
knownWidgets = new KnownWidgetHolder<T>(page, "knownWidgets"+pid());
page.append(knownWidgets);
popMore1 = new ClosingPopup<T>(page, "popMore1"+pid(),
"More Information", true, ClosingMode.CLOSE) {
private static final long serialVersionUID = 1L;
@Override
public void onGET(OgemaHttpRequest req) {
T item = getItem(req);
if(item == null) return;
}
};
if(autoBuildPage) triggerPageBuild();
}
代码示例来源: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();
receiverSnippet.append(createNewReceiverButton, null);
page.append(receiverSnippet);
page.append(newReceiverPopup);
代码示例来源:origin: org.ogema.messaging/message-settings
page.append(header).linebreak();
page.append(info);
info.addDefaultStyle(AlertData.BOOTSTRAP_INFO);
info.setDefaultVisibility(true);
page.append(alert).linebreak();
accordion.addItem("Xmpp", xmppSnippet, null);
page.append(accordion);
page.append(newEmailUserPopup);
page.append(newSmsUserPopup);
page.append(newXmppUserPopup);
内容来源于网络,如有侵权,请联系作者删除!