Package org.ametys.core.ui.widgets
Class WidgetsManager
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.runtime.plugin.component.AbstractThreadSafeComponentExtensionPoint<ClientSideWidget>
-
- org.ametys.core.ui.widgets.WidgetsManager
-
- All Implemented Interfaces:
LogEnabled
,ExtensionPoint<ClientSideWidget>
,Disposable
,Initializable
,Component
,Configurable
,Contextualizable
,Serviceable
,ThreadSafe
public class WidgetsManager extends AbstractThreadSafeComponentExtensionPoint<ClientSideWidget> implements Configurable
This extension point handle the existing widgets on the client side (widgets are fields for cms forms).
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,Map<String,Map<String,String>>>
_defaultWidgets
The default widgets map.static String
MODE_CONFIG_ENUMERATED
The configuration key for enumerated modestatic String
MODE_CONFIG_NORMAL
The configuration key for normal modestatic String
MODE_SUBCONFIG_MULTIPLE
The configuration key for multiple sub modestatic String
MODE_SUBCONFIG_SINGLE
The configuration key for single sub modestatic String
ROLE
Avalon role-
Fields inherited from class org.ametys.runtime.plugin.component.AbstractThreadSafeComponentExtensionPoint
_cocoonManager, _context, _manager
-
-
Constructor Summary
Constructors Constructor Description WidgetsManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private Map<String,String>
_readMap(Configuration[] children)
void
configure(Configuration configuration)
Map<String,Map<String,Map<String,String>>>
getDefaultWidgets()
Get the default widgets normal/enumerated <-> (single/multiple <-> ftype <-> xtype)-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractThreadSafeComponentExtensionPoint
addComponent, addExtension, contextualize, dispose, getExtension, getExtensionsIds, hasExtension, initialize, initializeExtensions, service
-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
-
-
-
Field Detail
-
MODE_CONFIG_NORMAL
public static final String MODE_CONFIG_NORMAL
The configuration key for normal mode- See Also:
- Constant Field Values
-
MODE_CONFIG_ENUMERATED
public static final String MODE_CONFIG_ENUMERATED
The configuration key for enumerated mode- See Also:
- Constant Field Values
-
MODE_SUBCONFIG_SINGLE
public static final String MODE_SUBCONFIG_SINGLE
The configuration key for single sub mode- See Also:
- Constant Field Values
-
MODE_SUBCONFIG_MULTIPLE
public static final String MODE_SUBCONFIG_MULTIPLE
The configuration key for multiple sub mode- See Also:
- Constant Field Values
-
-
Constructor Detail
-
WidgetsManager
public WidgetsManager()
-
-
Method Detail
-
configure
public void configure(Configuration configuration) throws ConfigurationException
- Specified by:
configure
in interfaceConfigurable
- Throws:
ConfigurationException
-
_readMap
private Map<String,String> _readMap(Configuration[] children)
-
-