|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.klg.jclass.page.JCPageTable.Row
The Row object describes a single row of a JCPageTable
.
Field Summary | |
protected int |
arrivingSpans
A count of the number of spans which begin on this row. |
protected Color |
background
The color used as a default background for table elements. |
protected JCUnit.Measure |
borderWidth
The amount of space required to accomodate the row's border. |
protected com.klg.jclass.page.JCDrawStyle |
bottomBorder
The bottom border is drawn at the bottom of the row. |
protected List |
cellList
The cell list is an ordered list of cell in the row. |
protected JCPageTable.Cell |
defaultCell
A template cell to use as a source of default cell attributes. |
protected int |
departingSpans
The number of spans which began above, but which appear in this row. |
protected JCUnit.Measure |
extraHeight
Extra height can be added to equalise vertical spans. |
protected boolean |
fixedHeight
Flag if the row height has been overriden. |
protected JCUnit.Measure |
rowHeight
The height of the row is based on the tallest cell. |
protected int |
rowNumber
The number of this row in the table. |
Constructor Summary | |
JCPageTable.Row()
Creates an empty row object. |
|
JCPageTable.Row(int position)
Creates a row object as a child of this table. |
Method Summary | |
protected JCUnit.Measure |
basicHeight()
Computes the height of the row based on cell heights. |
protected int |
getArrivingSpans()
Gets the number of spanned cells which enter this row. |
Color |
getBackgroundColor()
Gets the color specified for painting the row background. |
com.klg.jclass.page.JCDrawStyle |
getBorderStyle()
Gets the draw style used for the row's border. |
protected JCUnit.Measure |
getBorderWidth()
Returns the width of the row's border, computing it if necessary. |
protected JCUnit.Measure |
getBottomBorderWidth()
Computes the space required for this row's bottom border. |
protected JCUnit.Measure |
getBottomBorderWidth(boolean fullWidth)
Computes the space required for the border of this row at the bottom of a table or table section. |
JCPageTable.Cell |
getCell(int column)
Gets a particular cell from the row (instantiating it if necessary). |
List |
getCellList()
Returns the list of cells. |
JCUnit.Measure |
getDefaultBottomMargin()
Gets the default width of the bottom margin. |
int |
getDefaultCellAlignment()
Gets the alignment (within each row) of the cells in this column. |
Object |
getDefaultCellValue()
Gets the default contents for cells in this row. |
JCUnit.Measure |
getDefaultLeftMargin()
Gets the default width of the left margin. |
JCUnit.Measure |
getDefaultRightMargin()
Gets the default width of the right margin. |
com.klg.jclass.page.JCTextStyle |
getDefaultStyle()
Gets the default cell style. |
JCUnit.Measure |
getDefaultTopMargin()
Gets the default width of the top margin. |
protected int |
getDepartingSpans()
Gets the number of spanned cells which leave this row. |
protected JCUnit.Measure |
getDrawnHeight(boolean first,
boolean last)
Computes the height of this row (including extra space and border width) based on the given information about its position in the table part. |
protected JCUnit.Measure |
getExtraHeight()
Gets the amount of extra height added to the row for alignment purposes. |
JCUnit.Measure |
getHeight()
Gets the height of the row. |
int |
getRowNumber()
Gets the number (position) of this row. |
protected JCUnit.Measure |
getTopBorderWidth()
Computes the space required for this row's border at the top. |
protected JCUnit.Measure |
getTopBorderWidth(boolean fullWidth)
Computes the space required for the border of this row at the top of a table or table section. |
protected boolean |
hasFixedHeight()
Determine if the height of the row has been fixed. |
boolean |
isBackgroundColorInherited()
Determines if the background color is inherited from the table. |
boolean |
isBorderStyleInherited()
Determine if the value being reported for the row's border is inherited. |
boolean |
isDefaultBottomMarginInherited()
Determines whether the default bottom margin is inherited. |
boolean |
isDefaultCellAlignmentInherited()
Determines if the vertical cell alignment is inherited. |
boolean |
isDefaultCellValueInherited()
Determines if the default cell value is inherited. |
boolean |
isDefaultLeftMarginInherited()
Determines if the default left margin is inherited. |
boolean |
isDefaultRightMarginInherited()
Determine if the default right margin is inherited. |
boolean |
isDefaultStyleInherited()
Determines if the default style is inherited. |
boolean |
isDefaultTopMarginInherited()
Determine if the default top margin is inherited. |
void |
setBackgroundColor(Color color)
Sets the color specified for painting the row's background. |
void |
setBorderStyle(com.klg.jclass.page.JCDrawStyle border)
Sets the border style for the row's border. |
void |
setDefaultBottomMargin(JCUnit.Measure width)
Sets the default width of a cell's bottom margin. |
void |
setDefaultCellAlignment(int alignment)
Sets the alignment (within each row) of the cells in this column. |
void |
setDefaultCellValue(Object obj)
Sets the default contents for cells in this row. |
void |
setDefaultLeftMargin(JCUnit.Measure width)
Sets the default width of a cell's left margin. |
void |
setDefaultRightMargin(JCUnit.Measure width)
Sets the default width of a cell's right margin. |
void |
setDefaultStyle(com.klg.jclass.page.JCTextStyle style)
Sets the default cell text style. |
void |
setDefaultTopMargin(JCUnit.Measure width)
Sets the default width of a cell's top margin. |
protected void |
setExtraHeight(JCUnit.Measure height)
Sets the amount of extra height added to the row for alignment purposes. |
void |
setHeight(JCUnit.Measure height)
Sets the row's height; this may override the dynamic sizing of the row. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected List cellList
protected com.klg.jclass.page.JCDrawStyle bottomBorder
protected Color background
protected JCPageTable.Cell defaultCell
protected JCUnit.Measure rowHeight
protected boolean fixedHeight
protected JCUnit.Measure extraHeight
protected JCUnit.Measure borderWidth
protected int arrivingSpans
protected int departingSpans
protected int rowNumber
Constructor Detail |
public JCPageTable.Row()
public JCPageTable.Row(int position)
position
- The position of the row in the tableMethod Detail |
public boolean isBackgroundColorInherited()
public Color getBackgroundColor()
public void setBackgroundColor(Color color)
color
- The row's background colorpublic boolean isBorderStyleInherited()
public com.klg.jclass.page.JCDrawStyle getBorderStyle()
public void setBorderStyle(com.klg.jclass.page.JCDrawStyle border)
border
- The draw style that describes the borderpublic JCPageTable.Cell getCell(int column)
column
- The column to find (create) the cell in
public List getCellList()
public boolean isDefaultCellAlignmentInherited()
public int getDefaultCellAlignment()
public void setDefaultCellAlignment(int alignment)
alignment
- The vertical alignment of each cell versus its rowpublic boolean isDefaultStyleInherited()
public com.klg.jclass.page.JCTextStyle getDefaultStyle()
public void setDefaultStyle(com.klg.jclass.page.JCTextStyle style)
style
- A text style to apply to printing in table cellspublic boolean isDefaultBottomMarginInherited()
public JCUnit.Measure getDefaultBottomMargin()
public void setDefaultBottomMargin(JCUnit.Measure width)
width
- The size of the bottom margin for table cellspublic boolean isDefaultTopMarginInherited()
public JCUnit.Measure getDefaultTopMargin()
public void setDefaultTopMargin(JCUnit.Measure width)
width
- The size of the top margin for table cellspublic boolean isDefaultLeftMarginInherited()
public JCUnit.Measure getDefaultLeftMargin()
public void setDefaultLeftMargin(JCUnit.Measure width)
width
- The size of the left margin for table cellspublic boolean isDefaultRightMarginInherited()
public JCUnit.Measure getDefaultRightMargin()
public void setDefaultRightMargin(JCUnit.Measure width)
width
- The size of the right margin for table cellspublic boolean isDefaultCellValueInherited()
public Object getDefaultCellValue()
public void setDefaultCellValue(Object obj)
obj
- The object to be the default contents for this rowprotected boolean hasFixedHeight()
public JCUnit.Measure getHeight()
public void setHeight(JCUnit.Measure height)
height
- The desired height of the rowpublic int getRowNumber()
protected JCUnit.Measure getExtraHeight()
protected void setExtraHeight(JCUnit.Measure height)
height
- The extra height to expand the rowprotected int getArrivingSpans()
protected int getDepartingSpans()
protected JCUnit.Measure basicHeight()
protected JCUnit.Measure getBorderWidth()
protected JCUnit.Measure getBottomBorderWidth()
protected JCUnit.Measure getBottomBorderWidth(boolean fullWidth)
fullWidth
- True if the total space to the next row is required;
false if the half-width in this row's domain is wanted
protected JCUnit.Measure getTopBorderWidth()
protected JCUnit.Measure getTopBorderWidth(boolean fullWidth)
fullWidth
- True if the total space between this row and the
previous one is required, otherwise false (half)
protected JCUnit.Measure getDrawnHeight(boolean first, boolean last)
first
- True if the row is the first (top) row of the table partlast
- True if the row is the last (bottom) row of the table part
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |