Package org.opencms.loader
Class CmsClientVariant
- java.lang.Object
-
- org.opencms.loader.CmsClientVariant
-
public class CmsClientVariant extends java.lang.Object
Bean that represents a client variant of a template context.
-
-
Constructor Summary
Constructors Constructor Description CmsClientVariant(java.lang.String name, I_CmsMessageContainer message, int width, int height, java.util.Map<java.lang.String,java.lang.String> parameters)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
Gets the internal name.java.lang.String
getNiceName(java.util.Locale locale)
Gets the nice name for a locale.java.util.Map<java.lang.String,java.lang.String>
getParameters()
Gets the parameters.int
getScreenHeight()
Gets the screen height.int
getScreenWidth()
Gets the screen width.
-
-
-
Constructor Detail
-
CmsClientVariant
public CmsClientVariant(java.lang.String name, I_CmsMessageContainer message, int width, int height, java.util.Map<java.lang.String,java.lang.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 Detail
-
getName
public java.lang.String getName()
Gets the internal name.- Returns:
- the name
-
getNiceName
public java.lang.String getNiceName(java.util.Locale locale)
Gets the nice name for a locale.- Parameters:
locale
- the locale- Returns:
- the nice name
-
getParameters
public java.util.Map<java.lang.String,java.lang.String> getParameters()
Gets the parameters.- Returns:
- the parameters
-
getScreenHeight
public int getScreenHeight()
Gets the screen height.- Returns:
- the screen height
-
getScreenWidth
public int getScreenWidth()
Gets the screen width.- Returns:
- the screen width
-
-