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_MULTIPLE
The configuration key for multiple sub modestatic String
MODE_CONFIG_NORMAL
The configuration key for normal modestatic String
MODE_CONFIG_SINGLE
The configuration key for single sub modeprotected static String
OUTPUT_ENUMERATED
The output key for enumerated modeprotected static String
OUTPUT_MULTIPLE
The output key for multiple sub modeprotected static String
OUTPUT_NORMAL
The output key for normal modeprotected static String
OUTPUT_SINGLE
The output 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 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_CONFIG_SINGLE
public static final String MODE_CONFIG_SINGLE
The configuration key for single sub mode- See Also:
- Constant Field Values
-
MODE_CONFIG_MULTIPLE
public static final String MODE_CONFIG_MULTIPLE
The configuration key for multiple sub mode- See Also:
- Constant Field Values
-
OUTPUT_NORMAL
protected static final String OUTPUT_NORMAL
The output key for normal mode- See Also:
- Constant Field Values
-
OUTPUT_ENUMERATED
protected static final String OUTPUT_ENUMERATED
The output key for enumerated mode- See Also:
- Constant Field Values
-
OUTPUT_SINGLE
protected static final String OUTPUT_SINGLE
The output key for single sub mode- See Also:
- Constant Field Values
-
OUTPUT_MULTIPLE
protected static final String OUTPUT_MULTIPLE
The output 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
-
-