com.docmosis.template.analysis
Class SimpleTemplateTableCell
java.lang.Object
com.docmosis.template.analysis.SimpleTemplateSection
com.docmosis.template.analysis.SimpleTemplateContainer
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
Fields inherited from class com.docmosis.template.analysis.SimpleTemplateSection |
artificial, conditional, container, depth, endIndex, parentSection, parsedFieldDetails, postAmbleStartIdx, preAmbleEndIdx, repeatable, skipPreAndPostAmble, skipSection, startIndex, subSections |
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 |
SimpleTemplateTableCell
public SimpleTemplateTableCell()
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 compareignorePosition
- 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)
Copyright © 2014–2024 Docmosis Pty Ltd. All rights reserved.