Index.java :  » OSGi » antilia » com » antilia » demo » Java Open Source

Java Open Source » OSGi » antilia 
antilia » com » antilia » demo » Index.java
/**
 * 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;
  }
  
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.