Package de.xima.fc.css.builder
Enum ECssOverflow
- java.lang.Object
-
- java.lang.Enum<ECssOverflow>
-
- de.xima.fc.css.builder.ECssOverflow
-
- All Implemented Interfaces:
CssDefaultValue
,Serializable
,Comparable<ECssOverflow>
public enum ECssOverflow extends Enum<ECssOverflow> implements CssDefaultValue
Constants with the pre-defined values for the CSS propertyoverflow
.The overflow CSS property sets the desired behavior for an element's overflow — i.e. when an element's content is too big to fit in its block formatting context — in both directions.
- Author:
- XIMA MEDIA GmbH
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AUTO
Depends on the user agent.CLIP
Similar tohidden
, the content is clipped to the element's padding box.HIDDEN
Content is clipped if necessary to fit the padding box.SCROLL
Content is clipped if necessary to fit the padding box.VISIBLE
Content is not clipped and may be rendered outside the padding box.
-
Field Summary
-
Fields inherited from interface de.xima.fc.css.builder.CssDefaultValue
INHERIT, INITIAL, REVERT, REVERT_LAYER, UNSET
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
toString()
String
value()
static ECssOverflow
valueOf(String name)
Returns the enum constant of this type with the specified name.static ECssOverflow[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AUTO
public static final ECssOverflow AUTO
Depends on the user agent. If content fits inside the padding box, it looks the same asvisible
, but still establishes a new block formatting context. Desktop browsers provide scrollbars if content overflows.
-
CLIP
public static final ECssOverflow CLIP
Similar tohidden
, the content is clipped to the element's padding box. The difference betweenclip
andhidden
is that theclip
keyword also forbids all scrolling, including programmatic scrolling. The box is not a scroll container, and does not start a new formatting context. If you wish to start a new formatting context, you can usedisplay: flow-root
to do so.
-
HIDDEN
public static final ECssOverflow HIDDEN
Content is clipped if necessary to fit the padding box. No scrollbars are provided, and no support for allowing the user to scroll (such as by dragging or using a scroll wheel) is allowed. The content can be scrolled programmatically (for example, by setting the value of a property such as scrollLeft or the scrollTo() method), so the element is still a scroll container.
-
SCROLL
public static final ECssOverflow SCROLL
Content is clipped if necessary to fit the padding box. Browsers always display scrollbars whether or not any content is actually clipped, preventing scrollbars from appearing or disappearing as content changes. Printers may still print overflowing content.
-
VISIBLE
public static final ECssOverflow VISIBLE
Content is not clipped and may be rendered outside the padding box.
-
-
Method Detail
-
values
public static ECssOverflow[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ECssOverflow c : ECssOverflow.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ECssOverflow valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
toString
public String toString()
- Overrides:
toString
in classEnum<ECssOverflow>
-
value
public String value()
- Returns:
- The string value of this property that can be used when creating CSS strings.
-
-