|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.gwtext.client.core.JsObject
com.gwtext.client.core.BaseConfig
com.gwtext.client.widgets.MessageBoxConfig
public class MessageBoxConfig
MessageBox configuration class.
MessageBox.show(MessageBoxConfig)| Field Summary |
|---|
| Fields inherited from class com.gwtext.client.core.JsObject |
|---|
jsObj |
| Constructor Summary | |
|---|---|
MessageBoxConfig()
|
|
| Method Summary | |
|---|---|
void |
setAnimEl(java.lang.String animEl)
An id from which the message box should animate as it opens and closes (defaults to undefined). |
void |
setButtons(boolean buttons)
False to not show any buttons. |
void |
setButtons(MessageBox.Button buttons)
The button to display. |
void |
setButtons(NameValuePair[] buttons)
name = button id, value = button label Name has to be one of 'ok, cancel, yes, no, and value is the label to be dispalyed |
void |
setCallback(MessageBox.PromptCallback cb)
A callback function to execute after closing the dialog. |
void |
setClosable(boolean closable)
False to hide the top-right close button (defaults to true). |
void |
setCls(java.lang.String cls)
A custom CSS class to apply to the message box element. |
void |
setDefaultTextHeight(int defaultTextHeight)
The default height in pixels of the message box's multiline textarea if displayed (defaults to 75). |
void |
setIconCls(java.lang.String iconCls)
A CSS class that provides a background image to be used as an icon for the dialog (e.g., Ext.MessageBox.WARNING or 'custom-class', defaults to ''). |
void |
setMaxWidth(int maxWidth)
The maximum width in pixels of the message box (defaults to 600). |
void |
setMinProgressWidth(int minProgressWidth)
The minimum width in pixels of the message box if it is a progress-style dialog. |
void |
setMinWidth(int minWidth)
The minimum width in pixels of the message box (defaults to 100). |
void |
setModal(boolean modal)
False to allow user interaction with the page while the message box is displayed (defaults to true). |
void |
setMsg(java.lang.String msg)
The string that will replace the existing message box body text (defaults to the XHTML-compliant non-breaking space character ' ') |
void |
setMultiline(boolean multiline)
True to prompt the user to enter multi-line text (defaults to false). |
void |
setProgress(boolean progress)
True to display a progress bar (defaults to false) |
void |
setProgressText(java.lang.String progressText)
The text to display inside the progress bar if progress = true (defaults to ''). |
void |
setPrompt(boolean prompt)
True to prompt the user to enter single-line text (defaults to false). |
void |
setProxyDrag(boolean proxyDrag)
True to display a lightweight proxy while dragging (defaults to false). |
void |
setTitle(java.lang.String title)
The title text. |
void |
setValue(java.lang.String value)
he string value to set into the active textbox element if displayed. |
void |
setWait(boolean wait)
True to display a progress bar (defaults to false). |
void |
setWaitConfig(WaitConfig waitConfig)
Applies a wait with the specified waitConfig object (applies only if wait = true). |
void |
setWidth(int width)
The width of the dialog in pixels. |
| Methods inherited from class com.gwtext.client.core.JsObject |
|---|
getJsObj, getProperties, isCreated, setJsObj |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MessageBoxConfig()
| Method Detail |
|---|
public void setAnimEl(java.lang.String animEl)
animEl - the anim elem IDpublic void setTitle(java.lang.String title)
title - the titlepublic void setClosable(boolean closable)
closable - true for closablepublic void setCls(java.lang.String cls)
cls - the css classpublic void setDefaultTextHeight(int defaultTextHeight)
defaultTextHeight - the default text heightpublic void setPrompt(boolean prompt)
prompt - true to promptpublic void setMultiline(boolean multiline)
multiline - true for multiline promptpublic void setProgress(boolean progress)
progress - true for progress barpublic void setProgressText(java.lang.String progressText)
progressText - the progress textpublic void setValue(java.lang.String value)
value - the value textpublic void setButtons(MessageBox.Button buttons)
buttons - the buttonspublic void setButtons(boolean buttons)
buttons - display buttonspublic void setCallback(MessageBox.PromptCallback cb)
cb - the callbackpublic void setButtons(NameValuePair[] buttons)
buttons - the nambe value pairs for the buttonspublic void setMsg(java.lang.String msg)
msg - the messagepublic void setIconCls(java.lang.String iconCls)
iconCls - the icon CSS classpublic void setProxyDrag(boolean proxyDrag)
proxyDrag - true for proxy dragpublic void setModal(boolean modal)
modal - false for non modalpublic void setMinWidth(int minWidth)
minWidth - the min widthpublic void setMaxWidth(int maxWidth)
maxWidth - the max widthpublic void setMinProgressWidth(int minProgressWidth)
minProgressWidth - the minimum width in pixels of the message box if it is a progress-style dialog.public void setWait(boolean wait)
wait - true to display progress barpublic void setWaitConfig(WaitConfig waitConfig)
waitConfig - the wait configpublic void setWidth(int width)
width - the dialog width
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||