|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--ru.novosoft.dc.rtf.dom.ShadingContext
|
+--ru.novosoft.dc.rtf.dom.RowContext
Row formatting context (draft version). It contains row formatting properties and a vector of cell contexts.
| Constructor Summary | |
RowContext()
Construct a row formatting context. |
|
| Method Summary | |
void |
addCell(CellContext cell)
Add a new cell context to the internal vector of cells. |
BorderSet |
borders()
Return the set of borders or null if borders are not specified. |
CellContext |
cell(int index)
Return a context of cell of the specified zero-based index. |
int |
cellCount()
Return a number of cell contexts in this row context. |
java.lang.Object |
clone()
Create a deep copy of this context. |
Border |
defineBorder(int index)
Define a new border of the specified index and return it. |
void |
defineInvisibleCellType(int index,
int value)
Define a type of the invisible cell of the specified index. |
void |
defineInvisibleCellWidth(int index,
int value)
Define a width of the invisible cell of the specified index. |
void |
definePadding(int index,
int value)
Define a padding value of the specified index. |
void |
definePagination(int index,
boolean value)
Define a row pagination flag value of the specified index. |
Position |
definePosition()
Define an absolute position if it is not defined yet and return it. |
void |
defineSpacing(int index,
int value)
Define a cell spacing value of the specified index. |
boolean |
equals(java.lang.Object obj)
Compare this context with another context and return true if contexts coinside. |
void |
exportTo(org.w3c.dom.Element elem)
Export the contents of this object to the specified DOM element. |
int |
getAlignment()
Return the current horizontal alignment of the table row. |
int |
getHalfGap()
Return the half the space between the cells of a table row in twips. |
int |
getLeftEdge()
Return the position of the leftmost edge of the table. |
int |
getRowHeight()
Return the required height of the table row. |
InvisibleCells |
invisibleCells()
Return the invisible cells or null if they are not specified. |
Padding |
padding()
Return the default cell padding or null if it is not specified. |
RowPagination |
pagination()
Return the row pagination or null if it is not specified. |
Position |
position()
Return the absolute position or null if it is not specified. |
void |
reset()
Restore the row formatting properties to defaults. |
void |
setAlignment(int value)
Set a horizontal alignment, namely LEFT, RIGHT, or CENTER, for the table row (see HorizontalAlignment). |
void |
setHalfGap(int value)
Set the half the space between the cells of a table row in twips. |
void |
setLeftEdge(int value)
Set a position in twips of the leftmost edge of the table with respect to the left edge of its column. |
void |
setRowHeight(int value)
Set a height of the table row in twips. |
CellSpacing |
spacing()
Return the cell spacing or null if it is not specified. |
| Methods inherited from class ru.novosoft.dc.rtf.dom.ShadingContext |
defineShadingBackground,
defineShadingFill,
defineShadingStyle,
exportTo,
shading |
| Methods inherited from class java.lang.Object |
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public RowContext()
| Method Detail |
public final int cellCount()
public final void addCell(CellContext cell)
public final CellContext cell(int index)
public final void setAlignment(int value)
HorizontalAlignment).public final int getAlignment()
public final Position definePosition()
public final Position position()
public final void setLeftEdge(int value)
public final int getLeftEdge()
public final void setRowHeight(int value)
public final int getRowHeight()
public final void setHalfGap(int value)
public final int getHalfGap()
public final Border defineBorder(int index)
public final BorderSet borders()
public final void definePadding(int index,
int value)
public final Padding padding()
public final void defineSpacing(int index,
int value)
public final CellSpacing spacing()
public final void definePagination(int index,
boolean value)
public final RowPagination pagination()
public final void defineInvisibleCellWidth(int index,
int value)
public final void defineInvisibleCellType(int index,
int value)
public final InvisibleCells invisibleCells()
public void reset()
public java.lang.Object clone()
public boolean equals(java.lang.Object obj)
public void exportTo(org.w3c.dom.Element elem)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||