Codota Logo
CTTblCellMar
Code IndexAdd Codota to your IDE (free)

How to use
CTTblCellMar
in
org.docx4j.wml

Best Java code snippets using org.docx4j.wml.CTTblCellMar (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
BufferedReader b =
  • Codota IconInputStream in;new BufferedReader(new InputStreamReader(in))
  • Codota IconReader in;new BufferedReader(in)
  • Codota IconFile file;new BufferedReader(new FileReader(file))
  • Smart code suggestions by Codota
}
origin: plutext/docx4j

public static CTTblCellMar apply(CTTblCellMar source, CTTblCellMar destination) {
  if (!isEmpty(source)) {
    if (destination == null)
      destination = Context.getWmlObjectFactory().createCTTblCellMar();
    
    destination.setBottom(apply(source.getBottom(), destination.getBottom()));
    destination.setLeft(apply(source.getLeft(), destination.getLeft()));
    destination.setRight(apply(source.getRight(), destination.getRight()));
    destination.setTop(apply(source.getTop(), destination.getTop()));
  }
  return destination;
}
origin: plutext/docx4j

/**
 * Create an instance of {@link CTTblCellMar }
 * 
 */
public CTTblCellMar createCTTblCellMar() {
  return new CTTblCellMar();
}
origin: plutext/docx4j

/**
 * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
 * 
 * @param parent
 *     The parent object in the object tree.
 * @param unmarshaller
 *     The unmarshaller that generated the instance.
 */
public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
  setParent(parent);
}
origin: plutext/docx4j

public static boolean areEqual(CTTblCellMar margin1, CTTblCellMar margin2) {
  return (margin1 == margin2) ||
    ((margin1 != null) && (margin2 != null) &&
    areEqual(margin1.getBottom(), margin2.getBottom()) &&
    areEqual(margin1.getLeft(), margin2.getLeft()) &&
    areEqual(margin1.getRight(), margin2.getRight()) &&
    areEqual(margin1.getTop(), margin2.getTop())
    );
}
origin: vsch/flexmark-java

tblcellmar.setLeft(tblwidth3);
tblwidth3.setType("dxa");
tblwidth3.setW(BigInteger.valueOf(cellMargin));
tblcellmar.setRight(tblwidth4);
tblwidth4.setType("dxa");
tblwidth4.setW(BigInteger.valueOf(cellMargin));
tblcellmar.setTop(tblwidth5);
tblwidth5.setType("dxa");
tblwidth5.setW(BigInteger.valueOf(cellMargin));
tblcellmar.setBottom(tblwidth6);
tblwidth6.setType("dxa");
tblwidth6.setW(BigInteger.valueOf(cellMargin));
origin: plutext/docx4j-ImportXHTML

private long getLeftPlusRightMarginsValue(CTTblCellMar cellMar) {
  return cellMar.getLeft().getW().longValue() + cellMar.getRight().getW().longValue();
}

origin: plutext/docx4j

@Override
public void set(TblPr tblPr) {
  ensureMargin(tblPr);
  tblPr.getTblCellMar().setRight((TblWidth)getObject());
}
origin: plutext/docx4j

@Override
public void set(TblPr tblPr) {
  ensureMargin(tblPr);
  tblPr.getTblCellMar().setBottom((TblWidth)getObject());
}
origin: plutext/docx4j

@Override
public void set(TblPr tblPr) {
  ensureMargin(tblPr);
  tblPr.getTblCellMar().setTop((TblWidth)getObject());
}
origin: plutext/docx4j

@Override
public void set(TblPr tblPr) {
  ensureMargin(tblPr);
  tblPr.getTblCellMar().setLeft((TblWidth)getObject());
}
origin: plutext/docx4j

public static boolean isEmpty(CTTblCellMar margin) {
  return (margin == null) ||
    (isEmpty(margin.getBottom()) &&
    isEmpty(margin.getLeft()) &&
    isEmpty(margin.getRight()) &&
    isEmpty(margin.getTop())
    );
}
origin: org.docx4j/docx4j

@Override
public void set(TblPr tblPr) {
  ensureMargin(tblPr);
  tblPr.getTblCellMar().setRight((TblWidth)getObject());
}
origin: org.docx4j/docx4j

@Override
public void set(TblPr tblPr) {
  ensureMargin(tblPr);
  tblPr.getTblCellMar().setBottom((TblWidth)getObject());
}
origin: org.docx4j/docx4j

@Override
public void set(TblPr tblPr) {
  ensureMargin(tblPr);
  tblPr.getTblCellMar().setTop((TblWidth)getObject());
}
origin: org.docx4j/docx4j

@Override
public void set(TblPr tblPr) {
  ensureMargin(tblPr);
  tblPr.getTblCellMar().setLeft((TblWidth)getObject());
}
origin: org.docx4j/docx4j

public static CTTblCellMar apply(CTTblCellMar source, CTTblCellMar destination) {
  if (!isEmpty(source)) {
    if (destination == null)
      destination = Context.getWmlObjectFactory().createCTTblCellMar();
    
    destination.setBottom(apply(source.getBottom(), destination.getBottom()));
    destination.setLeft(apply(source.getLeft(), destination.getLeft()));
    destination.setRight(apply(source.getRight(), destination.getRight()));
    destination.setTop(apply(source.getTop(), destination.getTop()));
  }
  return destination;
}
origin: plutext/docx4j

if (tblCellMargin.getTop() != null)
  properties.add(new CellMarginTop(tblCellMargin.getTop()));
if (tblCellMargin.getBottom() != null)
  properties.add(new CellMarginBottom(tblCellMargin.getBottom()));
if (tblCellMargin.getLeft() != null)
  properties.add(new CellMarginLeft(tblCellMargin.getLeft()));
if (tblCellMargin.getRight() != null)
  properties.add(new CellMarginRight(tblCellMargin.getRight()));
origin: org.docx4j/docx4j

/**
 * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
 * 
 * @param parent
 *     The parent object in the object tree.
 * @param unmarshaller
 *     The unmarshaller that generated the instance.
 */
public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
  setParent(parent);
}
origin: org.docx4j/docx4j

/**
 * Create an instance of {@link CTTblCellMar }
 * 
 */
public CTTblCellMar createCTTblCellMar() {
  return new CTTblCellMar();
}
origin: org.docx4j/docx4j

public static boolean areEqual(CTTblCellMar margin1, CTTblCellMar margin2) {
  return (margin1 == margin2) ||
    ((margin1 != null) && (margin2 != null) &&
    areEqual(margin1.getBottom(), margin2.getBottom()) &&
    areEqual(margin1.getLeft(), margin2.getLeft()) &&
    areEqual(margin1.getRight(), margin2.getRight()) &&
    areEqual(margin1.getTop(), margin2.getTop())
    );
}
org.docx4j.wmlCTTblCellMar

Javadoc

Java class for CT_TblCellMar complex type.

The following schema fragment specifies the expected content contained within this class.

 
<complexType name="CT_TblCellMar"> 
<complexContent> 
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 
<sequence> 
<element name="top" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_TblWidth" minOccurs="0"/> 
<element name="left" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_TblWidth" minOccurs="0"/> 
<element name="bottom" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_TblWidth" minOccurs="0"/> 
<element name="right" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_TblWidth" minOccurs="0"/> 
</sequence> 
</restriction> 
</complexContent> 
</complexType> 

Most used methods

  • getLeft
    Gets the value of the left property.
  • getRight
    Gets the value of the right property.
  • setBottom
    Sets the value of the bottom property.
  • setLeft
    Sets the value of the left property.
  • setRight
    Sets the value of the right property.
  • setTop
    Sets the value of the top property.
  • <init>
  • getBottom
    Gets the value of the bottom property.
  • getTop
    Gets the value of the top property.
  • setParent

Popular in Java

  • Making http post requests using okhttp
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getSharedPreferences (Context)
  • addToBackStack (FragmentTransaction)
  • BufferedReader (java.io)
    Reads text from a character-input stream, buffering characters so as to provide for the efficient re
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now