Passage Server Java API
All Classes
Class WTable
Constructor
  WTable(WServer oServer)
Initializes a newly created WTable object.

Parameters:
oServer - a WServer.
Methods
int CreateCol(int Width)
Creates the table column.

Parameters:
Width - the column width [in characters].

Returns:
0 if the column is created successfully; -1 otherwise.
int CreateRow()
Creates the table row.

Returns:
0 if the row is created successfully; -1 otherwise.
int SetField(int Row, int Col, String Value)
Sets the value to the field.

Parameters:
Row - the row number.
Col - the column number.
Value - the value to assign.

Returns:
0 if the value is set successfully; -1 otherwise.
String GetField(int Row, int Col)
Gets the value of the field.

Parameters:
Row - the row number.
Col - the column number.

Returns:
a String that represents the value; empty String if Row/Col are incorrect.
int GetNumOfRows()
Returns:
Number of rows in the table.
int GetNumOfCols()
Returns:
Number of columns in the table.
void SetMultiSelected()
Sets the multiselected property, so the table can be used by html code
<select ... multiple>...</select> to show several items selected.
void SetSelectedRow(int Row)
Sets the selected property on, so the table can be used in html code
<select ... >...</select> to show the row selected.

Parameters:
Row - the row number [0,1,2,...].
void SetTRParam(String Param)
Sets the parameter for all rows, so the table can be used in html code
<table><tr Param> ... </tr></table>

Parameters:
Param - the html table row parameter [height=... bgcolor=...]
void SetTDParam(String Param)
Sets the parameter for all columns, so the table can be used in html code
<table><tr><td Param> ... </td></tr></table>.

Parameters:
Param - the html table column parameter [height=... bgcolor=... width=...]
void SetTDParam(int Col, String Param)
Sets the parameter for specified column, so the table can be used in html code
<table><tr><td Param> ... </td></tr></table>.

Parameters:
Col - the column number [0,1,2,...]
Param - the html table column parameter [height=... bgcolor=... width=...]
Example
  api_WTable.java
© PASSAGE