Class RibbonConfiguration
- java.lang.Object
 - 
- org.ametys.core.ui.ribbonconfiguration.RibbonConfiguration
 
 
- 
public class RibbonConfiguration extends Object
A ribbon configuration, with tab, user and app menus 
- 
- 
Field Summary
Fields Modifier and Type Field Description protected RibbonMenu_appMenuThe App menu of the ribbonprotected Map<String,List<String>>_dependenciesThe dependencies of the ribbonprotected LinkedList<Tab>_tabsThe tabs of the ribbonprotected RibbonMenu_userMenuThe user menu elements of the ribbon 
- 
Constructor Summary
Constructors Constructor Description RibbonConfiguration() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDependency(String extensionPoint, String extensionId)Add a new ribbon dependencyRibbonMenugetAppMenu()Get the app menu for this configurationMap<String,List<String>>getDependencies()Get the list of dependenciesLinkedList<Tab>getTabs()Get the tabs for this configurationRibbonMenugetUserMenu()Get the user menu for this configurationvoidsetTabs(LinkedList<Tab> tabs)Set the tabs for this configuration 
 - 
 
- 
- 
Field Detail
- 
_tabs
protected LinkedList<Tab> _tabs
The tabs of the ribbon 
- 
_appMenu
protected RibbonMenu _appMenu
The App menu of the ribbon 
- 
_userMenu
protected RibbonMenu _userMenu
The user menu elements of the ribbon 
- 
_dependencies
protected Map<String,List<String>> _dependencies
The dependencies of the ribbon 
 - 
 
- 
Constructor Detail
- 
RibbonConfiguration
public RibbonConfiguration()
 
 - 
 
- 
Method Detail
- 
getTabs
public LinkedList<Tab> getTabs()
Get the tabs for this configuration- Returns:
 - the tabs
 
 
- 
setTabs
public void setTabs(LinkedList<Tab> tabs)
Set the tabs for this configuration- Parameters:
 tabs- The tabs
 
- 
getAppMenu
public RibbonMenu getAppMenu()
Get the app menu for this configuration- Returns:
 - the appMenu
 
 
- 
getUserMenu
public RibbonMenu getUserMenu()
Get the user menu for this configuration- Returns:
 - the userMenu
 
 
- 
addDependency
public void addDependency(String extensionPoint, String extensionId)
Add a new ribbon dependency- Parameters:
 extensionPoint- The dependency extension pointextensionId- The dependency extension id
 
- 
getDependencies
public Map<String,List<String>> getDependencies()
Get the list of dependencies- Returns:
 - The list of extensions id, mapped by extension point
 
 
 - 
 
 -