|
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.JCTableStyle
JCTableStyle
encapsulates table styles.
New styles can be created and existing ones can be modified
using this class.
Field Summary | |
protected com.klg.jclass.page.JCAlternate |
alternate
Alternating color object. |
protected Color |
background
The color used as a default background for table elements. |
protected com.klg.jclass.page.JCDrawStyle |
bottomBorder
The bottom border is drawn at the bottom of a table, or parts of it. |
protected com.klg.jclass.page.JCDrawStyle |
columnBorder
The column border is the default border drawn between table columns. |
protected boolean |
firstColumnSpecial
First column special? Not currently implemented. |
protected com.klg.jclass.page.JCDrawStyle |
headerBorder
The header border is drawn between the header rows and the table. |
protected com.klg.jclass.page.JCTableStyle |
headerStyle
Styles for the header. |
protected com.klg.jclass.page.JCDrawStyle |
leftBorder
The left border is drawn at the left of a table, or parts of it. |
protected String |
name
|
protected com.klg.jclass.page.JCDrawStyle |
rightBorder
The right border is drawn at the right of a table, or parts of it. |
protected com.klg.jclass.page.JCDrawStyle |
rowBorder
The row border is the default border drawn between table rows. |
protected boolean |
showFirstRowTopBorder
Determines if the the top border of first row is shown. |
static com.klg.jclass.page.JCTableStyle |
STYLE_0
Style 0 -- tabular data only with no borders around any cells. |
static com.klg.jclass.page.JCTableStyle |
STYLE_1
Style 1 -- tabular data with no borders except a thick line header border. |
static com.klg.jclass.page.JCTableStyle |
STYLE_10
Style 10 -- a grid with thick top, bottom and side borders. |
static com.klg.jclass.page.JCTableStyle |
STYLE_11
Style 11 -- a grid with no top, bottom or side borders. |
static com.klg.jclass.page.JCTableStyle |
STYLE_12
Style 12 -- all gray with thick top, bottom, side and header borders. |
static com.klg.jclass.page.JCTableStyle |
STYLE_13
Style 13 -- thick bottom, left, and right borders, a black header and thin column lines. |
static com.klg.jclass.page.JCTableStyle |
STYLE_14
Style 14 -- all white with a thin top, bottom, and side borders with a thick header border. |
static com.klg.jclass.page.JCTableStyle |
STYLE_15
Style 15 -- all white with thin top, bottom, column and side borders. |
static com.klg.jclass.page.JCTableStyle |
STYLE_16
Style 16 -- list-style table with alternating light- and dark-gray rows. |
static com.klg.jclass.page.JCTableStyle |
STYLE_17
Style 17 -- alternating light- and dark-gray columns in header and body. |
static com.klg.jclass.page.JCTableStyle |
STYLE_2
Style 2 -- tabular data with thick top and bottom borders and a header border. |
static com.klg.jclass.page.JCTableStyle |
STYLE_3
Style 3 -- thick top, bottom and header borders with row borders. |
static com.klg.jclass.page.JCTableStyle |
STYLE_4
Style 4 -- tabular data only with white labels on a black header. |
static com.klg.jclass.page.JCTableStyle |
STYLE_5
Style 5 -- tabular data with thick bottom, left, right borders and a black header. |
static com.klg.jclass.page.JCTableStyle |
STYLE_6
Style 6 -- thick bottom, left, and right borders, a black header and thin row and column lines. |
static com.klg.jclass.page.JCTableStyle |
STYLE_7
Style 7 -- tabular data with thick bottom, left, right borders and a gray header. |
static com.klg.jclass.page.JCTableStyle |
STYLE_8
Style 8 -- thick bottom, left, and right borders, a gray header and thin row and column lines. |
static com.klg.jclass.page.JCTableStyle |
STYLE_9
Style 9 -- tabular data, gray header, thick top and bottom borders. |
static com.klg.jclass.page.JCTableStyle |
STYLE_DEFAULT
STYLE_DEFAULT -- the default table style; a simple grid with borders around all cells. |
protected com.klg.jclass.page.JCTextStyle |
textStyle
The text style. |
protected com.klg.jclass.page.JCDrawStyle |
topBorder
The top border is drawn at the top of a table, above the header table. |
Constructor Summary | |
|
JCTableStyle(String name)
A do-it-yourself table style. |
|
JCTableStyle(String name,
com.klg.jclass.page.JCDrawStyle topBorder,
com.klg.jclass.page.JCDrawStyle bottomBorder,
com.klg.jclass.page.JCDrawStyle leftBorder,
com.klg.jclass.page.JCDrawStyle rightBorder,
com.klg.jclass.page.JCDrawStyle headerBorder,
com.klg.jclass.page.JCDrawStyle rowBorder,
com.klg.jclass.page.JCDrawStyle columnBorder,
boolean showFirstRowTopBorder,
boolean firstColumnSpecial,
com.klg.jclass.page.JCTableStyle headerStyle,
com.klg.jclass.page.JCTextStyle textStyle,
Color background)
Creates a table style using the given properties. |
protected |
JCTableStyle(String name,
com.klg.jclass.page.JCDrawStyle topBorder,
com.klg.jclass.page.JCDrawStyle bottomBorder,
com.klg.jclass.page.JCDrawStyle leftBorder,
com.klg.jclass.page.JCDrawStyle rightBorder,
com.klg.jclass.page.JCDrawStyle headerBorder,
com.klg.jclass.page.JCDrawStyle rowBorder,
com.klg.jclass.page.JCDrawStyle columnBorder,
boolean showFirstRowTopBorder,
boolean firstColumnSpecial,
com.klg.jclass.page.JCTableStyle headerStyle,
com.klg.jclass.page.JCTextStyle textStyle,
Color background,
boolean internalUse)
Creates a table style using the given properties. |
|
JCTableStyle(String name,
com.klg.jclass.page.JCDrawStyle topBorder,
com.klg.jclass.page.JCDrawStyle bottomBorder,
com.klg.jclass.page.JCDrawStyle leftBorder,
com.klg.jclass.page.JCDrawStyle rightBorder,
com.klg.jclass.page.JCDrawStyle headerBorder,
com.klg.jclass.page.JCDrawStyle rowBorder,
com.klg.jclass.page.JCDrawStyle columnBorder,
boolean showFirstRowTopBorder,
boolean firstColumnSpecial,
com.klg.jclass.page.JCTableStyle headerStyle,
com.klg.jclass.page.JCTextStyle textStyle,
Color background,
com.klg.jclass.page.JCAlternate alternate)
Creates a table style using the given properties. |
Method Summary | |
Object |
clone()
Returns a deep-copy of an instance of this class. |
static Enumeration |
elements()
|
static com.klg.jclass.page.JCTableStyle |
first()
Returns the first enumerable style. |
com.klg.jclass.page.JCAlternate |
getAlternate()
Returns the JCAlternate object which controls alternating colors for rows
or columns. |
Color |
getBackground()
Returns the color used as a default background for table elements. |
com.klg.jclass.page.JCDrawStyle |
getBottomBorder()
Returns the bottom border which is drawn at the bottom of a table, or parts of it. |
com.klg.jclass.page.JCDrawStyle |
getColumnBorder()
Returns the column border which is the default border drawn between table columns. |
com.klg.jclass.page.JCDrawStyle |
getHeaderBorder()
Returns the header border which is drawn between the header rows and the table. |
com.klg.jclass.page.JCTableStyle |
getHeaderStyle()
Returns the header style for this table. |
com.klg.jclass.page.JCDrawStyle |
getLeftBorder()
Returns the left border which is drawn at the left of a table, or parts of it. |
String |
getName()
Returns the name of this style. |
com.klg.jclass.page.JCDrawStyle |
getRightBorder()
Returns the right border which is drawn at the right of a table, or parts of it. |
com.klg.jclass.page.JCDrawStyle |
getRowBorder()
Returns the row border which is the default border drawn between table rows. |
boolean |
getShowFirstRowTopBorder()
Returns the boolean which controls whether the top border of the first row is shown or not. |
com.klg.jclass.page.JCTextStyle |
getTextStyle()
Returns the JCTextStyle for this table. |
com.klg.jclass.page.JCDrawStyle |
getTopBorder()
Returns the top border which is drawn at the top of a table, above the header table. |
static com.klg.jclass.page.JCTableStyle |
last()
Returns the last enumerable style. |
com.klg.jclass.page.JCTableStyle |
next()
Returns the style which suceeds this style in the enumeration. |
com.klg.jclass.page.JCTableStyle |
prev()
Returns the style which precedes this style in the enumeration. |
void |
setAlternate(com.klg.jclass.page.JCAlternate alternate)
Sets the JCAlternate object which controls alternating colors for rows
or columns. |
void |
setBackground(Color background)
Sets the color used as a default background for table elements. |
void |
setBottomBorder(com.klg.jclass.page.JCDrawStyle bottomBorder)
Sets the bottom border which is drawn at the bottom of a table, or parts of it. |
void |
setColumnBorder(com.klg.jclass.page.JCDrawStyle columnBorder)
Sets the column border which is the default border drawn between table columns. |
void |
setHeaderBorder(com.klg.jclass.page.JCDrawStyle headerBorder)
Sets the header border which is drawn between the header rows and the table. |
void |
setHeaderStyle(com.klg.jclass.page.JCTableStyle headerStyle)
Sets the header style for this table. |
void |
setLeftBorder(com.klg.jclass.page.JCDrawStyle leftBorder)
Gets the left border which is drawn at the left of a table, or parts of it. |
void |
setName(String name)
Sets the name of this style. |
void |
setRightBorder(com.klg.jclass.page.JCDrawStyle rightBorder)
Sets the right border which is drawn at the right of a table, or parts of it. |
void |
setRowBorder(com.klg.jclass.page.JCDrawStyle rowBorder)
Sets the row border which is the default border drawn between table rows. |
void |
setShowFirstRowTopBorder(boolean b)
Sets the boolean which controls whether the top border of the first row is shown or not. |
void |
setTextStyle(com.klg.jclass.page.JCTextStyle textStyle)
Sets the JCTextStyle for this table. |
void |
setTopBorder(com.klg.jclass.page.JCDrawStyle topBorder)
Sets the top border which is drawn at the top of a table, above the header table. |
static int |
size()
Returns the number of enumerable styles. |
String |
toString()
Returns the String representation of this class. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected String name
protected com.klg.jclass.page.JCDrawStyle bottomBorder
protected com.klg.jclass.page.JCDrawStyle topBorder
protected com.klg.jclass.page.JCDrawStyle leftBorder
protected com.klg.jclass.page.JCDrawStyle rightBorder
protected com.klg.jclass.page.JCDrawStyle headerBorder
protected com.klg.jclass.page.JCDrawStyle columnBorder
protected com.klg.jclass.page.JCDrawStyle rowBorder
protected Color background
protected boolean showFirstRowTopBorder
protected boolean firstColumnSpecial
protected com.klg.jclass.page.JCTextStyle textStyle
protected com.klg.jclass.page.JCAlternate alternate
protected com.klg.jclass.page.JCTableStyle headerStyle
public static final com.klg.jclass.page.JCTableStyle STYLE_DEFAULT
name
property for this
style is default
.
public static final com.klg.jclass.page.JCTableStyle STYLE_0
name
property for this style is Style 0
.
public static final com.klg.jclass.page.JCTableStyle STYLE_1
name
property for this
style is Style 1
.
public static final com.klg.jclass.page.JCTableStyle STYLE_2
name
property
for this style is Style 2
.
public static final com.klg.jclass.page.JCTableStyle STYLE_3
name
property for this
style is Style 3
.
public static final com.klg.jclass.page.JCTableStyle STYLE_4
name
property
for this style is Style 4
.
public static final com.klg.jclass.page.JCTableStyle STYLE_5
name
property
for this style is Style 5
.
public static final com.klg.jclass.page.JCTableStyle STYLE_6
name
property
for this style is Style 6
.
public static final com.klg.jclass.page.JCTableStyle STYLE_7
name
property for
this style is Style 7
.
public static final com.klg.jclass.page.JCTableStyle STYLE_8
name
property
for this style is Style 8
.
public static final com.klg.jclass.page.JCTableStyle STYLE_9
name
property for this style is Style 9
.
public static final com.klg.jclass.page.JCTableStyle STYLE_10
name
property for this style is Style 10
.
public static final com.klg.jclass.page.JCTableStyle STYLE_11
name
property for this style is Style 11
.
public static final com.klg.jclass.page.JCTableStyle STYLE_12
name
property for this style is Style 12
.
public static final com.klg.jclass.page.JCTableStyle STYLE_13
name
property for this style is Style 13
public static final com.klg.jclass.page.JCTableStyle STYLE_14
name
property for this style is Style 14
.
public static final com.klg.jclass.page.JCTableStyle STYLE_15
name
property for this style is Style 15
.
public static final com.klg.jclass.page.JCTableStyle STYLE_16
name
property for this style is Style 16
.
public static final com.klg.jclass.page.JCTableStyle STYLE_17
name
property for this style is Style 17
.
Constructor Detail |
public JCTableStyle(String name, com.klg.jclass.page.JCDrawStyle topBorder, com.klg.jclass.page.JCDrawStyle bottomBorder, com.klg.jclass.page.JCDrawStyle leftBorder, com.klg.jclass.page.JCDrawStyle rightBorder, com.klg.jclass.page.JCDrawStyle headerBorder, com.klg.jclass.page.JCDrawStyle rowBorder, com.klg.jclass.page.JCDrawStyle columnBorder, boolean showFirstRowTopBorder, boolean firstColumnSpecial, com.klg.jclass.page.JCTableStyle headerStyle, com.klg.jclass.page.JCTextStyle textStyle, Color background)
topBorder
- the JCDrawStyle
for the top border of the tablebottomBorder
- the JCDrawStyle
for the bottom border of the tableleftBorder
- the JCDrawStyle
for the left border of the tablerightBorder
- the JCDrawStyle
for the right border of the tableheaderBorder
- the JCDrawStyle
for the rows between the header and tablerowBorder
- the JCDrawStyle
for row borderscolumnBorder
- the JCDrawStyle
for column bordersbackground
- the Color for the tables backgroundname
- showFirstRowTopBorder
- firstColumnSpecial
- headerStyle
- textStyle
- public JCTableStyle(String name, com.klg.jclass.page.JCDrawStyle topBorder, com.klg.jclass.page.JCDrawStyle bottomBorder, com.klg.jclass.page.JCDrawStyle leftBorder, com.klg.jclass.page.JCDrawStyle rightBorder, com.klg.jclass.page.JCDrawStyle headerBorder, com.klg.jclass.page.JCDrawStyle rowBorder, com.klg.jclass.page.JCDrawStyle columnBorder, boolean showFirstRowTopBorder, boolean firstColumnSpecial, com.klg.jclass.page.JCTableStyle headerStyle, com.klg.jclass.page.JCTextStyle textStyle, Color background, com.klg.jclass.page.JCAlternate alternate)
topBorder
- the JCDrawStyle
for the top border of the tablebottomBorder
- the JCDrawStyle
for the bottom border of the tableleftBorder
- the JCDrawStyle
for the left border of the tablerightBorder
- the JCDrawStyle
for the right border of the tableheaderBorder
- the JCDrawStyle
for the rows between the header and tablerowBorder
- the JCDrawStyle
for row borderscolumnBorder
- the JCDrawStyle
for column bordersbackground
- the Color for the tables backgroundalternate
- the alternating color objecttextStyle
- headerStyle
- firstColumnSpecial
- showFirstRowTopBorder
- name
- protected JCTableStyle(String name, com.klg.jclass.page.JCDrawStyle topBorder, com.klg.jclass.page.JCDrawStyle bottomBorder, com.klg.jclass.page.JCDrawStyle leftBorder, com.klg.jclass.page.JCDrawStyle rightBorder, com.klg.jclass.page.JCDrawStyle headerBorder, com.klg.jclass.page.JCDrawStyle rowBorder, com.klg.jclass.page.JCDrawStyle columnBorder, boolean showFirstRowTopBorder, boolean firstColumnSpecial, com.klg.jclass.page.JCTableStyle headerStyle, com.klg.jclass.page.JCTextStyle textStyle, Color background, boolean internalUse)
topBorder
- the JCDrawStyle
for the top border of the tablebottomBorder
- the JCDrawStyle
for the bottom border of the tableleftBorder
- the JCDrawStyle
for the left border of the tablerightBorder
- the JCDrawStyle
for the right border of the tableheaderBorder
- the JCDrawStyle
for the rows between the header and tablerowBorder
- the JCDrawStyle
for row borderscolumnBorder
- the JCDrawStyle
for column bordersbackground
- the Color for the tables backgroundinternalUse
- the internal use boolean flagname
- showFirstRowTopBorder
- firstColumnSpecial
- headerStyle
- textStyle
- public JCTableStyle(String name)
name
- the name of the styleMethod Detail |
public Color getBackground()
public void setBackground(Color background)
background
- the Color for the background of the tablepublic com.klg.jclass.page.JCDrawStyle getBottomBorder()
public void setBottomBorder(com.klg.jclass.page.JCDrawStyle bottomBorder)
bottomBorder
- the JCDrawStyle
for the bottomBorder
public com.klg.jclass.page.JCDrawStyle getColumnBorder()
columnBorder
public void setColumnBorder(com.klg.jclass.page.JCDrawStyle columnBorder)
columnBorder
- the JCDrawStyle
for the columnBorder
public com.klg.jclass.page.JCDrawStyle getHeaderBorder()
headerBorder
public void setHeaderBorder(com.klg.jclass.page.JCDrawStyle headerBorder)
headerBorder
- the JCDrawStyle
for the header borderpublic com.klg.jclass.page.JCDrawStyle getLeftBorder()
public void setLeftBorder(com.klg.jclass.page.JCDrawStyle leftBorder)
leftBorder
- the JCDrawStyle
for the leftBorder
public String getName()
public void setName(String name)
name
- the String name of this stylepublic com.klg.jclass.page.JCDrawStyle getRightBorder()
rightBorder
public void setRightBorder(com.klg.jclass.page.JCDrawStyle rightBorder)
rightBorder
- the JCDrawStyle
for the right borderpublic com.klg.jclass.page.JCDrawStyle getRowBorder()
rowBorder
public void setRowBorder(com.klg.jclass.page.JCDrawStyle rowBorder)
rowBorder
- the JCDrawStyle
for the row borderpublic com.klg.jclass.page.JCDrawStyle getTopBorder()
topBorder
public void setTopBorder(com.klg.jclass.page.JCDrawStyle topBorder)
topBorder
- the JCDrawStyle
for the top borderpublic com.klg.jclass.page.JCTableStyle getHeaderStyle()
JCTableStyle
for this table's headerpublic void setHeaderStyle(com.klg.jclass.page.JCTableStyle headerStyle)
headerStyle
- the JCTableStyle
which encapsulates style information
for the header of this table.public Object clone()
clone
in class Object
public com.klg.jclass.page.JCAlternate getAlternate()
JCAlternate
object which controls alternating colors for rows
or columns.
JCAlternate
object controlling alternating colorspublic void setAlternate(com.klg.jclass.page.JCAlternate alternate)
JCAlternate
object which controls alternating colors for rows
or columns.
alternate
- the JCAlternate
object controlling alternating colorspublic boolean getShowFirstRowTopBorder()
true
, it is shownpublic void setShowFirstRowTopBorder(boolean b)
b
- a boolean which controls whether the top border of the first
row is shown or not; if true
, it is shownpublic com.klg.jclass.page.JCTextStyle getTextStyle()
JCTextStyle
for this table.
JCTextStyle
for this tablepublic void setTextStyle(com.klg.jclass.page.JCTextStyle textStyle)
JCTextStyle
for this table.
textStyle
- the JCTextStyle
for this tablepublic static Enumeration elements()
public String toString()
toString
in class Object
public static int size()
public static com.klg.jclass.page.JCTableStyle first()
public static com.klg.jclass.page.JCTableStyle last()
public com.klg.jclass.page.JCTableStyle prev()
public com.klg.jclass.page.JCTableStyle next()
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |