Class CmsClientVariant

java.lang.Object
org.opencms.loader.CmsClientVariant

public class CmsClientVariant extends Object
Bean that represents a client variant of a template context.

  • 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 variant
      message - the nice name of the variant
      width - the screen width
      height - the screen height
      parameters - parameters for the variant
  • Method Details

    • getName

      public String getName()
      Gets the internal name.

      Returns:
      the name
    • getNiceName

      public String getNiceName(Locale locale)
      Gets the nice name for a locale.

      Parameters:
      locale - the locale
      Returns:
      the nice name
    • 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