Class ModalPanelCreator<F extends org.apache.wicket.markup.html.form.Form<String>,P extends org.apache.wicket.markup.html.panel.Panel>

java.lang.Object
org.jppf.admin.web.utils.ModalPanelCreator<F,P>
Type Parameters:
F - the type of the form to use.
P - the type of modal panel.

public class ModalPanelCreator<F extends org.apache.wicket.markup.html.form.Form<String>,P extends org.apache.wicket.markup.html.panel.Panel> extends Object
Helper class to dynamically instantiate modal panels.
Author:
Laurent Cohen
  • Constructor Details

    • ModalPanelCreator

      public ModalPanelCreator(F form, Class<P> panelClass)
      Parameters:
      form - the form to add to the panel.
      panelClass - the class of the panel to instantiate.
  • Method Details

    • createPanel

      public P createPanel(String id)
      Instantiates the panel class using a (String id, Form form) constructor.
      Parameters:
      id - component id (typically ModalDialog.CONTENT_ID).
      Returns:
      the created panel instance.