Interface CountersIntf<T extends CountersIntf<T>>

All Known Implementing Classes:
ClassRule, CssRule, CssStyle, ElementRule, IdRule, KeyFrameRule, TagRule

public interface CountersIntf<T extends CountersIntf<T>>
CSS property setters for CSS counter properties.

This interface provides methods for setting properties related to CSS counters, which are used to automatically number elements. Counters can be incremented, reset, and displayed using generated content.

Usage:


 element.setCounterReset("section");
 element.setCounterIncrement("section");
 
Since:
2016
Version:
1.0
Author:
Marvin P. Warble Jr.
See Also:
  • CssIntf
  • Method Summary

    Modifier and Type
    Method
    Description
    Sets the counter-increment property to increment CSS counters.
    setCounterReset(String keyFrameName)
    Sets the counter-reset property to reset CSS counters to a value.
  • Method Details

    • setCounterIncrement

      T setCounterIncrement(String attrValue)
      Sets the counter-increment property to increment CSS counters.
      Parameters:
      attrValue - the counter name and optional increment value (e.g., "section", "section 2")
      Returns:
      this for method chaining
    • setCounterReset

      T setCounterReset(String keyFrameName)
      Sets the counter-reset property to reset CSS counters to a value.
      Parameters:
      keyFrameName - the counter name and optional reset value (e.g., "section", "section 0")
      Returns:
      this for method chaining