Example usage for org.apache.poi.xwpf.usermodel UnderlinePatterns valueOf

List of usage examples for org.apache.poi.xwpf.usermodel UnderlinePatterns valueOf

Introduction

In this page you can find the example usage for org.apache.poi.xwpf.usermodel UnderlinePatterns valueOf.

Prototype

public static UnderlinePatterns valueOf(int type) 

Source Link

Usage

From source file:fr.opensagres.poi.xwpf.converter.core.openxmlformats.styles.run.RunUnderlineValueProvider.java

License:Open Source License

@Override
public UnderlinePatterns getValue(CTRPr rPr, XWPFStylesDocument stylesDocument) {
    return (rPr != null && rPr.isSetU()) ? UnderlinePatterns.valueOf(rPr.getU().getVal().intValue()) : null;
}

From source file:fr.opensagres.poi.xwpf.converter.core.openxmlformats.styles.run.RunUnderlineValueProvider.java

License:Open Source License

@Override
public UnderlinePatterns getValue(CTParaRPr rPr, XWPFStylesDocument stylesDocument) {
    return (rPr != null && rPr.isSetU()) ? UnderlinePatterns.valueOf(rPr.getU().getVal().intValue()) : null;
}

From source file:fr.opensagres.poi.xwpf.converter.core.styles.run.RunUnderlineValueProvider.java

License:Open Source License

@Override
public UnderlinePatterns getValue(CTRPr rPr, XWPFStylesDocument stylesDocument) {
    if (rPr != null && rPr.isSetU()) {
        CTUnderline u = rPr.getU();/*from  www . j  a va2  s . c o m*/
        return u.isSetVal() ? UnderlinePatterns.valueOf(u.getVal().intValue()) : null;
    } else {
        return null;
    }
}