Parameters
Name | Type | Default | Description |
name | string | null |
Identifies the component.
|
enabled | boolean | true |
Enables or disables this component. A disabled component is painted gray,
and can't respond to user mouse or keyboard input, gain the keyboard focus,
and generate events.
|
visible | boolean | true |
An invisible component doesn't take place in parent's layout.
|
tooltip | string | null |
The text pops up when the mouse lingers inside the component.
|
width | integer | 0 |
Fixed preferred width of the component irrespectively of its content.
If it is 0, the component will be asked for the preferred width.
|
height | integer | 0 |
Preferred height of the component, or 0.
|
colspan | integer | 1 |
Specifies the number of cells in a column in the component's display area.
|
rowspan | integer | 1 |
Specifies the number of cells in a row occupied by the component.
|
weightx | integer | 0 |
Used to determine how to distribute horizontal space among grid cells
when more space is available for its parent component than required.
|
weighty | integer | 0 |
The extra vertical space is distributed to each cell height in proportion
to its weight. Default value is 0. The row contains 0 weighted components
remains the calculated preferred size.
|
halign | choice | fill |
Horizontal alignment of the component when more space available
in the cell. Possible values are: fill, center, left, and right.
|
valign | choice | fill |
Vertical alignment in the cell.
Possible values are: fill, center, top, and bottom.
|