|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfor.jfor.rtflib.rtfdoc.RtfElement
org.jfor.jfor.rtflib.rtfdoc.RtfContainer
org.jfor.jfor.rtflib.rtfdoc.RtfTableCell
A cell in an RTF table, container for paragraphs, lists, etc.
Field Summary | |
static int |
DEFAULT_CELL_WIDTH
|
static int |
MERGE_START
cell merging: this cell is the start of a range of merged cells |
static int |
MERGE_WITH_PREVIOUS
cell merging: this cell is part of (but not the start of) a range of merged cells |
static int |
NO_MERGE
cell merging: this cell is not merged |
Fields inherited from class org.jfor.jfor.rtflib.rtfdoc.RtfElement |
m_attrib, m_parent, m_writer |
Constructor Summary | |
(package private) |
RtfTableCell(RtfTableRow parent,
java.io.Writer w,
int cellWidth,
int idNum)
Create an RTF element as a child of given container |
(package private) |
RtfTableCell(RtfTableRow parent,
java.io.Writer w,
int cellWidth,
RtfAttributes attrs,
int idNum)
Create an RTF element as a child of given container |
Method Summary | |
(package private) int |
getCellWidth()
get cell width |
int |
getHMerge()
get horizontal cell merging status |
int |
getVMerge()
get vertical cell merging status |
boolean |
isEmpty()
A table cell always contains "useful" content, as it is here to take some space in a row. |
RtfExternalGraphic |
newImage()
start a new external graphic after closing current paragraph, list and table |
RtfList |
newList(RtfAttributes attrib)
start a new list after closing current paragraph, list and table |
RtfParagraph |
newParagraph()
start a new paragraph with default attributes after closing current paragraph, list and table |
RtfParagraph |
newParagraph(RtfAttributes attrs)
start a new paragraph after closing current current paragraph, list and table |
RtfTable |
newTable(ITableColumnsInfo tc)
start a new nested table after closing current paragraph, list and table |
RtfTable |
newTable(RtfAttributes attrs,
ITableColumnsInfo tc)
start a new nested table after closing current paragraph, list and table |
(package private) boolean |
paragraphNeedsPar(RtfParagraph p)
true if the "par" control word must be written for given RtfParagraph (which is not the case for the last non-empty paragraph of the cell) |
void |
setHMerge(int mergeStatus)
set horizontal cell merging status |
void |
setVMerge(int mergeStatus)
set vertical cell merging status |
(package private) int |
writeCellDef(int widthOffset)
used by RtfTableRow to write the |
protected void |
writeRtfContent()
overridden so that nested tables cause extra rows to be added after the row that contains this cell disabled for V0.3 - nested table support is not done yet |
protected void |
writeRtfSuffix()
the "cell" control word marks the end of a cell |
Methods inherited from class org.jfor.jfor.rtflib.rtfdoc.RtfContainer |
addChild, containsText, dump, getChildCount, getChildren, getOptions, okToWriteRtf, setChildren, setOptions, toString |
Methods inherited from class org.jfor.jfor.rtflib.rtfdoc.RtfElement |
close, getParentOfClass, getRtfAttributes, getRtfFile, isClosed, writeAttributes, writeControlWord, writeControlWordNS, writeExceptionInRtf, writeGroupMark, writeOneAttribute, writeOneAttributeNS, writeRtf, writeRtfPrefix, writeStarControlWord, writeStarControlWordNS |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int DEFAULT_CELL_WIDTH
public static final int NO_MERGE
public static final int MERGE_START
public static final int MERGE_WITH_PREVIOUS
Constructor Detail |
RtfTableCell(RtfTableRow parent, java.io.Writer w, int cellWidth, int idNum) throws java.io.IOException
RtfTableCell(RtfTableRow parent, java.io.Writer w, int cellWidth, RtfAttributes attrs, int idNum) throws java.io.IOException
Method Detail |
public RtfParagraph newParagraph(RtfAttributes attrs) throws java.io.IOException
newParagraph
in interface IRtfParagraphContainer
java.io.IOException
public RtfExternalGraphic newImage() throws java.io.IOException
newImage
in interface IRtfExternalGraphicContainer
java.io.IOException
- On errorpublic RtfParagraph newParagraph() throws java.io.IOException
newParagraph
in interface IRtfParagraphContainer
java.io.IOException
public RtfList newList(RtfAttributes attrib) throws java.io.IOException
newList
in interface IRtfListContainer
java.io.IOException
public RtfTable newTable(ITableColumnsInfo tc) throws java.io.IOException
newTable
in interface IRtfTableContainer
java.io.IOException
public RtfTable newTable(RtfAttributes attrs, ITableColumnsInfo tc) throws java.io.IOException
newTable
in interface IRtfTableContainer
tc
- added by Boris Poud?rous on july 2002 in order to process number-columns-spanned attribute
java.io.IOException
int writeCellDef(int widthOffset) throws java.io.IOException
widthOffset
- sum of the widths of preceeding cells in same row
java.io.IOException
protected void writeRtfSuffix() throws java.io.IOException
writeRtfSuffix
in class RtfElement
java.io.IOException
public void setVMerge(int mergeStatus)
public int getVMerge()
public void setHMerge(int mergeStatus)
public int getHMerge()
int getCellWidth()
protected void writeRtfContent() throws java.io.IOException
writeRtfContent
in class RtfContainer
java.io.IOException
public boolean isEmpty()
isEmpty
in class RtfContainer
boolean paragraphNeedsPar(RtfParagraph p)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |