Package org.opencms.loader
Class CmsClientVariant
java.lang.Object
org.opencms.loader.CmsClientVariant
Bean that represents a client variant of a template context.
-
Constructor Summary
ConstructorDescriptionCmsClientVariant
(String name, I_CmsMessageContainer message, int width, int height, Map<String, String> parameters) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptiongetName()
Gets the internal name.getNiceName
(Locale locale) Gets the nice name for a locale.Gets the parameters.int
Gets the screen height.int
Gets the screen width.
-
Constructor Details
-
CmsClientVariant
public CmsClientVariant(String name, I_CmsMessageContainer message, int width, int height, Map<String, String> parameters) Creates a new instance.- Parameters:
name
- the internal name of the client variantmessage
- the nice name of the variantwidth
- the screen widthheight
- the screen heightparameters
- parameters for the variant
-
-
Method Details
-
getName
Gets the internal name.- Returns:
- the name
-
getNiceName
Gets the nice name for a locale.- Parameters:
locale
- the locale- Returns:
- the nice name
-
getParameters
Gets the parameters.- Returns:
- the parameters
-
getScreenHeight
Gets the screen height.- Returns:
- the screen height
-
getScreenWidth
Gets the screen width.- Returns:
- the screen width
-