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
Modifier and TypeFieldDescriptionThe default widgets map.static final String
The configuration key for enumerated modestatic final String
The configuration key for multiple sub modestatic final String
The configuration key for normal modestatic final String
The configuration key for single sub modeprotected static final String
The output key for enumerated modeprotected static final String
The output key for multiple sub modeprotected static final String
The output key for normal modeprotected static final String
The output key for single sub modestatic final String
Avalon roleFields inherited from class org.ametys.runtime.plugin.component.AbstractThreadSafeComponentExtensionPoint
_cocoonManager, _context, _manager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(Configuration configuration) 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 Details
-
ROLE
Avalon role -
MODE_CONFIG_NORMAL
The configuration key for normal mode- See Also:
-
MODE_CONFIG_ENUMERATED
The configuration key for enumerated mode- See Also:
-
MODE_CONFIG_SINGLE
The configuration key for single sub mode- See Also:
-
MODE_CONFIG_MULTIPLE
The configuration key for multiple sub mode- See Also:
-
OUTPUT_NORMAL
The output key for normal mode- See Also:
-
OUTPUT_ENUMERATED
The output key for enumerated mode- See Also:
-
OUTPUT_SINGLE
The output key for single sub mode- See Also:
-
OUTPUT_MULTIPLE
The output key for multiple sub mode- See Also:
-
_defaultWidgets
The default widgets map. See getDefaultWidgets
-
-
Constructor Details
-
WidgetsManager
public WidgetsManager()
-
-
Method Details
-
configure
- Specified by:
configure
in interfaceConfigurable
- Throws:
ConfigurationException
-
getDefaultWidgets
Get the default widgets normal/enumerated <-> (single/multiple <-> ftype <-> xtype)- Returns:
- The map of default widgets
-