|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.Component
org.apache.wicket.MarkupContainer
org.apache.wicket.markup.html.WebMarkupContainer
org.apache.wicket.markup.html.panel.Panel
org.wicketstuff.modalx.ModalContentPanel
org.wicketstuff.modalx.ModalFormPanel
public class ModalFormPanel
Class Name : ModalFormPanel Diagram : Wicket Generic Modal Windows Project : Echobase framework Type : concrete Base class for all modal content panels that contain a form.
| Field Summary | |
|---|---|
protected Form<?> |
form
|
static int |
MR_CANCEL
|
static int |
MR_OK
|
| Fields inherited from class org.wicketstuff.modalx.ModalContentPanel |
|---|
modalContentWindow, windowCloseListener |
| Fields inherited from class org.apache.wicket.markup.html.panel.Panel |
|---|
PANEL |
| Fields inherited from class org.apache.wicket.Component |
|---|
ENABLE, FLAG_INITIALIZED, FLAG_REMOVING_FROM_HIERARCHY, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED8, PARENT_PATH, PATH_SEPARATOR, RENDER |
| Constructor Summary | |
|---|---|
ModalFormPanel(ModalContentWindow iModalContentWindow,
IWindowCloseListener iWindowCloseListener)
Constructs the object passing in a IWindowClosedListener (which can be null if parent is not interested in being notified when the child form is closed). |
|
| Method Summary | |
|---|---|
void |
addControlComponents()
Adds the button controls to the form. |
void |
addFormComponents()
Overridden in derived classes to add the form components. |
Form<?> |
createForm()
Creates a Form object. |
int |
getModalResult()
Returns modalResult |
void |
onCancel(AjaxRequestTarget target)
Closes the modal window. |
void |
setModalResult(int modalResult)
Sets modalResult |
void |
show(AjaxRequestTarget target)
Get the ModalContentWindow to show this ModalContentPanel. |
void |
updateModel()
Called after form submission with successful validation to update the domain model with data from the form components. |
| Methods inherited from class org.wicketstuff.modalx.ModalContentPanel |
|---|
closeModal, createModalVisit, getInitialHeight, getInitialWidth, getTitle, setInitialHeight, setInitialWidth, setTitle |
| Methods inherited from class org.apache.wicket.markup.html.panel.Panel |
|---|
newMarkupSourcingStrategy |
| Methods inherited from class org.apache.wicket.markup.html.WebMarkupContainer |
|---|
getWebPage, getWebRequest, getWebResponse, getWebSession |
| Methods inherited from class org.apache.wicket.MarkupContainer |
|---|
add, addOrReplace, autoAdd, contains, get, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, internalAdd, internalInitialize, iterator, iterator, onAfterRenderChildren, onComponentTagBody, onRender, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, swap, toString, toString, visitChildren, visitChildren, visitChildren, visitChildren |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int MR_OK
public static final int MR_CANCEL
protected Form<?> form
| Constructor Detail |
|---|
public ModalFormPanel(ModalContentWindow iModalContentWindow,
IWindowCloseListener iWindowCloseListener)
| Method Detail |
|---|
public void addControlComponents()
public void setModalResult(int modalResult)
public int getModalResult()
public void updateModel()
public void show(AjaxRequestTarget target)
show in class ModalContentPanelpublic void addFormComponents()
public void onCancel(AjaxRequestTarget target)
public Form<?> createForm()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||