public class GridLayout extends Object implements ILayout
GridLayoutConstraint
s. Component without a
constraint will be added to the first empty cell. If there is no empty cells for the component
WicketRuntimeException will be thrown.Constructor and Description |
---|
GridLayout(int width,
int height)
Constructor.
|
GridLayout(int width,
int height,
List<IComponentRenderer<?>> renderers)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
onGridCell(org.apache.wicket.Component component,
org.apache.wicket.markup.parser.XmlTag xmlTag)
May be overriden to modify <td> tag
|
protected void |
onGridRow(org.apache.wicket.markup.parser.XmlTag xmlTag)
May be overriden to modify <tr> tag
|
CharSequence |
renderComponents(List<? extends org.apache.wicket.Component> components)
Creates wicket markup for components, adding markup specific for this layout.
|
public GridLayout(int width, int height)
width
- width of gridheight
- height of gridpublic GridLayout(int width, int height, List<IComponentRenderer<?>> renderers)
width
- width of gridheight
- height of gridrenderers
- list of renderers to customize component rendering in this layoutprotected void onGridCell(org.apache.wicket.Component component, org.apache.wicket.markup.parser.XmlTag xmlTag)
component
- componentxmlTag
- <td> tagprotected void onGridRow(org.apache.wicket.markup.parser.XmlTag xmlTag)
xmlTag
- <tr> tagpublic CharSequence renderComponents(List<? extends org.apache.wicket.Component> components)
renderComponents
in interface ILayout
components
- components to renderCopyright © 2015. All rights reserved.