|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--planetj.html.HTMLElement | +--planetj.dataengine.test.TestHTMLTable
This class is used for containing the properties of an HTML table into an object. A HTMLTAbleProperties object is used when outputing the HTML code for a table.
Field Summary | |
static int |
MULTIPLESELECTION
|
static int |
NOSELECTION
|
static int |
SINGLESELECTION
|
Fields inherited from class planetj.html.HTMLElement |
DISABLED |
Constructor Summary | |
TestHTMLTable(String id)
Creates a new HTMLTable object and sets its table id. |
Method Summary | |
String |
generate()
Generates HTML code for this HTML table. |
String |
generate(RowCollection rows)
Generates HTML code for this HTML table using the specified rows (RowCollection). |
String |
generate(RowCollection rows,
String[] fldNames)
Generates HTML code for this HTML table using the specified rows (RowCollection). |
String |
generate(RowCollection rows,
String[] fldNames,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
Generates HTML code for this HTML table using the specified rows (RowCollection). |
int |
getBorder()
Insert the method's description here. |
int |
getCellPadding()
Insert the method's description here. |
int |
getCellSpacing()
Insert the method's description here. |
String |
getEvenRowBGColor()
Returns the background color for even rows in the table as a String representation of the HTML code for the color. |
String |
getGridColor()
Insert the method's description here. |
int |
getGridWidth()
|
String |
getHeaderBGColor()
Returns the background color for the table header as a String representation of the HTML code for the color. |
String |
getHeaderTextColor()
Insert the method's description here. |
String |
getOddRowBGColor()
Returns the background color for odd rows in the table as a String representation of the HTML code for the color. |
String |
getRowBackground()
Convience method used when creating the table for display. |
RowCollection |
getRows()
Returns the rows (RowCollection) to the table has for populating its data. |
int |
getSelectionType()
Insert the method's description here. |
String |
getTextColor()
Insert the method's description here. |
boolean |
isMultipleSelection()
|
boolean |
isNoSelection()
|
boolean |
isSingleSelection()
|
void |
setBorder(int newBorder)
Insert the method's description here. |
void |
setCellPadding(int newCellPadding)
Insert the method's description here. |
void |
setCellSpaceing(int newCellSpaceing)
Insert the method's description here. |
void |
setEvenRowBGColor(String evenRowBGColor)
Sets the background color for even rows in the table as a String representation of the HTML code for the color. |
void |
setGridColor(String newGridColor)
Insert the method's description here. |
void |
setGridWidth(int width)
|
void |
setHeaderBGColor(String headerBGColor)
Sets the background color for the table header as a String representation of the HTML code for the color. |
void |
setHeaderTextColor(String newHeaderTextColor)
Insert the method's description here. |
void |
setOddRowBackgroundColor(String oddRowBGColor)
Sets the background color for odd rows in the table as a String representation of the HTML code for the color. |
void |
setOddRowBGColor(String oddRowBGColor)
Sets the background color for odd rows in the table as a String representation of the HTML code for the color. |
void |
setRowBackground(String oddRowBGColor,
String evenRowBGColor)
Convience method for setting both odd and even row background colors at the same time. |
void |
setRows(RowCollection rows)
Sets the rows (RowCollection) to be used in populating the data for the table. |
void |
setSelectionType(int newSelectionType)
Insert the method's description here. |
void |
setTextColor(String newTextColor)
Insert the method's description here. |
Methods inherited from class planetj.html.HTMLElement |
appendAttribute, appendAttribute, appendExtractableHiddenField, getId, isDisplayField, setId |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int NOSELECTION
public static final int SINGLESELECTION
public static final int MULTIPLESELECTION
Constructor Detail |
public TestHTMLTable(String id)
id
- StringMethod Detail |
public String generate() throws CMException
CMException
public String generate(RowCollection rows) throws CMException
rows
- RowCollection
CMException
public String generate(RowCollection rows, String[] fldNames) throws CMException
rows
- RowCollectionfldNames
- String[]
CMException
public String generate(RowCollection rows, String[] fldNames, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws CMException
rows
- RowCollectionfldNames
- String[]
CMException
public int getBorder()
public int getCellPadding()
public int getCellSpacing()
public String getEvenRowBGColor()
public String getGridColor()
public int getGridWidth()
public String getHeaderBGColor()
public String getHeaderTextColor()
public String getOddRowBGColor()
public String getRowBackground()
public RowCollection getRows()
public int getSelectionType()
public String getTextColor()
public boolean isMultipleSelection()
public boolean isNoSelection()
public boolean isSingleSelection()
public void setBorder(int newBorder)
newBorder
- intpublic void setCellPadding(int newCellPadding)
newCellPadding
- intpublic void setCellSpaceing(int newCellSpaceing)
newCellSpaceing
- intpublic void setEvenRowBGColor(String evenRowBGColor)
public void setGridColor(String newGridColor)
newGridColor
- java.lang.Stringpublic void setGridWidth(int width)
public void setHeaderBGColor(String headerBGColor)
headerBGColor
- Stringpublic void setHeaderTextColor(String newHeaderTextColor)
public void setOddRowBackgroundColor(String oddRowBGColor)
public void setOddRowBGColor(String oddRowBGColor)
public void setRowBackground(String oddRowBGColor, String evenRowBGColor)
oddRowBGColor
- StringevenRowBGColor
- Stringpublic void setRows(RowCollection rows)
rows
- RowCollectionpublic void setSelectionType(int newSelectionType)
newSelectionType
- intpublic void setTextColor(String newTextColor)
newTextColor
- java.lang.String
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |