本文整理了Java中de.iwes.widgets.api.widgets.WidgetPage.getFullUrl()
方法的一些代码示例,展示了WidgetPage.getFullUrl()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WidgetPage.getFullUrl()
方法的具体详情如下:
包路径:de.iwes.widgets.api.widgets.WidgetPage
类名称:WidgetPage
方法名:getFullUrl
暂无
代码示例来源:origin: org.ogema.widgets/ogema-gui-api
public void addEntry(String text,WidgetPage<?> page) {
addEntry(text, page.getFullUrl());
}
代码示例来源:origin: org.ogema.widgets/ogema-js-bundle
private void printPageWidgets(WidgetPage<?> page) {
System.out.println("Widgets for page " + page.getFullUrl());
List<OgemaWidget> widgets = widgetAdminService.getPageWidgets(page);
for (OgemaWidget w: widgets ) {
// TODO print widget type
System.out.printf(" Id: %-20s type: %-30s\n", w.getId() + ",", w.getClass() );
}
System.out.println();
}
代码示例来源:origin: org.ogema.widgets/ogema-js-bundle
@Descriptor("list registered widget pages")
public void listpages(
@Descriptor("Widget app url (empty for all apps)") @Parameter(names = {
"-a", "--app" }, absentValue = "")String appUrl) {
Map<String,WidgetApp> apps = widgetAdminService.getRegisteredApps();
for (Map.Entry<String, WidgetApp> entry: apps.entrySet()) {
WidgetAppImpl app = (WidgetAppImpl) entry.getValue();
if (appUrl != null && !appUrl.trim().isEmpty() && !entry.getKey().equals(appUrl))
continue;
System.out.printf("App: %s%n", entry.getKey());
for (WidgetPage<?> p: app.getPages().values()) {
System.out.printf(" Page: %s%n",p.getFullUrl());
}
}
}
代码示例来源:origin: org.ogema.widgets/ogema-js-bundle
@Descriptor("Get the access count for all pages, sorted by the number of page visits")
public void accessCountSorted() {
final NavigableMap<Integer, List<String>> pages = new TreeMap<>(new Comparator<Integer>() {
@Override
public int compare(Integer o1, Integer o2) {
return -o1.compareTo(o2);
}
});
for (WidgetApp wapp : widgetAdminService.getRegisteredApps().values()) {
for (WidgetPage<?> page : wapp.getPages().values()) {
final int cnt = widgetAdminService.getAccessCount(page);
List<String> list = pages.get(cnt);
if (list == null) {
list = new ArrayList<>();
pages.put(cnt,list);
}
list.add(page.getFullUrl());
}
}
int cnt = 1;
for (Map.Entry<Integer, List<String>> entry : pages.entrySet()) {
System.out.println("Access count position " + cnt++ + ": count: " + entry.getKey());
for (String s : entry.getValue()) {
System.out.println(" Page " + s);
}
}
}
代码示例来源:origin: org.ogema.widgets/ogema-js-bundle
OgemaWidget w = entry.getWidget();
LoggerFactory.getLogger(w.getPage().getClass())
.warn("Inconsistent widget dependency chain detected. This may lead to malfunctioning of the page. Widget: " + w + " on page " + w.getPage().getFullUrl());
list.add(high,entry);
内容来源于网络,如有侵权,请联系作者删除!