Click
Click Examples

Source Viewer : WEB-INF/classes/org/apache/click/examples/page/panel/ReusablePanelDemo.java

package org.apache.click.examples.page.panel;

import org.apache.click.examples.control.ClientPanel;
import org.apache.click.examples.page.BorderPage;

/**
 * Provides example usage of a reusable ClientPanel, which contains a Form for
 * capturing Client details.
 */
public class ReusablePanelDemo extends BorderPage {

    private static final long serialVersionUID = 1L;

    private ClientPanel clientPanel = new ClientPanel("panel");

    @Override
    public void onInit() {
        // Invoke super onInit implementation
        super.onInit();

        // Add customer panel to Page
        addControl(clientPanel);
    }

}