Class AbstractCellMargin
java.lang.Object
org.docx4j.model.properties.Property
org.docx4j.model.properties.table.AbstractTableProperty
org.docx4j.model.properties.table.AbstractCellMargin
- Direct Known Subclasses:
CellMarginBottom,CellMarginLeft,CellMarginRight,CellMarginTop
public abstract class AbstractCellMargin extends AbstractTableProperty
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringCSS_NAME_PREFIXprotected java.lang.StringcssAttributeNameprotected static java.lang.StringFO_NAME_PREFIXprotected java.lang.StringfoAttributeName -
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractCellMargin(TblWidth val, java.lang.String suffix)AbstractCellMargin(org.w3c.dom.css.CSSValue value, java.lang.String suffix) -
Method Summary
Modifier and Type Method Description voidensureMargin(TblPr tblPr)protected voidensureMargin(TcPrInner tcPr)protected java.lang.StringformatTwips(int twips)java.lang.StringgetCssName()java.lang.StringgetCssProperty()protected intgetTwips()protected voidinit(java.lang.String suffix)abstract voidset(TcPrInner tcPr)voidsetXslFO(org.w3c.dom.Element foElement)protected inttwipFromPercentage(float fVal)Methods inherited from class org.docx4j.model.properties.Property
composeCss, debug, getObject, setObject
-
Field Details
-
CSS_NAME_PREFIX
protected static final java.lang.String CSS_NAME_PREFIX- See Also:
- Constant Field Values
-
FO_NAME_PREFIX
protected static final java.lang.String FO_NAME_PREFIX- See Also:
- Constant Field Values
-
cssAttributeName
protected java.lang.String cssAttributeName -
foAttributeName
protected java.lang.String foAttributeName
-
-
Constructor Details
-
AbstractCellMargin
-
AbstractCellMargin
public AbstractCellMargin(org.w3c.dom.css.CSSValue value, java.lang.String suffix)
-
-
Method Details
-
twipFromPercentage
protected int twipFromPercentage(float fVal) -
init
protected void init(java.lang.String suffix) -
getCssProperty
public java.lang.String getCssProperty()- Specified by:
getCssPropertyin classProperty
-
getCssName
public java.lang.String getCssName()- Specified by:
getCssNamein classProperty
-
setXslFO
public void setXslFO(org.w3c.dom.Element foElement) -
getTwips
protected int getTwips() -
formatTwips
protected java.lang.String formatTwips(int twips) -
ensureMargin
-
ensureMargin
-
set
-