Docmosis API 4.8.0

com.docmosis.template.analysis
Class SimpleTemplateTableCell

java.lang.Object
  extended by com.docmosis.template.analysis.SimpleTemplateSection
      extended by com.docmosis.template.analysis.SimpleTemplateContainer
          extended by com.docmosis.template.analysis.SimpleTemplateTableCell
All Implemented Interfaces:
TemplateSection, Serializable

public class SimpleTemplateTableCell
extends com.docmosis.template.analysis.SimpleTemplateContainer

A section representing a table row

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.docmosis.template.analysis.SimpleTemplateSection
artificial, conditional, container, depth, endIndex, parentSection, parsedFieldDetails, postAmbleStartIdx, preAmbleEndIdx, repeatable, skipPreAndPostAmble, skipSection, startIndex, subSections
 
Constructor Summary
SimpleTemplateTableCell()
           
 
Method Summary
 boolean dynamicStylingApplies()
          Determine if dynamic styling can be applied to this cell.
 boolean equals(Object other)
           
 boolean equals(Object other, boolean ignorePosition)
          Determine if this object is equal to the given object optionally ignoring positional information.
 int getColumnsSpanned()
           
 SimpleTemplateTableRow getParentRow()
          Return the parent row containing this cell.
 int getRowsSpanned()
           
 TableCellStyle getStyle()
           
 long getStyleNameEndIdx()
           
 long getStyleNameStartIdx()
           
 int hashCode()
           
 boolean isAllColumnsLeftConditional()
           
 boolean isAllColumnsRightConditional()
           
static void main(String[] args)
           
 void setAllColumnsLeftConditional(boolean allColumnsLeftConditional)
           
 void setAllColumnsRightConditional(boolean allColumnsRightConditional)
           
 void setColumnsSpanned(int columnsSpanned)
           
 void setRowsSpanned(int rowsSpanned)
           
 void setStyle(TableCellStyle style)
           
 void setStyleNameEndIdx(long styleNameEndIdx)
           
 void setStyleNameStartIdx(long styleNameStartIdx)
           
 boolean spansMultipleRowsAndInNonBreakingRow()
          Determine if this cell spans multiple rows and is within a table row that is set to non-breaking.
 
Methods inherited from class com.docmosis.template.analysis.SimpleTemplateContainer
hasFields, isPopulable, shallowCopyFrom
 
Methods inherited from class com.docmosis.template.analysis.SimpleTemplateSection
addSection, addSection, addSectionPositioned, addSectionPositioned, appendToBuffer, appendToBuffer, encapsulates, getDepth, getEndIndex, getLength, getParentSection, getParsedFieldDetails, getPostAmbleStartIdx, getPreAmbleEndIdx, getStartIndex, getSubSections, isArtificial, isConditional, isContainer, isRepeatable, isSkipSection, removeSection, setArtificial, setConditional, setDepth, setEndIndex, setParentSection, setParsedFieldDetails, setPostAmbleStartIdx, setPreAmbleEndIdx, setRepeatable, setSkipPreAndPostAmble, setSkipSection, setStartIndex, setSubSections, shallowCopyFrom, skipPreAndPostAmble, subSectionsEqual, toDebugString, wrapOverlappedSections
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleTemplateTableCell

public SimpleTemplateTableCell()
Method Detail

equals

public boolean equals(Object other)
Overrides:
equals in class com.docmosis.template.analysis.SimpleTemplateSection

hashCode

public int hashCode()
Overrides:
hashCode in class com.docmosis.template.analysis.SimpleTemplateSection

equals

public boolean equals(Object other,
                      boolean ignorePosition)
Description copied from interface: TemplateSection
Determine if this object is equal to the given object optionally ignoring positional information.

Specified by:
equals in interface TemplateSection
Overrides:
equals in class com.docmosis.template.analysis.SimpleTemplateContainer
Parameters:
other - the other object to compare
ignorePosition - if true, positional information will not be compared
Returns:
true if the objects are equivlent ignoring position.

getStyle

public TableCellStyle getStyle()

setStyle

public void setStyle(TableCellStyle style)

getStyleNameEndIdx

public long getStyleNameEndIdx()

setStyleNameEndIdx

public void setStyleNameEndIdx(long styleNameEndIdx)

getStyleNameStartIdx

public long getStyleNameStartIdx()

setStyleNameStartIdx

public void setStyleNameStartIdx(long styleNameStartIdx)

dynamicStylingApplies

public boolean dynamicStylingApplies()
Determine if dynamic styling can be applied to this cell. It can be if either the background colour changes or the border styles change.

Returns:
true if dynamic styling can be applied.

getColumnsSpanned

public int getColumnsSpanned()

setColumnsSpanned

public void setColumnsSpanned(int columnsSpanned)

isAllColumnsLeftConditional

public boolean isAllColumnsLeftConditional()

setAllColumnsLeftConditional

public void setAllColumnsLeftConditional(boolean allColumnsLeftConditional)

isAllColumnsRightConditional

public boolean isAllColumnsRightConditional()

setAllColumnsRightConditional

public void setAllColumnsRightConditional(boolean allColumnsRightConditional)

getRowsSpanned

public int getRowsSpanned()

setRowsSpanned

public void setRowsSpanned(int rowsSpanned)

getParentRow

public SimpleTemplateTableRow getParentRow()
Return the parent row containing this cell.

Returns:
null if not found

spansMultipleRowsAndInNonBreakingRow

public boolean spansMultipleRowsAndInNonBreakingRow()
Determine if this cell spans multiple rows and is within a table row that is set to non-breaking. This can be significant because it can cause Open Office to lock up when the data in the spanned rows grows taller than a page.

Returns:
true if so

main

public static void main(String[] args)

Docmosis API 4.8.0

Copyright © 2014–2024 Docmosis Pty Ltd. All rights reserved.