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
FieldsModifier and TypeFieldDescriptionstatic final StringThe parameter in the configuration for ftype.static final StringThe parameter in the configuration for supporting enumarated.static final StringThe parameter in the configuration for supporting multiple.static final StringThe parameter in the configuration for supporting non-enumarated.static final StringThe 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]getFormTypes(Map<String, Object> contextParameters) Returns the supported typesbooleansupportsEnumerated(Map<String, Object> contextParameters) Determine if the widget can handle enumerated valuesbooleansupportsMultiple(Map<String, Object> contextParameters) Determine if the widget can handle multiple valuesbooleansupportsNonEnumerated(Map<String, Object> contextParameters) Determine if the widget can handle non-enumerated valuesbooleansupportsNonMultiple(Map<String, Object> contextParameters) Determine if the widget can handle non-multiple valuesMethods inherited from class org.ametys.core.ui.StaticClientSideElement
_configureClass, _configureParameters, _configureScript, configureInitialParametersMethods inherited from class org.ametys.core.ui.StaticFileImportsClientSideElement
_configureDependencies, _configureImports, _configureRights, _configureRightsMode, configure, getDependencies, getId, getPluginName, getRights, getScripts, getScripts, hasRight, service, setPluginInfo, toStringMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLoggerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:ClientSideWidgetReturns the supported types- Specified by:
getFormTypesin 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:ClientSideWidgetDetermine if the widget can handle enumerated values- Specified by:
supportsEnumeratedin interfaceClientSideWidget- Parameters:
contextParameters- Contextuals parameters transmitted by the environment.- Returns:
- true if it does
-
supportsNonEnumerated
Description copied from interface:ClientSideWidgetDetermine if the widget can handle non-enumerated values- Specified by:
supportsNonEnumeratedin interfaceClientSideWidget- Parameters:
contextParameters- Contextuals parameters transmitted by the environment.- Returns:
- true if it does
-
supportsMultiple
Description copied from interface:ClientSideWidgetDetermine if the widget can handle multiple values- Specified by:
supportsMultiplein interfaceClientSideWidget- Parameters:
contextParameters- Contextuals parameters transmitted by the environment.- Returns:
- true if it does
-
supportsNonMultiple
Description copied from interface:ClientSideWidgetDetermine if the widget can handle non-multiple values- Specified by:
supportsNonMultiplein interfaceClientSideWidget- Parameters:
contextParameters- Contextuals parameters transmitted by the environment.- Returns:
- true if it does
-