|
||||||||||
| 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
org.wicketstuff.modalx.MessageBox
public class MessageBox
Class Name : MessageBox Diagram : Wicket Generic Modal Windows Project : Echobase framework Type : concrete Implements a simple way to communicate messages to users via a modal message box. It is designed to be used by calling the static show methods, not via the constructor directly. This class represents the body 'panel' of the message box. This code donated from the pagebloom project to the open source Modal X project.
| Field Summary | |
|---|---|
protected int |
buttonConfig
The button set to use - currently ignored will always just show OK. |
static int |
MB_OK
|
static int |
MB_OK_CANCEL
|
static int |
MB_YES_NO
|
static int |
MB_YES_NO_CANCEL
|
protected String |
message
NoDesc |
static int |
MR_NO
|
static int |
MR_YES
|
| Fields inherited from class org.wicketstuff.modalx.ModalFormPanel |
|---|
form, MR_CANCEL, 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 | |
|---|---|
MessageBox(ModalContentWindow iModalContentWindow,
String iMessage,
String iTitle,
int iButtonConfig,
IWindowCloseListener iWindowCloseListener)
Constructs the object |
|
| Method Summary | |
|---|---|
void |
addControlComponents()
Adds the button controls to the form. |
void |
addFormComponents()
Overridden in derived classes to add the form components. |
static int |
getDefaultWidth()
Returns defaultWidth |
static void |
setDefaultWidth(int iDefaultWidth)
Sets defaultWidth |
static MessageBox |
show(AjaxRequestTarget target,
String message)
Describe here |
static MessageBox |
show(AjaxRequestTarget target,
String message,
String title)
Describe here |
static MessageBox |
show(AjaxRequestTarget target,
String message,
String title,
int width,
int height)
Describe here |
static MessageBox |
show(AjaxRequestTarget target,
String message,
String title,
int width,
int height,
boolean autoHeight,
int buttonConfig,
IWindowCloseListener iWindowCloseListener)
Describe here |
static MessageBox |
showFixedHeight(AjaxRequestTarget target,
String message,
String title,
int width,
int height)
Describe here |
| Methods inherited from class org.wicketstuff.modalx.ModalFormPanel |
|---|
createForm, getModalResult, onCancel, setModalResult, show, updateModel |
| Methods inherited from class org.wicketstuff.modalx.ModalContentPanel |
|---|
closeModal, getInitialHeight, getInitialWidth, getTitle, getVariation, setInitialHeight, setInitialWidth, setTitle, setVariation |
| 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 MB_OK
public static final int MB_OK_CANCEL
public static final int MB_YES_NO
public static final int MB_YES_NO_CANCEL
public static final int MR_YES
public static final int MR_NO
protected transient String message
protected transient int buttonConfig
| Constructor Detail |
|---|
public MessageBox(ModalContentWindow iModalContentWindow,
String iMessage,
String iTitle,
int iButtonConfig,
IWindowCloseListener iWindowCloseListener)
| Method Detail |
|---|
public static void setDefaultWidth(int iDefaultWidth)
public static int getDefaultWidth()
public void addControlComponents()
addControlComponents in class ModalFormPanelpublic void addFormComponents()
addFormComponents in class ModalFormPanel
public static MessageBox showFixedHeight(AjaxRequestTarget target,
String message,
String title,
int width,
int height)
public static MessageBox show(AjaxRequestTarget target,
String message)
public static MessageBox show(AjaxRequestTarget target,
String message,
String title)
public static MessageBox show(AjaxRequestTarget target,
String message,
String title,
int width,
int height)
public static MessageBox show(AjaxRequestTarget target,
String message,
String title,
int width,
int height,
boolean autoHeight,
int buttonConfig,
IWindowCloseListener iWindowCloseListener)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||