Construct a new grid layout.
Optional
options: GridLayout.IOptionsThe options for initializing the layout.
Get the number of columns in the layout.
Get the column spacing for the layout.
Set the col spacing for the layout.
Get the fit policy for the layout.
The fit policy controls the computed size constraints which are applied to the parent widget by the layout.
Some layout implementations may ignore the fit policy.
Set the fit policy for the layout.
The fit policy controls the computed size constraints which are applied to the parent widget by the layout.
Some layout implementations may ignore the fit policy.
Changing the fit policy will clear the current size constraint for the parent widget and then re-fit the parent.
Test whether the layout is disposed.
Get the number of rows in the layout.
Get the row spacing for the layout.
Set the row spacing for the layout.
Create an iterator over the widgets in the layout.
A new iterator over the widgets in the layout.
Protected
attachAttach a widget to the parent's DOM node.
The widget to attach to the parent.
Protected
detachDetach a widget from the parent's DOM node.
The widget to detach from the parent.
Dispose of the resources held by the layout.
Protected
initPerform layout initialization which requires the parent widget.
Protected
onA message handler invoked on an 'after-attach'
message.
The default implementation of this method forwards the message to all widgets. It assumes all widget nodes are attached to the parent widget node.
This may be reimplemented by subclasses as needed.
Protected
onA message handler invoked on an 'after-detach'
message.
The default implementation of this method forwards the message to all widgets. It assumes all widget nodes are attached to the parent widget node.
This may be reimplemented by subclasses as needed.
Protected
onA message handler invoked on an 'after-hide'
message.
The default implementation of this method forwards the message to all non-hidden widgets. It assumes all widget nodes are attached to the parent widget node.
This may be reimplemented by subclasses as needed.
Protected
onA message handler invoked on an 'after-show'
message.
The default implementation of this method forwards the message to all non-hidden widgets. It assumes all widget nodes are attached to the parent widget node.
This may be reimplemented by subclasses as needed.
Protected
onProtected
onA message handler invoked on a 'before-detach'
message.
The default implementation of this method forwards the message to all widgets. It assumes all widget nodes are attached to the parent widget node.
This may be reimplemented by subclasses as needed.
Protected
onA message handler invoked on a 'before-hide'
message.
The default implementation of this method forwards the message to all non-hidden widgets. It assumes all widget nodes are attached to the parent widget node.
This may be reimplemented by subclasses as needed.
Protected
onProtected
onProtected
onA message handler invoked on a 'child-removed'
message.
This will remove the child widget from the layout.
Subclasses should not typically reimplement this method.
Protected
onProtected
onProtected
onProtected
onRemove a widget from the grid layout.
The widget to remove from the layout.
A widget is automatically removed from the layout when its parent
is set to null
. This method should only be invoked directly when
removing a widget from a layout which has yet to be installed on a
parent widget.
This method does not modify the widget's parent
.
A layout which arranges its widgets in a grid.