/**
* This software is provided as IS by Antilia-Soft SL.
* Copyright 2006-2007.
*/
package com.antilia.demo;
import org.apache.wicket.markup.html.WebMarkupContainer;
import com.antilia.web.layout.FullPage;
import com.antilia.web.login.IProtectedPage;
/**
*
* @author Ernesto Reinaldo Barreiro (reiern70@gmail.com)
*
*/
public class Index extends FullPage implements IContainer, IProtectedPage {
private static final long serialVersionUID = 1L;
private WebMarkupContainer content;
private WebMarkupContainer body;
public Index() {
super();
body = new WebMarkupContainer("body");
body.setOutputMarkupId(true);
add(body);
content = new InitialPanel("content", this);
}
@Override
protected void onBeforeRender() {
super.onBeforeRender();
body.addOrReplace(content);
}
/**
* @return the content
*/
public WebMarkupContainer getContent() {
return content;
}
/**
* @param content the content to set
*/
public void setContent(WebMarkupContainer content) {
this.content = content;
body.addOrReplace(content);
}
/**
* @return the body
*/
public WebMarkupContainer getBody() {
return body;
}
}
|