| Constructor and Description |
|---|
AdminPageImpl() |
AdminPageImpl(PlaceManager placeManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPreference(String screen,
String identifier,
String title,
String iconCss,
String category)
Adds a new admin tool that links to a preference to the admin page.
|
void |
addPreference(String screen,
String identifier,
String title,
String iconCss,
String category,
Map<String,String> customScopeResolutionStrategyParams) |
void |
addScreen(String identifier,
String title) |
void |
addTool(String screen,
String title,
String iconCss,
String category,
Command command)
Adds a new admin tool to the admin page.
|
void |
addTool(String screen,
String title,
String iconCss,
String category,
Command command,
ParameterizedCommand<ParameterizedCommand<Integer>> counterCommand)
Adds a new admin tool to the admin page (with a counter).
|
String |
getScreenTitle(String screen) |
Map<String,List<AdminTool>> |
getToolsByCategory(String screen)
Returns all added admin tools, grouped by their category.
|
public AdminPageImpl()
@Inject public AdminPageImpl(PlaceManager placeManager)
public void addTool(String screen, String title, String iconCss, String category, Command command, ParameterizedCommand<ParameterizedCommand<Integer>> counterCommand)
AdminPageaddTool in interface AdminPagetitle - Title that will be displayed on the tool accessor.iconCss - CSS class(es) responsible to stylize the icon.category - Defines the group inside which the shortcut will be.command - Command to be executed when the shortcut is accessed.counterCommand - ParameterizedCommand that calls its ParameterizedCommand parameter
passing the counter.public void addTool(String screen, String title, String iconCss, String category, Command command)
AdminPagepublic void addPreference(String screen, String identifier, String title, String iconCss, String category)
AdminPageaddPreference in interface AdminPagetitle - Preference title that will be displayed on the tool accessor.iconCss - CSS class related to the shortcut icon.category - Defines the group inside which the shortcut will be.public void addPreference(String screen, String identifier, String title, String iconCss, String category, Map<String,String> customScopeResolutionStrategyParams)
addPreference in interface AdminPagepublic Map<String,List<AdminTool>> getToolsByCategory(String screen)
AdminPagegetToolsByCategory in interface AdminPagepublic String getScreenTitle(String screen)
getScreenTitle in interface AdminPageCopyright © 2012–2016 JBoss by Red Hat. All rights reserved.