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>>>_defaultWidgetsThe default widgets map.static StringMODE_CONFIG_ENUMERATEDThe configuration key for enumerated modestatic StringMODE_CONFIG_MULTIPLEThe configuration key for multiple sub modestatic StringMODE_CONFIG_NORMALThe configuration key for normal modestatic StringMODE_CONFIG_SINGLEThe configuration key for single sub modeprotected static StringOUTPUT_ENUMERATEDThe output key for enumerated modeprotected static StringOUTPUT_MULTIPLEThe output key for multiple sub modeprotected static StringOUTPUT_NORMALThe output key for normal modeprotected static StringOUTPUT_SINGLEThe output key for single sub modestatic StringROLEAvalon 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)voidconfigure(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:
configurein interfaceConfigurable- Throws:
ConfigurationException
-
_readMap
private Map<String,String> _readMap(Configuration[] children)
-
-