Java Doc for MessageBox.java in  » Ajax » gwtext-2.01 » com » gwtext » client » widgets » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Ajax » gwtext 2.01 » com.gwtext.client.widgets 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.gwtext.client.widgets.MessageBox

MessageBox
public class MessageBox (Code)
Utility class for generating different styles of message boxes.

Note that the MessageBox is asynchronous. Unlike a regular JavaScript alert (which will halt browser execution), showing a MessageBox will not cause the code to stop. For this reason, if you have code that should only run after some user feedback from the MessageBox, you must use a callback function.

Inner Class :abstract public static class Button extends JsObject
Inner Class :public static interface AlertCallback
Inner Class :public static interface ConfirmCallback
Inner Class :public static interface PromptCallback

Field Summary
public static  ButtonCANCEL
    
public static  StringERROR
    
public static  StringINFO
    
public static  ButtonOK
    
public static  ButtonOKCANCEL
    
public static  StringQUESTION
    
public static  StringWARNING
    
public static  ButtonYESNO
    
public static  ButtonYESNOCANCEL
    


Method Summary
public static  voidalert(String message)
     Displays a standard read-only message box with an OK button (comparable to the basic JavaScript Window.alert).
native public static  voidalert(String title, String message)
     Displays a standard read-only message box with an OK button (comparable to the basic JavaScript Window.alert).
native public static  voidalert(String title, String message, AlertCallback cb)
     Displays a standard read-only message box with an OK button (comparable to the basic JavaScript Window.alert).
native public static  voidconfirm(String title, String message)
     Displays a confirmation message box with Yes and No buttons (comparable to JavaScript's Window.confirm).
native public static  voidconfirm(String title, String message, ConfirmCallback cb)
     Displays a confirmation message box with Yes and No buttons (comparable to JavaScript's Window.confirm).
native public static  WindowgetDialog()
     Returns a reference to the underlying Window element.
native public static  voidhide()
     Hides the message box if it is displayed.
native public static  booleanisVisible()
     Returns true if the message box is currently displayed.
native public static  voidprogress(String title, String message)
     Displays a message box with a progress bar.
native public static  voidprompt(String title, String message)
     Displays a message box with OK and Cancel buttons prompting the user to enter some text (comparable to JavaScript's Window.prompt). The prompt can be a single-line or multi-line textbox.
native public static  voidprompt(String title, String message, PromptCallback cb)
     Displays a message box with OK and Cancel buttons prompting the user to enter some text (comparable to JavaScript's Window.prompt). The prompt can be a single-line or multi-line textbox.
native public static  voidprompt(String title, String message, PromptCallback cb, boolean multiline)
     Displays a message box with OK and Cancel buttons prompting the user to enter some text (comparable to JavaScript's Window.prompt). The prompt can be a single-line or multi-line textbox.
native public static  voidsetDefaultTextHeight(int height)
     The default height in pixels of the message box's multiline textarea if displayed (defaults to 75).
native public static  voidsetIconCls(String iconCls)
     Adds the specified icon to the dialog.
native public static  voidsetMaxWidth(int width)
     The maximum width in pixels of the message box (defaults to 600).
native public static  voidsetMinProgressWidth(int minProgressWidth)
     The minimum width in pixels of the message box if it is a progress-style dialog.
native public static  voidsetMinWidth(int minWidth)
     The minimum width in pixels of the message box (defaults to 100).
native public static  voidshow(MessageBoxConfig config)
     Displays a new message box, or reinitializes an existing message box, based on the config options passed in.
native public static  voidupdateProgress(int percentage)
     Updates a progress-style message box's text and progress bar.
native public static  voidupdateProgress(int percentage, String message)
     Updates a progress-style message box's text and progress bar.
native public static  voidupdateText(String message)
     Updates the message box body text.
native public static  voidwait(String message)
     Displays a message box with an infinitely auto-updating progress bar.
native public static  voidwait(String message, String title)
     Displays a message box with an infinitely auto-updating progress bar.

Field Detail
CANCEL
public static Button CANCEL(Code)



ERROR
public static String ERROR(Code)



INFO
public static String INFO(Code)



OK
public static Button OK(Code)



OKCANCEL
public static Button OKCANCEL(Code)



QUESTION
public static String QUESTION(Code)



WARNING
public static String WARNING(Code)



YESNO
public static Button YESNO(Code)



YESNOCANCEL
public static Button YESNOCANCEL(Code)





Method Detail
alert
public static void alert(String message)(Code)
Displays a standard read-only message box with an OK button (comparable to the basic JavaScript Window.alert).
Parameters:
  message - the message



alert
native public static void alert(String title, String message)(Code)
Displays a standard read-only message box with an OK button (comparable to the basic JavaScript Window.alert).
Parameters:
  title - the title
Parameters:
  message - the message



alert
native public static void alert(String title, String message, AlertCallback cb)(Code)
Displays a standard read-only message box with an OK button (comparable to the basic JavaScript Window.alert). If a callback function is passed it will be called after the user clicks the button, and the id of the button that was clicked will be passed as the only parameter to the callback (could also be the top-right close button).
Parameters:
  title - the title
Parameters:
  message - the message
Parameters:
  cb - the callback function



confirm
native public static void confirm(String title, String message)(Code)
Displays a confirmation message box with Yes and No buttons (comparable to JavaScript's Window.confirm).
Parameters:
  title - the title
Parameters:
  message - the message



confirm
native public static void confirm(String title, String message, ConfirmCallback cb)(Code)
Displays a confirmation message box with Yes and No buttons (comparable to JavaScript's Window.confirm). If a callback function is passed it will be called after the user clicks either button, and the id of the button that was clicked will be passed as the only parameter to the callback (could also be the top-right close button).
Parameters:
  title - the title
Parameters:
  message - the message
Parameters:
  cb - the callback function



getDialog
native public static Window getDialog()(Code)
Returns a reference to the underlying Window element. the window



hide
native public static void hide()(Code)
Hides the message box if it is displayed.



isVisible
native public static boolean isVisible()(Code)
Returns true if the message box is currently displayed. true if visible



progress
native public static void progress(String title, String message)(Code)
Displays a message box with a progress bar. This message box has no buttons and is not closeable by the user. You are responsible for updating the progress bar as needed MessageBox.updateProgress and closing the message box when the process is complete.
Parameters:
  title - the title
Parameters:
  message - the message



prompt
native public static void prompt(String title, String message)(Code)
Displays a message box with OK and Cancel buttons prompting the user to enter some text (comparable to JavaScript's Window.prompt). The prompt can be a single-line or multi-line textbox. If a callback function is passed it will be called after the user clicks either button, and the id of the button that was clicked (could also be the top-right close button) and the text that was entered will be passed as the two parameters to the callback.
Parameters:
  title - the title
Parameters:
  message - the message



prompt
native public static void prompt(String title, String message, PromptCallback cb)(Code)
Displays a message box with OK and Cancel buttons prompting the user to enter some text (comparable to JavaScript's Window.prompt). The prompt can be a single-line or multi-line textbox. If a callback function is passed it will be called after the user clicks either button, and the id of the button that was clicked (could also be the top-right close button) and the text that was entered will be passed as the two parameters to the callback.
Parameters:
  title - the title
Parameters:
  message - the message
Parameters:
  cb - the prompt callback



prompt
native public static void prompt(String title, String message, PromptCallback cb, boolean multiline)(Code)
Displays a message box with OK and Cancel buttons prompting the user to enter some text (comparable to JavaScript's Window.prompt). The prompt can be a single-line or multi-line textbox. If a callback function is passed it will be called after the user clicks either button, and the id of the button that was clicked (could also be the top-right close button) and the text that was entered will be passed as the two parameters to the callback.
Parameters:
  title - the title
Parameters:
  message - the message
Parameters:
  multiline - true for multiline
Parameters:
  cb - the prompt callback



setDefaultTextHeight
native public static void setDefaultTextHeight(int height)(Code)
The default height in pixels of the message box's multiline textarea if displayed (defaults to 75).
Parameters:
  height - the default height



setIconCls
native public static void setIconCls(String iconCls)(Code)
Adds the specified icon to the dialog. By default, the class 'ext-mb-icon' is applied for default styling, and the class passed in is expected to supply the background image url. Pass in empty string ('') to clear any existing icon. The following built-in icon classes are supported, but you can also pass in a custom class name:
 MessageBox.INFO
 MessageBox.WARNING
 MessageBox.QUESTION
 MessageBox.ERROR
 

Parameters:
  iconCls - a CSS classname specifying the icon's background image url, or empty string to clear the icon



setMaxWidth
native public static void setMaxWidth(int width)(Code)
The maximum width in pixels of the message box (defaults to 600).
Parameters:
  width - the max width



setMinProgressWidth
native public static void setMinProgressWidth(int minProgressWidth)(Code)
The minimum width in pixels of the message box if it is a progress-style dialog. This is useful for setting a different minimum width than text-only dialogs may need (defaults to 250).
Parameters:
  minProgressWidth - the min progress width



setMinWidth
native public static void setMinWidth(int minWidth)(Code)
The minimum width in pixels of the message box (defaults to 100).
Parameters:
  minWidth - the min width



show
native public static void show(MessageBoxConfig config)(Code)
Displays a new message box, or reinitializes an existing message box, based on the config options passed in.
Parameters:
  config - the message box config



updateProgress
native public static void updateProgress(int percentage)(Code)
Updates a progress-style message box's text and progress bar. Only relevant on message boxes initiated via MessageBox.progress(String,String) or by calling MessageBox.show with progress config value true.
Parameters:
  percentage - the progress percentage



updateProgress
native public static void updateProgress(int percentage, String message)(Code)
Updates a progress-style message box's text and progress bar. Only relevant on message boxes initiated via MessageBox.progress(String,String) or by calling MessageBox.show with progress config value true.
Parameters:
  percentage - the progress percentage
Parameters:
  message - the progress message



updateText
native public static void updateText(String message)(Code)
Updates the message box body text.
Parameters:
  message - Replaces the message box element's innerHTML with the specified string (defaults to the XHTML-compliant non-breaking space character ' ')



wait
native public static void wait(String message)(Code)
Displays a message box with an infinitely auto-updating progress bar. This can be used to block user interaction while waiting for a long-running process to complete that does not have defined intervals. You are responsible for closing the message box when the process is complete.
Parameters:
  message - the wait message



wait
native public static void wait(String message, String title)(Code)
Displays a message box with an infinitely auto-updating progress bar. This can be used to block user interaction while waiting for a long-running process to complete that does not have defined intervals. You are responsible for closing the message box when the process is complete.
Parameters:
  message - the wait message
Parameters:
  title - the title



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.