Java Doc for Messagebox.java in  » Ajax » zk » org » zkoss » zul » 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 » zk » org.zkoss.zul 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.zkoss.zul.Messagebox

Messagebox
public class Messagebox (Code)
Represents the message box.

You don't create Messagebox directly. Rather, use Messagebox.show .

A non-XUL extension.
author:
   tomyeh



Field Summary
final public static  intABORT
     A Abort button.
final public static  intCANCEL
     A Cancel button.
final public static  StringERROR
     A symbol consisting of a white X in a circle with a red background.
final public static  StringEXCLAMATION
     A symbol consisting of an exclamation point in a triangle with a yellow background.
final public static  intIGNORE
     A IGNORE button.
final public static  StringINFORMATION
     A symbol of a lowercase letter i in a circle.
final public static  intNO
     A No button.
final public static  StringNONE
     Contains no symbols.
final public static  intOK
     A OK button.
final public static  StringQUESTION
     A symbol consisting of a question mark in a circle.
final public static  intRETRY
     A Retry button.
final public static  intYES
     A Yes button.


Method Summary
public static  StringgetTemplate()
     Returns the template used to create the message dialog.
public static  voidsetTemplate(String uri)
     Sets the template used to create the message dialog.
final public static  intshow(String message, String title, int buttons, String icon)
     Shows a message box and returns what button is pressed.
Parameters:
  title - the title.
final public static  intshow(String message, String title, int buttons, String icon, int focus)
     Shows a message box and returns what button is pressed.
Parameters:
  title - the title.
final public static  intshow(String message)
     Shows a message box and returns what button is pressed.
final public static  intshow(int messageCode, Object[] args, int titleCode, int buttons, String icon)
     Shows a message box by specifying a message code, and returns what button is pressed.
Parameters:
  titleCode - the message code for the title.
final public static  intshow(int messageCode, Object[] args, int titleCode, int buttons, String icon, int focus)
     Shows a message box by specifying a message code, and returns what button is pressed.
Parameters:
  titleCode - the message code for the title.
final public static  intshow(int messageCode, Object arg, int titleCode, int buttons, String icon)
     Shows a message box by specifying a message code, and returns what button is pressed.
Parameters:
  titleCode - the message code for the title.
final public static  intshow(int messageCode, Object arg, int titleCode, int buttons, String icon, int focus)
     Shows a message box by specifying a message code, and returns what button is pressed.
Parameters:
  titleCode - the message code for the title.
final public static  intshow(int messageCode, int titleCode, int buttons, String icon)
     Shows a message box by specifying a message code, and returns what button is pressed.
Parameters:
  titleCode - the message code for the title.
final public static  intshow(int messageCode, int titleCode, int buttons, String icon, int focus)
     Shows a message box by specifying a message code, and returns what button is pressed.
Parameters:
  titleCode - the message code for the title.

Field Detail
ABORT
final public static int ABORT(Code)
A Abort button.



CANCEL
final public static int CANCEL(Code)
A Cancel button.



ERROR
final public static String ERROR(Code)
A symbol consisting of a white X in a circle with a red background.



EXCLAMATION
final public static String EXCLAMATION(Code)
A symbol consisting of an exclamation point in a triangle with a yellow background.



IGNORE
final public static int IGNORE(Code)
A IGNORE button.



INFORMATION
final public static String INFORMATION(Code)
A symbol of a lowercase letter i in a circle.



NO
final public static int NO(Code)
A No button.



NONE
final public static String NONE(Code)
Contains no symbols.



OK
final public static int OK(Code)
A OK button.



QUESTION
final public static String QUESTION(Code)
A symbol consisting of a question mark in a circle.



RETRY
final public static int RETRY(Code)
A Retry button.



YES
final public static int YES(Code)
A Yes button.





Method Detail
getTemplate
public static String getTemplate()(Code)
Returns the template used to create the message dialog.



setTemplate
public static void setTemplate(String uri)(Code)
Sets the template used to create the message dialog.

The template must follow the default template: ~./zul/html/messagebox.zul

In other words, just adjust the label and layout and don't change the component's ID.




show
final public static int show(String message, String title, int buttons, String icon) throws InterruptedException(Code)
Shows a message box and returns what button is pressed.
Parameters:
  title - the title. If null, WebApp.getAppName is used.
Parameters:
  buttons - a combination of Messagebox.OK, Messagebox.CANCEL,Messagebox.YES, Messagebox.NO, Messagebox.ABORT, Messagebox.RETRY,and Messagebox.IGNORE. If zero, Messagebox.OK is assumed
Parameters:
  icon - one of predefined images: Messagebox.QUESTION,Messagebox.EXCLAMATION, Messagebox.ERROR, Messagebox.NONE, or any URI ofan image. the button being pressed (one of Messagebox.OK, Messagebox.CANCEL,Messagebox.YES, Messagebox.NO, Messagebox.ABORT, Messagebox.RETRY,and Messagebox.IGNORE).



show
final public static int show(String message, String title, int buttons, String icon, int focus) throws InterruptedException(Code)
Shows a message box and returns what button is pressed.
Parameters:
  title - the title. If null, WebApp.getAppName is used.
Parameters:
  buttons - a combination of Messagebox.OK, Messagebox.CANCEL,Messagebox.YES, Messagebox.NO, Messagebox.ABORT, Messagebox.RETRY,and Messagebox.IGNORE. If zero, Messagebox.OK is assumed
Parameters:
  icon - one of predefined images: Messagebox.QUESTION,Messagebox.EXCLAMATION, Messagebox.ERROR, Messagebox.NONE, or any URI ofan image.
Parameters:
  focus - one of button to have to focus. If 0, the first buttonwill gain the focus. One of Messagebox.OK, Messagebox.CANCEL,Messagebox.YES, Messagebox.NO, Messagebox.ABORT, Messagebox.RETRY,and Messagebox.IGNORE. the button being pressed (one of Messagebox.OK, Messagebox.CANCEL,Messagebox.YES, Messagebox.NO, Messagebox.ABORT, Messagebox.RETRY,and Messagebox.IGNORE).
since:
   3.0.0



show
final public static int show(String message) throws InterruptedException(Code)
Shows a message box and returns what button is pressed. A shortcut to show(message, null, OK, INFORMATION).



show
final public static int show(int messageCode, Object[] args, int titleCode, int buttons, String icon) throws InterruptedException(Code)
Shows a message box by specifying a message code, and returns what button is pressed.
Parameters:
  titleCode - the message code for the title. If non-positive,the default title is used.



show
final public static int show(int messageCode, Object[] args, int titleCode, int buttons, String icon, int focus) throws InterruptedException(Code)
Shows a message box by specifying a message code, and returns what button is pressed.
Parameters:
  titleCode - the message code for the title. If non-positive,the default title is used.
Parameters:
  focus - one of button to have to focus. If 0, the first buttonwill gain the focus. One of Messagebox.OK, Messagebox.CANCEL,Messagebox.YES, Messagebox.NO, Messagebox.ABORT, Messagebox.RETRY,and Messagebox.IGNORE.
since:
   3.0.0



show
final public static int show(int messageCode, Object arg, int titleCode, int buttons, String icon) throws InterruptedException(Code)
Shows a message box by specifying a message code, and returns what button is pressed.
Parameters:
  titleCode - the message code for the title. If non-positive,the default title is used.



show
final public static int show(int messageCode, Object arg, int titleCode, int buttons, String icon, int focus) throws InterruptedException(Code)
Shows a message box by specifying a message code, and returns what button is pressed.
Parameters:
  titleCode - the message code for the title. If non-positive,the default title is used.
Parameters:
  focus - one of button to have to focus. If 0, the first buttonwill gain the focus. One of Messagebox.OK, Messagebox.CANCEL,Messagebox.YES, Messagebox.NO, Messagebox.ABORT, Messagebox.RETRY,and Messagebox.IGNORE.
since:
   3.0.0



show
final public static int show(int messageCode, int titleCode, int buttons, String icon) throws InterruptedException(Code)
Shows a message box by specifying a message code, and returns what button is pressed.
Parameters:
  titleCode - the message code for the title. If non-positive,the default title is used.



show
final public static int show(int messageCode, int titleCode, int buttons, String icon, int focus) throws InterruptedException(Code)
Shows a message box by specifying a message code, and returns what button is pressed.
Parameters:
  titleCode - the message code for the title. If non-positive,the default title is used.
Parameters:
  focus - one of button to have to focus. If 0, the first buttonwill gain the focus. One of Messagebox.OK, Messagebox.CANCEL,Messagebox.YES, Messagebox.NO, Messagebox.ABORT, Messagebox.RETRY,and Messagebox.IGNORE.
since:
   3.0.0



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.