Java Doc for I18nOptionPane.java in  » Report » iReport-2.0.5 » it » businesslogic » ireport » util » 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 » Report » iReport 2.0.5 » it.businesslogic.ireport.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   it.businesslogic.ireport.util.I18nOptionPane

I18nOptionPane
public class I18nOptionPane (Code)
A internacionalization support for all static methods of JOptionPane.
author:
   Egon




Method Summary
public static  intshowConfirmDialog(Component parentComponent, String messageCID)
     Brings up a dialog with the options Yes, No and Cancel; with the title, Select an Option.
public static  intshowConfirmDialog(Component parentComponent, String messageCID, String titleCID, int optionType)
     Brings up a dialog where the number of choices is determined by the optionType parameter.
public static  intshowConfirmDialog(Component parentComponent, String messageCID, String titleCID, int optionType, int messageType)
     Brings up a dialog where the number of choices is determined by the optionType parameter, where the messageType parameter determines the icon to display.
public static  intshowConfirmDialog(Component parentComponent, String messageCID, String titleCID, int optionType, int messageType, Icon icon)
     Brings up a dialog with a specified icon, where the number of choices is determined by the optionType parameter.
public static  StringshowInputDialog(String messageCID)
     Shows a question-message dialog requesting input from the user.
public static  StringshowInputDialog(String messageCID, String initialSelectionCIDValue)
     Shows a question-message dialog requesting input from the user, with the input value initialized to initialSelectionValue.
public static  StringshowInputDialog(Component parentComponent, String messageCID)
     Shows a question-message dialog requesting input from the user parented to parentComponent.
public static  StringshowInputDialog(Component parentComponent, String messageCID, String initialSelectionCIDValue)
     Shows a question-message dialog requesting input from the user and parented to parentComponent.
public static  StringshowInputDialog(Component parentComponent, String messageCID, String titleCID, int messageType)
     Shows a dialog requesting input from the user parented to parentComponent with the dialog having the title title and message type messageType.
public static  StringshowInputDialog(Component parentComponent, String messageCID, String titleCID, int messageType, Icon icon, String[] selectionCIDValues, String initialSelectionCIDValue)
     Prompts the user for input in a blocking dialog where the initial selection, possible selections, and all other options can be specified.
public static  intshowInternalConfirmDialog(Component parentComponent, String messageCID)
     Brings up an internal dialog panel with the options Yes, No and Cancel; with the title, Select an Option.
public static  intshowInternalConfirmDialog(Component parentComponent, String messageCID, String titleCID, int optionType)
     Brings up a internal dialog panel where the number of choices is determined by the optionType parameter.
public static  intshowInternalConfirmDialog(Component parentComponent, String messageCID, String titleCID, int optionType, int messageType)
     Brings up an internal dialog panel where the number of choices is determined by the optionType parameter, where the messageType parameter determines the icon to display.
public static  intshowInternalConfirmDialog(Component parentComponent, String messageCID, String titleCID, int optionType, int messageType, Icon icon)
     Brings up an internal dialog panel with a specified icon, where the number of choices is determined by the optionType parameter.
public static  StringshowInternalInputDialog(Component parentComponent, String messageCID)
     Shows an internal question-message dialog requesting input from the user parented to parentComponent.
public static  StringshowInternalInputDialog(Component parentComponent, String messageCID, String titleCID, int messageType, Icon icon, String[] selectionCIDValues, String initialSelectionCIDValue)
     Prompts the user for input in a blocking internal dialog where the initial selection, possible selections, and all other options can be specified.
public static  StringshowInternalInputDialog(Component parentComponent, String messageCID, String titleCID, int messageType)
     Shows an internal dialog requesting input from the user parented to parentComponent with the dialog having the title title and message type messageType.
public static  voidshowInternalMessageDialog(Component parentComponent, String messageCID)
     Brings up an internal confirmation dialog panel.
public static  voidshowInternalMessageDialog(Component parentComponent, String messageCID, String titleCID, int messageType)
     Brings up an internal dialog panel that displays a message using a default icon determined by the messageType parameter.
public static  voidshowInternalMessageDialog(Component parentComponent, String messageCID, String titleCID, int messageType, Icon icon)
     Brings up a dialog displaying a message, specifying all parameters.
public static  intshowInternalOptionDialog(Component parentComponent, String messageCID, String titleCID, int optionType, int messageType, Icon icon, String[] optionsCID, String initialCIDValue)
     Brings up an internal dialog panel with a specified icon, where the initial choice is determined by the initialValue parameter and the number of choices is determined by the optionType parameter.
public static  voidshowMessageDialog(Component parentComponent, String messageCID)
     Brings up an information-message dialog titled with the message associated with the Country ID resource bundle.
public static  voidshowMessageDialog(Component parentComponent, String messageCID, String titleCID, int messageType)
     Brings up a dialog that displays a message using a default icon determined by the messageType parameter.
public static  voidshowMessageDialog(Component parentComponent, String messageCID, String titleCID, int messageType, Icon icon)
     Brings up a dialog displaying a message, specifying all parameters.
public static  intshowOptionDialog(Component parentComponent, String messageCID, String titleCID, int optionType, int messageType, Icon icon, String[] optionsCID, String initialCIDValue)
     Brings up a dialog with a specified icon, where the initial choice is determined by the initialValue parameter and the number of choices is determined by the optionType parameter.
public static  intshowOptionDialog(Component parentComponent, String messageCID, String titleCID, int optionType, int messageType, Icon icon, String[] optionsCID, String initialCIDValue, String firstLine)
     Brings up a dialog with a specified icon, where the initial choice is determined by the initialValue parameter and the number of choices is determined by the optionType parameter.



Method Detail
showConfirmDialog
public static int showConfirmDialog(Component parentComponent, String messageCID)(Code)
Brings up a dialog with the options Yes, No and Cancel; with the title, Select an Option.
Parameters:
  parentComponent - determines the Frame in which the dialog is displayed; if null, or if the parentComponent has no Frame, a default Frame is used
Parameters:
  messageCID - message country identification for a message to be displayed.



showConfirmDialog
public static int showConfirmDialog(Component parentComponent, String messageCID, String titleCID, int optionType)(Code)
Brings up a dialog where the number of choices is determined by the optionType parameter.
Parameters:
  parentComponent - determines the Frame in which the dialog is displayed; if null, or if the parentComponent has no Frame, a default Frame is used
Parameters:
  messageCID - message country identification for a message to be displayed.
Parameters:
  titleCID - message country identification for the String to display in the dialog title bar
Parameters:
  optionType - an int designating the options available on the dialog: YES_NO_OPTION, or YES_NO_CANCEL_OPTION



showConfirmDialog
public static int showConfirmDialog(Component parentComponent, String messageCID, String titleCID, int optionType, int messageType)(Code)
Brings up a dialog where the number of choices is determined by the optionType parameter, where the messageType parameter determines the icon to display. The messageType parameter is primarily used to supply a default icon from the Look and Feel.
Parameters:
  parentComponent - determines the Frame in which the dialog is displayed; if null, or if the parentComponent has no Frame, a default Frame is used
Parameters:
  messageCID - message country identification for a message to be displayed.
Parameters:
  titleCID - message country identification for the String to display in the dialog title bar
Parameters:
  optionType - an int designating the options available on the dialog: YES_NO_OPTION, or YES_NO_CANCEL_OPTION
Parameters:
  messageType - an integer designating the kind of message this is, primarily used to determine the icon from the pluggable Look and Feel: ERROR_MESSAGE, INFORMATION_MESSAGE, WARNING_MESSAGE, QUESTION_MESSAGE, or PLAIN_MESSAGE



showConfirmDialog
public static int showConfirmDialog(Component parentComponent, String messageCID, String titleCID, int optionType, int messageType, Icon icon)(Code)
Brings up a dialog with a specified icon, where the number of choices is determined by the optionType parameter. The messageType parameter is primarily used to supply a default icon from the look and feel.
Parameters:
  parentComponent - determines the Frame in which the dialog is displayed; if null, or if the parentComponent has no Frame, a default Frame is used
Parameters:
  messageCID - message country identification for a message to be displayed.
Parameters:
  titleCID - message country identification for the String to display in the dialog title bar
Parameters:
  optionType - an int designating the options available on the dialog: YES_NO_OPTION, or YES_NO_CANCEL_OPTION
Parameters:
  messageType - an integer designating the kind of message this is, primarily used to determine the icon from the pluggable Look and Feel: ERROR_MESSAGE, INFORMATION_MESSAGE, WARNING_MESSAGE, QUESTION_MESSAGE, or PLAIN_MESSAGE
Parameters:
  icon - the icon to display in the dialog



showInputDialog
public static String showInputDialog(String messageCID)(Code)
Shows a question-message dialog requesting input from the user. The dialog uses the default frame, which usually means it is centered on the screen.
Parameters:
  messageCID - message country identification for a message to be displayed.



showInputDialog
public static String showInputDialog(String messageCID, String initialSelectionCIDValue)(Code)
Shows a question-message dialog requesting input from the user, with the input value initialized to initialSelectionValue. The dialog uses the default frame, which usually means it is centered on the screen.
Parameters:
  messageCID - message country identification for a message to be displayed.
Parameters:
  initialSelectionCIDValue - message country identification for the value used to initialize the input field.



showInputDialog
public static String showInputDialog(Component parentComponent, String messageCID)(Code)
Shows a question-message dialog requesting input from the user parented to parentComponent. The dialog is displayed on top of the Component's frame, and is usually positioned below the Component.
Parameters:
  messageCID - message country identification for a message to be displayed.
Parameters:
  parentComponent - the parent Component for the dialog



showInputDialog
public static String showInputDialog(Component parentComponent, String messageCID, String initialSelectionCIDValue)(Code)
Shows a question-message dialog requesting input from the user and parented to parentComponent. The input value will be initialized to initialSelectionValue. The dialog is displayed on top of the Component's frame, and is usually positioned below the Component.
Parameters:
  parentComponent - the parent Component for the dialog
Parameters:
  messageCID - message country identification for a message to be displayed.
Parameters:
  initialSelectionCIDValue - message country identification for the value used to initialize the input field.



showInputDialog
public static String showInputDialog(Component parentComponent, String messageCID, String titleCID, int messageType)(Code)
Shows a dialog requesting input from the user parented to parentComponent with the dialog having the title title and message type messageType.
Parameters:
  parentComponent - the parent Component for the dialog
Parameters:
  messageCID - message country identification for a message to be displayed.
Parameters:
  titleCID - message country identification for the String to display in the dialog title bar
Parameters:
  messageType - the type of message that is to be displayed: ERROR_MESSAGE, INFORMATION_MESSAGE, WARNING_MESSAGE, QUESTION_MESSAGE, or PLAIN_MESSAGE



showInputDialog
public static String showInputDialog(Component parentComponent, String messageCID, String titleCID, int messageType, Icon icon, String[] selectionCIDValues, String initialSelectionCIDValue)(Code)
Prompts the user for input in a blocking dialog where the initial selection, possible selections, and all other options can be specified. The user will able to choose from selectionValues, where null implies the user can input whatever they wish, usually by means of a JTextField. initialSelectionValue is the initial value to prompt the user with. It is up to the UI to decide how best to represent the selectionValues, but usually a JComboBox, JList, or JTextField will be used.
Parameters:
  parentComponent - the parent Component for the dialog
Parameters:
  messageCID - message country identification for a message to be displayed.
Parameters:
  titleCID - message country identification for the String to display in the dialog title bar
Parameters:
  messageType - the type of message that is to be displayed: ERROR_MESSAGE, INFORMATION_MESSAGE, WARNING_MESSAGE, QUESTION_MESSAGE, or PLAIN_MESSAGE
Parameters:
  icon - the Icon image to display
Parameters:
  selectionCIDValues - message country identifications for an array of strings that gives the possible selections
Parameters:
  initialSelectionCIDValue - message country identification for the value used to initialize the input field.



showInternalConfirmDialog
public static int showInternalConfirmDialog(Component parentComponent, String messageCID)(Code)
Brings up an internal dialog panel with the options Yes, No and Cancel; with the title, Select an Option.
Parameters:
  parentComponent - determines the Frame in which the dialog is displayed; if null, or if the parentComponent has no Frame, a default Frame is used
Parameters:
  messageCID - message country identification for a message to be displayed.



showInternalConfirmDialog
public static int showInternalConfirmDialog(Component parentComponent, String messageCID, String titleCID, int optionType)(Code)
Brings up a internal dialog panel where the number of choices is determined by the optionType parameter.
Parameters:
  parentComponent - determines the Frame in which the dialog is displayed; if null, or if the parentComponent has no Frame, a default Frame is used
Parameters:
  messageCID - message country identification for a message to be displayed.
Parameters:
  titleCID - message country identification for the String to display in the dialog title bar
Parameters:
  optionType - an int designating the options available on the dialog: YES_NO_OPTION, or YES_NO_CANCEL_OPTION



showInternalConfirmDialog
public static int showInternalConfirmDialog(Component parentComponent, String messageCID, String titleCID, int optionType, int messageType)(Code)
Brings up an internal dialog panel where the number of choices is determined by the optionType parameter, where the messageType parameter determines the icon to display. The messageType parameter is primarily used to supply a default icon from the Look and Feel.
Parameters:
  parentComponent - determines the Frame in which the dialog is displayed; if null, or if the parentComponent has no Frame, a default Frame is used
Parameters:
  messageCID - message country identification for a message to be displayed.
Parameters:
  titleCID - message country identification for the String to display in the dialog title bar
Parameters:
  optionType - an int designating the options available on the dialog: YES_NO_OPTION, or YES_NO_CANCEL_OPTION
Parameters:
  messageType - an integer designating the kind of message this is, primarily used to determine the icon from the pluggable Look and Feel: ERROR_MESSAGE, INFORMATION_MESSAGE, WARNING_MESSAGE, QUESTION_MESSAGE, or PLAIN_MESSAGE



showInternalConfirmDialog
public static int showInternalConfirmDialog(Component parentComponent, String messageCID, String titleCID, int optionType, int messageType, Icon icon)(Code)
Brings up an internal dialog panel with a specified icon, where the number of choices is determined by the optionType parameter. The messageType parameter is primarily used to supply a default icon from the look and feel.
Parameters:
  parentComponent - determines the Frame in which the dialog is displayed; if null, or if the parentComponent has no Frame, a default Frame is used
Parameters:
  messageCID - message country identification for a message to be displayed.
Parameters:
  titleCID - message country identification for the String to display in the dialog title bar
Parameters:
  optionType - an int designating the options available on the dialog: YES_NO_OPTION, or YES_NO_CANCEL_OPTION
Parameters:
  messageType - an integer designating the kind of message this is, primarily used to determine the icon from the pluggable Look and Feel: ERROR_MESSAGE, INFORMATION_MESSAGE, WARNING_MESSAGE, QUESTION_MESSAGE, or PLAIN_MESSAGE
Parameters:
  icon - the icon to display in the dialog



showInternalInputDialog
public static String showInternalInputDialog(Component parentComponent, String messageCID)(Code)
Shows an internal question-message dialog requesting input from the user parented to parentComponent. The dialog is displayed in the Component's frame, and is usually positioned below the Component.
Parameters:
  parentComponent - determines the Frame in which the dialog is displayed; if null, or if the parentComponent has no Frame, a default Frame is used
Parameters:
  messageCID - message country identification for a message to be displayed.



showInternalInputDialog
public static String showInternalInputDialog(Component parentComponent, String messageCID, String titleCID, int messageType, Icon icon, String[] selectionCIDValues, String initialSelectionCIDValue)(Code)
Prompts the user for input in a blocking internal dialog where the initial selection, possible selections, and all other options can be specified. The user will able to choose from selectionValues, where null implies the user can input whatever they wish, usually by means of a JTextField. initialSelectionValue is the initial value to prompt the user with. It is up to the UI to decide how best to represent the selectionValues, but usually a JComboBox, JList, or JTextField will be used.
Parameters:
  parentComponent - the parent Component for the dialog
Parameters:
  messageCID - message country identification for a message to be displayed.
Parameters:
  titleCID - message country identification for the String to display in the dialog title bar
Parameters:
  messageType - the type of message that is to be displayed: ERROR_MESSAGE, INFORMATION_MESSAGE, WARNING_MESSAGE, QUESTION_MESSAGE, or PLAIN_MESSAGE
Parameters:
  icon - the Icon image to display
Parameters:
  selectionCIDValues - message country identifications for an array of strings that gives the possible selections
Parameters:
  initialSelectionCIDValue - message country identification for the value used to initialize the input field.



showInternalInputDialog
public static String showInternalInputDialog(Component parentComponent, String messageCID, String titleCID, int messageType)(Code)
Shows an internal dialog requesting input from the user parented to parentComponent with the dialog having the title title and message type messageType.
Parameters:
  parentComponent - the parent Component for the dialog
Parameters:
  messageCID - message country identification for a message to be displayed.
Parameters:
  titleCID - message country identification for the String to display in the dialog title bar
Parameters:
  messageType - the type of message that is to be displayed: ERROR_MESSAGE, INFORMATION_MESSAGE, WARNING_MESSAGE, QUESTION_MESSAGE, or PLAIN_MESSAGE



showInternalMessageDialog
public static void showInternalMessageDialog(Component parentComponent, String messageCID)(Code)
Brings up an internal confirmation dialog panel. The dialog is a information-message dialog titled "Message".
Parameters:
  parentComponent - determines the Frame in which the dialog is displayed; if null, or if the parentComponent has no Frame, a default Frame is used
Parameters:
  messageCID - message country identification for a message to be displayed.



showInternalMessageDialog
public static void showInternalMessageDialog(Component parentComponent, String messageCID, String titleCID, int messageType)(Code)
Brings up an internal dialog panel that displays a message using a default icon determined by the messageType parameter.
Parameters:
  parentComponent - the parent Component for the dialog
Parameters:
  messageCID - message country identification for a message to be displayed.
Parameters:
  titleCID - message country identification for the String to display in the dialog title bar
Parameters:
  messageType - the type of message that is to be displayed: ERROR_MESSAGE, INFORMATION_MESSAGE, WARNING_MESSAGE, QUESTION_MESSAGE, or PLAIN_MESSAGE



showInternalMessageDialog
public static void showInternalMessageDialog(Component parentComponent, String messageCID, String titleCID, int messageType, Icon icon)(Code)
Brings up a dialog displaying a message, specifying all parameters.
Parameters:
  parentComponent - the parent Component for the dialog
Parameters:
  messageCID - message country identification for a message to be displayed.
Parameters:
  titleCID - message country identification for the String to display in the dialog title bar
Parameters:
  messageType - the type of message that is to be displayed: ERROR_MESSAGE, INFORMATION_MESSAGE, WARNING_MESSAGE, QUESTION_MESSAGE, or PLAIN_MESSAGE
Parameters:
  icon - the icon to display in the dialog



showInternalOptionDialog
public static int showInternalOptionDialog(Component parentComponent, String messageCID, String titleCID, int optionType, int messageType, Icon icon, String[] optionsCID, String initialCIDValue)(Code)
Brings up an internal dialog panel with a specified icon, where the initial choice is determined by the initialValue parameter and the number of choices is determined by the optionType parameter. If optionType is YES_NO_OPTION, or YES_NO_CANCEL_OPTION and the options parameter is null, then the options are supplied by the Look and Feel. The messageType parameter is primarily used to supply a default icon from the look and feel.
Parameters:
  parentComponent - determines the Frame in which the dialog is displayed; if null, or if the parentComponent has no Frame, a default Frame is used
Parameters:
  messageCID - message country identification for a message to be displayed.
Parameters:
  titleCID - message country identification for a title to be displayed.
Parameters:
  optionType - an integer designating the options available on the dialog: YES_NO_OPTION, or YES_NO_CANCEL_OPTION
Parameters:
  messageType - an integer designating the kind of message this is, primarily used to determine the icon from the pluggable Look and Feel: ERROR_MESSAGE, INFORMATION_MESSAGE, WARNING_MESSAGE, QUESTION_MESSAGE, or PLAIN_MESSAGE
Parameters:
  icon - the icon to display in the dialog
Parameters:
  optionsCID - an array of message CIDs indicating the possible choices the user can make
Parameters:
  initialCIDValue - the message CID that represents the default selection for the dialog; only meaningful if options is used; can be null an integer indicating the option chosen by the user, or CLOSED_OPTION if the user closed the dialog



showMessageDialog
public static void showMessageDialog(Component parentComponent, String messageCID)(Code)
Brings up an information-message dialog titled with the message associated with the Country ID resource bundle.
Parameters:
  parentComponent - determines the Frame in which the dialog is displayed; if null, or if the parentComponent has no Frame, a default Frame is used
Parameters:
  messageCID - message country identification for a message to be displayed.



showMessageDialog
public static void showMessageDialog(Component parentComponent, String messageCID, String titleCID, int messageType)(Code)
Brings up a dialog that displays a message using a default icon determined by the messageType parameter.
Parameters:
  parentComponent - the parent Component for the dialog
Parameters:
  messageCID - message country identification for a message to be displayed.
Parameters:
  titleCID - message country identification for the String to display in the dialog title bar
Parameters:
  messageType - the type of message that is to be displayed: ERROR_MESSAGE, INFORMATION_MESSAGE, WARNING_MESSAGE, QUESTION_MESSAGE, or PLAIN_MESSAGE



showMessageDialog
public static void showMessageDialog(Component parentComponent, String messageCID, String titleCID, int messageType, Icon icon)(Code)
Brings up a dialog displaying a message, specifying all parameters.
Parameters:
  parentComponent - the parent Component for the dialog
Parameters:
  messageCID - message country identification for a message to be displayed.
Parameters:
  titleCID - message country identification for the String to display in the dialog title bar
Parameters:
  messageType - the type of message that is to be displayed: ERROR_MESSAGE, INFORMATION_MESSAGE, WARNING_MESSAGE, QUESTION_MESSAGE, or PLAIN_MESSAGE
Parameters:
  icon - the icon to display in the dialog



showOptionDialog
public static int showOptionDialog(Component parentComponent, String messageCID, String titleCID, int optionType, int messageType, Icon icon, String[] optionsCID, String initialCIDValue)(Code)
Brings up a dialog with a specified icon, where the initial choice is determined by the initialValue parameter and the number of choices is determined by the optionType parameter. If optionType is YES_NO_OPTION, or YES_NO_CANCEL_OPTION and the options parameter is null, then the options are supplied by the look and feel. The messageType parameter is primarily used to supply a default icon from the look and feel.
Parameters:
  parentComponent - determines the Frame in which the dialog is displayed; if null, or if the parentComponent has no Frame, a default Frame is used
Parameters:
  messageCID - message country identification for a message to be displayed.
Parameters:
  titleCID - message country identification for a title to be displayed.
Parameters:
  optionType - an integer designating the options available on the dialog: YES_NO_OPTION, or YES_NO_CANCEL_OPTION
Parameters:
  messageType - an integer designating the kind of message this is, primarily used to determine the icon from the pluggable Look and Feel: ERROR_MESSAGE, INFORMATION_MESSAGE, WARNING_MESSAGE, QUESTION_MESSAGE, or PLAIN_MESSAGE
Parameters:
  icon - the icon to display in the dialog
Parameters:
  optionsCID - an array of message CIDs indicating the possible choices the user can make
Parameters:
  initialCIDValue - the message CID that represents the default selection for the dialog; only meaningful if options is used; can be null an integer indicating the option chosen by the user, or CLOSED_OPTION if the user closed the dialog



showOptionDialog
public static int showOptionDialog(Component parentComponent, String messageCID, String titleCID, int optionType, int messageType, Icon icon, String[] optionsCID, String initialCIDValue, String firstLine)(Code)
Brings up a dialog with a specified icon, where the initial choice is determined by the initialValue parameter and the number of choices is determined by the optionType parameter. If optionType is YES_NO_OPTION, or YES_NO_CANCEL_OPTION and the options parameter is null, then the options are supplied by the look and feel. The messageType parameter is primarily used to supply a default icon from the look and feel.
Parameters:
  parentComponent - determines the Frame in which the dialog is displayed; if null, or if the parentComponent has no Frame, a default Frame is used
Parameters:
  messageCID - message country identification for a message to be displayed.
Parameters:
  titleCID - message country identification for a title to be displayed.
Parameters:
  optionType - an integer designating the options available on the dialog: YES_NO_OPTION, or YES_NO_CANCEL_OPTION
Parameters:
  messageType - an integer designating the kind of message this is, primarily used to determine the icon from the pluggable Look and Feel: ERROR_MESSAGE, INFORMATION_MESSAGE, WARNING_MESSAGE, QUESTION_MESSAGE, or PLAIN_MESSAGE
Parameters:
  icon - the icon to display in the dialog
Parameters:
  optionsCID - an array of message CIDs indicating the possible choices the user can make
Parameters:
  initialCIDValue - the message CID that represents the default selection for the dialog; only meaningful if options is used; can be null
Parameters:
  firstLine - parameter is there to precede the messageCID with some situational information, like e.g. the name of a file. an integer indicating the option chosen by the user, or CLOSED_OPTION if the user closed the dialog Typical usage for using the parameter firstLine:showOptionDialog(........, jfc.getSelectedFile().getPath() )



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.