Package org.ametys.core.ui.widgets
Class StaticClientSideWidget
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.core.ui.StaticFileImportsClientSideElement
org.ametys.core.ui.StaticClientSideElement
org.ametys.core.ui.widgets.StaticClientSideWidget
- All Implemented Interfaces:
ClientSideElement
,ClientSideWidget
,LogEnabled
,PluginAware
,Configurable
,Serviceable
- Direct Known Subclasses:
SearchServiceClientSideWidget
,SkinClientSideWidget
This implementation creates a widget from a static configuration.
Classes should have the parameters defined as constants in their class.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ametys.core.ui.ClientSideElement
ClientSideElement.Script, ClientSideElement.ScriptFile
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The parameter in the configuration for ftype.static final String
The parameter in the configuration for supporting enumarated.static final String
The parameter in the configuration for supporting multiple.static final String
The parameter in the configuration for supporting non-enumarated.static final String
The parameter in the configuration for supporting non-multiple.Fields inherited from class org.ametys.core.ui.StaticFileImportsClientSideElement
_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionString[]
getFormTypes
(Map<String, Object> contextParameters) Returns the supported typesboolean
supportsEnumerated
(Map<String, Object> contextParameters) Determine if the widget can handle enumerated valuesboolean
supportsMultiple
(Map<String, Object> contextParameters) Determine if the widget can handle multiple valuesboolean
supportsNonEnumerated
(Map<String, Object> contextParameters) Determine if the widget can handle non-enumerated valuesboolean
supportsNonMultiple
(Map<String, Object> contextParameters) Determine if the widget can handle non-multiple valuesMethods inherited from class org.ametys.core.ui.StaticClientSideElement
_configureClass, _configureParameters, _configureScript, configureInitialParameters
Methods inherited from class org.ametys.core.ui.StaticFileImportsClientSideElement
_configureDependencies, _configureImports, _configureRights, _configureRightsMode, configure, getDependencies, getId, getPluginName, getRights, getScripts, getScripts, hasRight, service, setPluginInfo, toString
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.ametys.core.ui.ClientSideElement
getDependencies, getId, getPluginName, getRights, getScripts, getScripts
-
Field Details
-
PARAMETER_FTYPES
The parameter in the configuration for ftype. Comma-separated list. Defaut value is 'string'.- See Also:
-
PARAMETER_SUPPORTS_ENUMERATED
The parameter in the configuration for supporting enumarated. Default value is false.- See Also:
-
PARAMETER_SUPPORTS_NONENUMERATED
The parameter in the configuration for supporting non-enumarated. Default value is true.- See Also:
-
PARAMETER_SUPPORTS_MULTIPLE
The parameter in the configuration for supporting multiple. Default value is false.- See Also:
-
PARAMETER_SUPPORTS_NONMULTIPLE
The parameter in the configuration for supporting non-multiple. Default value is true.- See Also:
-
-
Constructor Details
-
StaticClientSideWidget
public StaticClientSideWidget()
-
-
Method Details
-
getFormTypes
Description copied from interface:ClientSideWidget
Returns the supported types- Specified by:
getFormTypes
in interfaceClientSideWidget
- Parameters:
contextParameters
- Contextuals parameters transmitted by the environment.- Returns:
- An non null and non empty list of supported types
-
supportsEnumerated
Description copied from interface:ClientSideWidget
Determine if the widget can handle enumerated values- Specified by:
supportsEnumerated
in interfaceClientSideWidget
- Parameters:
contextParameters
- Contextuals parameters transmitted by the environment.- Returns:
- true if it does
-
supportsNonEnumerated
Description copied from interface:ClientSideWidget
Determine if the widget can handle non-enumerated values- Specified by:
supportsNonEnumerated
in interfaceClientSideWidget
- Parameters:
contextParameters
- Contextuals parameters transmitted by the environment.- Returns:
- true if it does
-
supportsMultiple
Description copied from interface:ClientSideWidget
Determine if the widget can handle multiple values- Specified by:
supportsMultiple
in interfaceClientSideWidget
- Parameters:
contextParameters
- Contextuals parameters transmitted by the environment.- Returns:
- true if it does
-
supportsNonMultiple
Description copied from interface:ClientSideWidget
Determine if the widget can handle non-multiple values- Specified by:
supportsNonMultiple
in interfaceClientSideWidget
- Parameters:
contextParameters
- Contextuals parameters transmitted by the environment.- Returns:
- true if it does
-