public interface IBorderLayout
MarkupContainer.
public class BorderLayoutPage extends WebPage implements IBorderLayout
{
public BorderLayoutPage(PageParameters parameters)
{
super(parameters);
this.addBorderLayout(this);
}
public void addBorderLayout(MarkupContainer container)
{
container.add(new SplitterBehavior("#vertical").setOption("panes", this.getVerticalPanes()).setOption("orientation", "'vertical'"));
container.add(new SplitterBehavior("#horizontal").setOption("panes", this.getHorizontalPanes()));
}
...
}
| Modifier and Type | Method and Description |
|---|---|
void |
addBorderLayout(org.apache.wicket.MarkupContainer container)
Method that is designed to create the BorderLayout.
A typical implementation is: |
String |
getHorizontalPanes()
Gets the horizontal panes in a JSON array
|
String |
getVerticalPanes()
Gets the vertical panes in a JSON array
|
void addBorderLayout(org.apache.wicket.MarkupContainer container)
container.add(new SplitterBehavior("#vertical").setOption("panes", this.getVerticalPanes()).setOption("orientation", "'vertical'"));
container.add(new SplitterBehavior("#horizontal").setOption("panes", this.getHorizontalPanes()));
container - either a Page or a Panel.String getVerticalPanes()
String getHorizontalPanes()
Copyright © 2021 7thWeb. All rights reserved.