Package org.jppf.admin.web.utils
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreatePanel(String id) Instantiates the panel class using a (String id, Form form) constructor.
-
Constructor Details
-
ModalPanelCreator
- Parameters:
form- the form to add to the panel.panelClass- the class of the panel to instantiate.
-
-
Method Details
-
createPanel
Instantiates the panel class using a (String id, Form form) constructor.- Parameters:
id- component id (typically ModalDialog.CONTENT_ID).- Returns:
- the created panel instance.
-