All Downloads are FREE. Search and download functionalities are using the official Maven repository.

js.template.xhtml.ArabicNumeralNumbering Maven / Gradle / Ivy

Go to download

Reference implementation for j(s)-lib template API, declarative, natural and based on X(HT)ML language.

The newest version!
package js.template.xhtml;

/**
 * Arabic numeral numbering format. It is the most simple numbering formatter and maybe the most common; it just displays index
 * value. Its format code is n.
 * 
 * 
 *  <ul data-olist=".">
 *      <li data-numbering="%n)"></li>
 *  </ul>
 * 
* * As with any numbering formatter this also allows for additional text; above example will render 1), 2) ... . See * {@link NumberingOperator} for details about numbering format syntax. * * @author Iulian Rotaru */ final class ArabicNumeralNumbering extends NumberingFormat { /** * Format index as arabic numeral. * * @param index index value. * @return formatted index. */ @Override public String format(int index) { return Integer.toString(index); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy