|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--sos.reports.TableFormats
A factory class for creating various table formats.
TableFormat,
DefaultTableFormat| Field Summary | |
static TableFormat |
EMPTY_TABLE_FORMAT
An empty table format. |
| Method Summary | |
static TableFormat |
createColumnOrientedTableFormat(javax.swing.text.AttributeSet[] headerAttributes,
javax.swing.text.AttributeSet[] bodyAttributes,
javax.swing.text.AttributeSet[] footerAttributes)
Creates a table format with the specified attributes for header columns, body columns, and footer columns. |
static TableFormat |
createCompositeTableFormat(TableFormat tableFormat1,
TableFormat tableFormat2)
Creates a table format that is the composition of two table tyles, giving precendence to the first one. |
static TableFormat |
createRowOrientedTableFormat(javax.swing.text.AttributeSet[] headerAttributes,
javax.swing.text.AttributeSet[] bodyAttributes,
javax.swing.text.AttributeSet[] footerAttributes)
Creates a table format with the specified attributes for header rows, body rows, and footer rows. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final TableFormat EMPTY_TABLE_FORMAT
| Method Detail |
public static TableFormat createColumnOrientedTableFormat(javax.swing.text.AttributeSet[] headerAttributes,
javax.swing.text.AttributeSet[] bodyAttributes,
javax.swing.text.AttributeSet[] footerAttributes)
The table format
assigns the first header column headerAttributes[0],
the second header column headerAttributes[1], etc.
If there are more header columns than elements in headerAttributes,
the table format cycles around and repeats with headerAttributes[0].
If headerAttributes is null, all header
columns get empty attribute sets. Similarly, a null element
of headerAttributes is treated as an empty attribute set.
The same procedure applies to the body and footer columns.
headerAttributes - array of attribute sets to apply to
header columns in a cyclic fashionbodyAttributes - array of attribute sets to apply to
body columns in a cyclic fashionfooterAttributes - array of attribute sets to apply to
footer columns in a cyclic fashion
createRowOrientedTableFormat(javax.swing.text.AttributeSet[], javax.swing.text.AttributeSet[], javax.swing.text.AttributeSet[])
public static TableFormat createCompositeTableFormat(TableFormat tableFormat1,
TableFormat tableFormat2)
tableFormat1 or tableFormat2.
An attribute's value is the value defined in tableFormat1, if
it is defined; otherwise, it is the value defined in tableFormat2.
tableFormat1 - the first table format (higher precedence)tableFormat2 - the second table format
tableFormat1 and second
to tableFormat2
java.lang.NullPointerException - if tableFormat1 or
tableFormat2 is null
public static TableFormat createRowOrientedTableFormat(javax.swing.text.AttributeSet[] headerAttributes,
javax.swing.text.AttributeSet[] bodyAttributes,
javax.swing.text.AttributeSet[] footerAttributes)
The table format
assigns the first header row headerAttributes[0],
the second header row headerAttributes[1], etc.
If there are more header rows than elements in headerAttributes,
the table format cycles around and repeats with headerAttributes[0].
If headerAttributes is null, all header
rows get empty attribute sets. Similarly, a null element
of headerAttributes is treated as an empty attribute set.
The same procedure applies to the body and footer rows.
headerAttributes - array of attribute sets to apply to
header rows in a cyclic fashionbodyAttributes - array of attribute sets to apply to
body rows in a cyclic fashionfooterAttributes - array of attribute sets to apply to
footer rows in a cyclic fashion
createColumnOrientedTableFormat(javax.swing.text.AttributeSet[], javax.swing.text.AttributeSet[], javax.swing.text.AttributeSet[])
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||