| Constructor and Description |
|---|
AdminPageImpl() |
AdminPageImpl(PlaceManager placeManager,
javax.enterprise.event.Event<PreferencesCentralInitializationEvent> preferencesCentralInitializationEvent,
PreferenceScopeResolutionStrategy resolutionStrategy) |
| 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,
PreferenceScope preferenceScope)
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,
Supplier<PreferenceScopeResolutionStrategyInfo> customScopeResolutionStrategySupplier)
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,
Supplier<PreferenceScopeResolutionStrategyInfo> customScopeResolutionStrategySupplier,
PreferenceScope preferenceScope)
Adds a new admin tool that links to a preference to the admin page.
|
void |
addScreen(String identifier,
String title)
Adds a new admin screen context to be configured and opened.
|
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 |
getDefaultScreen()
Returns the default screen to be opened when navigating to the Admin Page perspective.
|
String |
getScreenTitle(String screen)
Returns the screen title to be exhibit in the admin page.
|
Map<String,List<AdminTool>> |
getToolsByCategory(String screen)
Returns all added admin tools, grouped by their category.
|
void |
setDefaultScreen(String defaultScreen)
Defines the default screen to be opened when navigating to the Admin Page perspective.
|
public AdminPageImpl()
@Inject public AdminPageImpl(PlaceManager placeManager, javax.enterprise.event.Event<PreferencesCentralInitializationEvent> preferencesCentralInitializationEvent, PreferenceScopeResolutionStrategy resolutionStrategy)
public void addScreen(String identifier, String title)
AdminPagepublic void addTool(String screen, String title, String iconCss, String category, Command command, ParameterizedCommand<ParameterizedCommand<Integer>> counterCommand)
AdminPageaddTool in interface AdminPagescreen - Identifier for the admin screen where the tool will be inserted.title - 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)
AdminPageaddTool in interface AdminPagescreen - Identifier for the admin screen where the tool will be inserted.title - 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.public void addPreference(String screen, String identifier, String title, String iconCss, String category)
AdminPageaddPreference in interface AdminPagescreen - Identifier for the admin screen where the preference will be inserted.identifier - Preference identifier.title - 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, Supplier<PreferenceScopeResolutionStrategyInfo> customScopeResolutionStrategySupplier)
AdminPageaddPreference in interface AdminPagescreen - Identifier for the admin screen where the preference will be inserted.identifier - Preference identifier.title - 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.customScopeResolutionStrategySupplier - Supplier for a custom preference scope resolution strategy.
It will be used when the tool is selected.public void addPreference(String screen, String identifier, String title, String iconCss, String category, PreferenceScope preferenceScope)
AdminPageaddPreference in interface AdminPagescreen - Identifier for the admin screen where the preference will be inserted.identifier - Preference identifier.title - 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.preferenceScope - Scope where the preferences will be saved when edited.
It will be used when the tool is selected.public void addPreference(String screen, String identifier, String title, String iconCss, String category, Supplier<PreferenceScopeResolutionStrategyInfo> customScopeResolutionStrategySupplier, PreferenceScope preferenceScope)
AdminPageaddPreference in interface AdminPagescreen - Identifier for the admin screen where the preference will be inserted.identifier - Preference identifier.title - 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.customScopeResolutionStrategySupplier - Supplier for a custom preference scope resolution strategy.preferenceScope - Scope where the preferences will be saved when edited.
It will be used when the tool is selected.public Map<String,List<AdminTool>> getToolsByCategory(String screen)
AdminPagegetToolsByCategory in interface AdminPagescreen - Identifier for the admin screen from where the tools will be returned.public String getScreenTitle(String screen)
AdminPagegetScreenTitle in interface AdminPagescreen - Screen identifier.public String getDefaultScreen()
AdminPagegetDefaultScreen in interface AdminPagepublic void setDefaultScreen(String defaultScreen)
AdminPagesetDefaultScreen in interface AdminPagedefaultScreen - Default screen identifier. Must not be null or empty.Copyright © 2012–2017 JBoss by Red Hat. All rights reserved.