List of usage examples for org.apache.poi.xwpf.usermodel UnderlinePatterns valueOf
public static UnderlinePatterns valueOf(int type)
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; } }