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

net.sf.jett.model.FontUnderline Maven / Gradle / Ivy

Go to download

JETT is a Java API that reads an Excel spreadsheet as a template, takes your data, and creates a new Excel spreadsheet that contains your data, formatted as in the template. It works with .xls and .xlsx template spreadsheets.

The newest version!
package net.sf.jett.model;

/**
 * 

FontUnderlines represent the built-in underline names that * correspond with Excel's underlining scheme. These are used in conjunction * with the underline property in the style tag. Legal values are the names of * the enumeration objects, without underscores, case insensitive, e.g. * "single" == "Single" == "SINGLE".

* * @author Randy Gettman * @since 0.4.0 * @see net.sf.jett.tag.StyleTag * @see net.sf.jett.parser.StyleParser#PROPERTY_FONT_UNDERLINE */ public enum FontUnderline { SINGLE (org.apache.poi.ss.usermodel.FontUnderline.SINGLE.getByteValue()), DOUBLE (org.apache.poi.ss.usermodel.FontUnderline.DOUBLE.getByteValue()), SINGLEACCOUNTING(org.apache.poi.ss.usermodel.FontUnderline.SINGLE_ACCOUNTING.getByteValue()), DOUBLEACCOUNTING(org.apache.poi.ss.usermodel.FontUnderline.DOUBLE_ACCOUNTING.getByteValue()), NONE (org.apache.poi.ss.usermodel.FontUnderline.NONE.getByteValue()); private byte myIndex; /** * Constructs an FontUnderline. * @param index The index. */ FontUnderline(byte index) { myIndex = index; } /** * Returns the index. * @return The index. */ public byte getIndex() { return myIndex; } /** * Returns the name, in all lowercase, no underscores or spaces. * @return The name, in all lowercase, no underscores or spaces. */ public String toString() { return name().trim().toLowerCase().replace("_", ""); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy