Class HtmlTable
HtmlTable -> HtmlContainer
This container widget represents a table. A table should only contain
HtmlTr widgets. It supports the following attributes:
- align -
String representing the default row alignment. It can take the
values "left", "center", "right".
- bgcolor -
String representing the background color for the table.
- width -
The table width. It can be either a string or an integer. To
represent relative widths it must be a string suffixed with a
"%" sign.
- border -
The border width. It can be either a string or an integer.
- cellspacing -
The space between adjacent cells. It can be either a string
or an integer.
- cellpadding -
The space between the cell contents and its border.
constructor
Initializes the object.
|
get attribName
Fetches the value of an attribute.
|
init attribList
Initializes the values of a set of attributes.
|
set attribName attribValue
Changes the values of one of the widget attributes.
|
|
constructor
HtmlTable constructor
Initializes the object.
-
get
HtmlTable get attribName
Fetches the value of an attribute.
- Parameters:
- attribName -
Symbol identifying the attribute whose value is being fetched.
- Returns:
-
The value of the
attribName attribute.
-
The
attribName argument must be one of the supported
attributes.
init
HtmlTable init attribList
Initializes the values of a set of attributes.
- Parameters:
- attribList -
A list with the attributes and its values.
- Returns:
-
A reference to the object for which the method was called.
-
Initializes attributes of the widget. These
are attributes known to the
set and
get methods.
The attribList argument contains the attributes
names and values. It is a list where each
element specifies an attribute. Each element
is a two element list: a symbol identifying the attribute and
its new value.
set
HtmlTable set attribName attribValue
Changes the values of one of the widget attributes.
- Parameters:
- attribName -
Symbol identifying the attribute whose value will be modified.
- attribValue -
The new value of the attribute.
- Returns:
-
A reference to the object for which the method was called.
-
The
attribName argument must be the same as one of the
symbols passed to the init method, otherwise a
runtime error will occur.
Report a bug or request new features
© 2013