Copyright© 2008-2022 Sitevision AB, all rights reserved.
public enum DimensionMode extends Enum<DimensionMode>
width/max-width
and height/max-height
css properties.
The max-width
and max-height
css properties are used when rendering a responsive site.
The width
and height
css properties are used when rendering a non-responsive site.
Enum Constant and Description |
---|
AUTO
Will render
width/max-width and height/max-height css properties for
dynamically scalable images (i.e. |
OFF
Will not render
width/max-width and height/max-height css properties. |
ON
Will render
width/max-width and height/max-height css properties. |
Modifier and Type | Method and Description |
---|---|
static DimensionMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DimensionMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Requireable(value="DimensionMode.AUTO") public static final DimensionMode AUTO
width/max-width
and height/max-height
css properties for
dynamically scalable images (i.e. svg images).@Requireable(value="DimensionMode.ON") public static final DimensionMode ON
width/max-width
and height/max-height
css properties.@Requireable(value="DimensionMode.OFF") public static final DimensionMode OFF
width/max-width
and height/max-height
css properties.public static DimensionMode[] values()
for (DimensionMode c : DimensionMode.values()) System.out.println(c);
public static DimensionMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullSitevision - Portal and Content Management Made Easy
Sitevision is an advanced Java enterprise portal product and a portlet container (JSR 286) that implements Java Content Repository (JSR 283).
Copyright© 2008-2022 Sitevision AB, all rights reserved.