Package de.xima.fc.css.builder
Enum ECssOverflow
- All Implemented Interfaces:
CssDefaultValue
,Serializable
,Comparable<ECssOverflow>
Constants with the pre-defined values for the CSS property
overflow
.
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 ConstantsEnum ConstantDescriptionDepends on the user agent.Similar tohidden
, the content is clipped to the element's padding box.Content is clipped if necessary to fit the padding box.Content is clipped if necessary to fit the padding box.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
Modifier and TypeMethodDescriptiontoString()
value()
static ECssOverflow
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 Details
-
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
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
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
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
Content is not clipped and may be rendered outside the padding box.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
- Overrides:
toString
in classEnum<ECssOverflow>
-
value
- Returns:
- The string value of this property that can be used when creating CSS strings.
-