Package org.odlabs.wiquery.plugin.layout.test

Source Code of org.odlabs.wiquery.plugin.layout.test.OnDivTestPage

package org.odlabs.wiquery.plugin.layout.test;

import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.html.panel.Panel;
import org.odlabs.wiquery.plugin.layout.Layout;


/**
*
* @author Ernesto Reinaldo Barreiro (reiern70@gmail.com)
*
*/
public class OnDivTestPage extends WebPage {

  private static final long serialVersionUID = 1L;


    public OnDivTestPage() {
      add(new Layout("layout", false) {
       
        private static final long serialVersionUID = 1L;

      @Override
        public Panel getLayoutCenterComponent(String wicketId) {
          return new LabelPanel(wicketId, "Center");
        }
       
      @Override
      public Panel getLayoutWestComponent(String wicketId) {
        return new LabelPanel(wicketId, "West");
      }
     
      @Override
      public Panel getLayoutNorthComponent(String wicketId) {
        return new LabelPanel(wicketId, "North");
      }
     
      @Override
      public Panel getLayoutEastComponent(String wicketId) {
        return new LabelPanel(wicketId, "East");
      }
     
      @Override
      public Panel getLayoutSouthComponent(String wicketId) {
        return new LabelPanel(wicketId, "South");
      }
       
      });
    }
   
}
TOP

Related Classes of org.odlabs.wiquery.plugin.layout.test.OnDivTestPage

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.