public interface AdminTool
| Modifier and Type | Field and Description |
|---|---|
static String |
GENERIC_ERROR_TPL_PATH
path to default error template: admintool/content/error
|
static String |
ROOTCONTEXT
root context path with a leading slash
|
static String |
ROOTCONTEXT_NAME
name of admintool.
|
static String |
SLASH
just a slash
|
| Modifier and Type | Method and Description |
|---|---|
void |
addComponent(AdminComponent components) |
void |
addComponents(Set<AdminComponent> components) |
void |
addGlobalJavaScript(String globalJavaScript,
boolean relative)
Example:
addGlobalJavaScript("/static/myComponent/js/myScript.js", true); |
void |
addGlobalStyleSheet(String globalStyleSheet,
boolean relative)
Example:
addGlobalStyleSheet("/static/myComponent/css/myStyles.css", true); |
Set<AdminComponent> |
getComponents() |
Map<String,Boolean> |
getGlobalJavaScripts()
A map with script url as key and a boolean if it's a relative url
Example:
getGlobalJavaScripts().put("/static/myComponent/js/myScript.js", true); |
Map<String,Boolean> |
getGlobalStyleSheets()
A map with css url as key and a boolean if it's a relative url
Example:
getGlobalStyleSheets().put("/static/myComponent/css/myStyles.css", true); |
MenuEntrySearchResult |
searchComponent(String menuName)
searches for a menuEntry with specified name
|
void |
setComponentComparator(Comparator<AdminComponent> comparator)
to set a custom comparator for ordering components.
|
static final String SLASH
static final String ROOTCONTEXT_NAME
static final String ROOTCONTEXT
static final String GENERIC_ERROR_TPL_PATH
void setComponentComparator(Comparator<AdminComponent> comparator)
comparator - own comparator or null. if null the default compare implementation of AdminComponent will be usedSet<AdminComponent> getComponents()
void addComponent(AdminComponent components)
components - void addComponents(Set<AdminComponent> components)
components - Map<String,Boolean> getGlobalJavaScripts()
getGlobalJavaScripts().put("/static/myComponent/js/myScript.js", true);
getGlobalJavaScripts().put("http://example.com/script.js", false);
void addGlobalJavaScript(String globalJavaScript, boolean relative)
addGlobalJavaScript("/static/myComponent/js/myScript.js", true);
addGlobalJavaScript("http://example.com/script.js", false);
globalJavaScript - relative - if url is relative (not absolute) and pointing to the serverMap<String,Boolean> getGlobalStyleSheets()
getGlobalStyleSheets().put("/static/myComponent/css/myStyles.css", true);
getGlobalStyleSheets().put("http://example.com/styles.css", false);
void addGlobalStyleSheet(String globalStyleSheet, boolean relative)
addGlobalStyleSheet("/static/myComponent/css/myStyles.css", true);
addGlobalStyleSheet("http://example.com/styles.css", false);
globalStyleSheet - relative - if url is relative (not absolute) and pointing to the serverMenuEntrySearchResult searchComponent(String menuName)
menuName - Copyright © 2016–2017. All rights reserved.