Java Doc for XOptionPane.java in  » Workflow-Engines » osbl-1_0 » org » osbl » client » wings » 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 » Workflow Engines » osbl 1_0 » org.osbl.client.wings 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.osbl.client.wings.XOptionPane

XOptionPane
public class XOptionPane extends SDialog implements ActionListener(Code)
An immodal dialog contentPane offering several options for selection (like Yes/No, etc.)
author:
   Armin Haaf
version:
   $Revision: 2752 $


Field Summary
final public static  StringCANCEL_ACTION
    
final public static  intCANCEL_OPTION
    
final public static  intDEFAULT_OPTION
     Type meaning look and feel should not supply any options -- only use the options from the JOptionPane.
final public static  intERROR_MESSAGE
    
final public static  intINFORMATION_MESSAGE
    
final public static  StringNO_ACTION
    
final public static  intNO_OPTION
    
final public static  StringOK_ACTION
    
final public static  intOK_CANCEL_OPTION
     Used for showConfirmDialog.
final public static  intOK_CANCEL_RESET_OPTION
     Used for showConfirmDialog.
final public static  intOK_OPTION
    
final public static  intPLAIN_MESSAGE
    
final public static  intQUESTION_MESSAGE
    
final public static  intRESET_OPTION
    
final public static  StringUNKNOWN_ACTION
    
final public static  intWARNING_MESSAGE
    
final public static  StringYES_ACTION
    
final public static  intYES_NO_CANCEL_OPTION
     Used for showConfirmDialog.
final public static  intYES_NO_CANCEL_RESET_OPTION
     Used for showConfirmDialog.
final public static  intYES_NO_OPTION
     Used for showConfirmDialog.
final public static  intYES_NO_RESET_OPTION
     Used for showConfirmDialog.
final public static  intYES_OPTION
    
 SContainercustomButtons
    
final  SBorderempty
    
protected  SIconicon
    
final protected  SLabelimageLabel
    
protected  ObjectinitialValue
    
protected  Objectmessage
    
protected  intmessageType
    
final protected  SContaineroptionButtons
    
final protected  XButtonoptionCancel
    
final protected  XButtonoptionNo
    
final protected  XButtonoptionOK
    
final protected  XButtonoptionYes
    
protected  Object[]options
    
protected  Objectselected
    

Constructor Summary
public  XOptionPane()
    
public  XOptionPane(Object message)
    
public  XOptionPane(Object message, int messageType)
    
public  XOptionPane(Object message, int messageType, int optionType)
     Creates an instance of JOptionPane to display a message with the specified message type and options.
public  XOptionPane(Object message, int messageType, int optionType, SIcon icon)
     Creates an instance of JOptionPane to display a message with the specified message type, options, and icon.
public  XOptionPane(Object message, int messageType, int optionType, SIcon icon, Object[] options)
     Creates an instance of JOptionPane to display a message with the specified message type, icon, and options.
public  XOptionPane(Object message, int messageType, int optionType, SIcon icon, Object[] options, Object initialValue)
     Creates an instance of JOptionPane to display a message with the specified message type, icon, and options, with the initially-selected option specified.

Method Summary
public  voidactionPerformed(ActionEvent e)
    
protected  XButtoncreateLocalizedButton(String key)
    
protected  voidfireActionPerformed(String pActionCommand)
    
public  ObjectgetInputValue()
    
public  intgetMessageType()
     Returns the message type.
protected  voidresetOptions()
    
public  voidsetCG(OptionPaneCG cg)
    
public  voidsetMessageType(int newType)
     Sets the option pane's message type.
public  voidsetOptionType(int newType)
    
public  voidsetOptions(Object[] options)
    
public static  voidshowConfirmDialog(SComponent parent, Object message, String title)
    
public static  voidshowConfirmDialog(SComponent parent, Object message, String title, ActionListener al)
    
public static  voidshowConfirmDialog(SComponent parent, Object message, String title, int type)
    
public static  voidshowConfirmDialog(SComponent parent, Object message, String title, int type, ActionListener al)
    
public static  voidshowConfirmDialog(SComponent parent, Object message, String title, int type, ActionListener al, SLayoutManager layout)
    
public  voidshowInput(SComponent parent, Object message, SComponent inputElement, String title)
    
public static  voidshowInputDialog(SComponent parent, Object question, String title, SComponent inputElement, ActionListener al)
    
public static  voidshowInputDialog(SComponent parent, Object question, String title, int messageType, SComponent inputElement, ActionListener al)
    
public static  voidshowMessageDialog(SComponent parent, Object message)
    
public static  voidshowMessageDialog(SComponent parent, Object message, String title)
    
public static  voidshowMessageDialog(SComponent parent, Object message, ActionListener al)
    
public static  voidshowMessageDialog(SComponent parent, Object message, String title, int messageType, ActionListener al)
    
public  voidshowOption(SComponent c, String title, Object message)
    
public  voidshowPlainMessage(SComponent parent, Object message, String title)
    
public static  voidshowPlainMessageDialog(SComponent parent, Object message)
    
public static  voidshowPlainMessageDialog(SComponent parent, Object message, String title)
    
public static  voidshowPlainMessageDialog(SComponent parent, Object message, ActionListener al)
    
public static  voidshowPlainMessageDialog(SComponent parent, Object message, String title, ActionListener al)
    
public static  voidshowPlainQuestionDialog(SComponent parent, Object question, String title, ActionListener al)
    
public  voidshowQuestion(SComponent parent, Object message, String title)
    
public  voidshowQuestion(SComponent parent, Object question, String title, int type)
    
public static  voidshowQuestionDialog(SComponent parent, Object question, String title, ActionListener al)
    
public  voidshowYesNo(SComponent parent, Object question, String title)
    
public static  voidshowYesNoDialog(SComponent parent, Object question, String title, ActionListener al)
    

Field Detail
CANCEL_ACTION
final public static String CANCEL_ACTION(Code)
Action Performed Value if Cancel is choosen



CANCEL_OPTION
final public static int CANCEL_OPTION(Code)
Return value if Cancel is choosen



DEFAULT_OPTION
final public static int DEFAULT_OPTION(Code)
Type meaning look and feel should not supply any options -- only use the options from the JOptionPane.



ERROR_MESSAGE
final public static int ERROR_MESSAGE(Code)



INFORMATION_MESSAGE
final public static int INFORMATION_MESSAGE(Code)



NO_ACTION
final public static String NO_ACTION(Code)
Action Performed Value if No is choosen



NO_OPTION
final public static int NO_OPTION(Code)
Return value if no is choosen



OK_ACTION
final public static String OK_ACTION(Code)
Action Performed Value if Ok is choosen



OK_CANCEL_OPTION
final public static int OK_CANCEL_OPTION(Code)
Used for showConfirmDialog.



OK_CANCEL_RESET_OPTION
final public static int OK_CANCEL_RESET_OPTION(Code)
Used for showConfirmDialog.



OK_OPTION
final public static int OK_OPTION(Code)
Return value if Ok is choosen



PLAIN_MESSAGE
final public static int PLAIN_MESSAGE(Code)



QUESTION_MESSAGE
final public static int QUESTION_MESSAGE(Code)



RESET_OPTION
final public static int RESET_OPTION(Code)



UNKNOWN_ACTION
final public static String UNKNOWN_ACTION(Code)
Action Performed Value Unknow



WARNING_MESSAGE
final public static int WARNING_MESSAGE(Code)



YES_ACTION
final public static String YES_ACTION(Code)
Actionb Performed Value if Yes is Choosen



YES_NO_CANCEL_OPTION
final public static int YES_NO_CANCEL_OPTION(Code)
Used for showConfirmDialog.



YES_NO_CANCEL_RESET_OPTION
final public static int YES_NO_CANCEL_RESET_OPTION(Code)
Used for showConfirmDialog.



YES_NO_OPTION
final public static int YES_NO_OPTION(Code)
Used for showConfirmDialog.



YES_NO_RESET_OPTION
final public static int YES_NO_RESET_OPTION(Code)
Used for showConfirmDialog.



YES_OPTION
final public static int YES_OPTION(Code)
Return Value if Yes is choosen



customButtons
SContainer customButtons(Code)



empty
final SBorder empty(Code)



icon
protected SIcon icon(Code)



imageLabel
final protected SLabel imageLabel(Code)



initialValue
protected Object initialValue(Code)



message
protected Object message(Code)



messageType
protected int messageType(Code)



optionButtons
final protected SContainer optionButtons(Code)
Panel with Option Buttons



optionCancel
final protected XButton optionCancel(Code)
Cancel Button



optionNo
final protected XButton optionNo(Code)
No Button



optionOK
final protected XButton optionOK(Code)
OK Button



optionYes
final protected XButton optionYes(Code)
Yes Button



options
protected Object[] options(Code)



selected
protected Object selected(Code)
The chosen option
See Also:   XOptionPane.OK_OPTION
See Also:   XOptionPane.YES_OPTION
See Also:   XOptionPane.CANCEL_OPTION
See Also:   XOptionPane.NO_OPTION




Constructor Detail
XOptionPane
public XOptionPane()(Code)
Default Constructor for XOptionPane Against the Standard Swing Implementation there is no Standard Message



XOptionPane
public XOptionPane(Object message)(Code)



XOptionPane
public XOptionPane(Object message, int messageType)(Code)



XOptionPane
public XOptionPane(Object message, int messageType, int optionType)(Code)
Creates an instance of JOptionPane to display a message with the specified message type and options.
Parameters:
  message - the Object to display
Parameters:
  messageType - the type of message to be displayed:ERROR_MESSAGE, INFORMATION_MESSAGE, WARNING_MESSAGE,QUESTION_MESSAGE, or PLAIN_MESSAGE
Parameters:
  optionType - the options to display in the pane:DEFAULT_OPTION, YES_NO_OPTION, YES_NO_CANCEL_OPTIONOK_CANCEL_OPTION



XOptionPane
public XOptionPane(Object message, int messageType, int optionType, SIcon icon)(Code)
Creates an instance of JOptionPane to display a message with the specified message type, options, and icon.
Parameters:
  message - the Object to display
Parameters:
  messageType - the type of message to be displayed:ERROR_MESSAGE, INFORMATION_MESSAGE, WARNING_MESSAGE,QUESTION_MESSAGE, or PLAIN_MESSAGE
Parameters:
  optionType - the options to display in the pane:DEFAULT_OPTION, YES_NO_OPTION, YES_NO_CANCEL_OPTIONOK_CANCEL_OPTION
Parameters:
  icon - the Icon image to display



XOptionPane
public XOptionPane(Object message, int messageType, int optionType, SIcon icon, Object[] options)(Code)
Creates an instance of JOptionPane to display a message with the specified message type, icon, and options. None of the options is initially selected.

The options objects should contain either instances of Components, (which are added directly) or Strings (which are wrapped in a JButton). If you provide Components, you must ensure that when the Component is clicked it messages setValue in the created JOptionPane.
Parameters:
  message - the Object to display
Parameters:
  messageType - the type of message to be displayed:ERROR_MESSAGE, INFORMATION_MESSAGE, WARNING_MESSAGE,QUESTION_MESSAGE, or PLAIN_MESSAGE
Parameters:
  optionType - the options to display in the pane:DEFAULT_OPTION, YES_NO_OPTION, YES_NO_CANCEL_OPTIONOK_CANCEL_OPTION; only meaningful if theoptions parameter is null
Parameters:
  icon - the Icon image to display
Parameters:
  options - the choices the user can select




XOptionPane
public XOptionPane(Object message, int messageType, int optionType, SIcon icon, Object[] options, Object initialValue)(Code)
Creates an instance of JOptionPane to display a message with the specified message type, icon, and options, with the initially-selected option specified.
Parameters:
  message - the Object to display
Parameters:
  messageType - the type of message to be displayed:ERROR_MESSAGE, INFORMATION_MESSAGE, WARNING_MESSAGE,QUESTION_MESSAGE, or PLAIN_MESSAGE
Parameters:
  optionType - the options to display in the pane:DEFAULT_OPTION, YES_NO_OPTION, YES_NO_CANCEL_OPTIONOK_CANCEL_OPTION; only meaningful if theoptions parameter is null
Parameters:
  icon - the Icon image to display
Parameters:
  options - the choices the user can select
Parameters:
  initialValue - the choice that is initially selected




Method Detail
actionPerformed
public void actionPerformed(ActionEvent e)(Code)



createLocalizedButton
protected XButton createLocalizedButton(String key)(Code)
Generic Button creation



fireActionPerformed
protected void fireActionPerformed(String pActionCommand)(Code)



getInputValue
public Object getInputValue()(Code)



getMessageType
public int getMessageType()(Code)
Returns the message type. an integer specifying the message type
See Also:   XOptionPane.setMessageType



resetOptions
protected void resetOptions()(Code)



setCG
public void setCG(OptionPaneCG cg)(Code)



setMessageType
public void setMessageType(int newType)(Code)
Sets the option pane's message type. Dependent to the MessageType there wil be displayed a different Message Label
Parameters:
  newType - an integer specifying the kind of message to display:ERROR_MESSAGE, INFORMATION_MESSAGE, WARNING_MESSAGE,QUESTION_MESSAGE, or PLAIN_MESSAGE

description: The option pane's message type.




setOptionType
public void setOptionType(int newType)(Code)



setOptions
public void setOptions(Object[] options)(Code)



showConfirmDialog
public static void showConfirmDialog(SComponent parent, Object message, String title)(Code)



showConfirmDialog
public static void showConfirmDialog(SComponent parent, Object message, String title, ActionListener al)(Code)



showConfirmDialog
public static void showConfirmDialog(SComponent parent, Object message, String title, int type)(Code)



showConfirmDialog
public static void showConfirmDialog(SComponent parent, Object message, String title, int type, ActionListener al)(Code)



showConfirmDialog
public static void showConfirmDialog(SComponent parent, Object message, String title, int type, ActionListener al, SLayoutManager layout)(Code)



showInput
public void showInput(SComponent parent, Object message, SComponent inputElement, String title)(Code)



showInputDialog
public static void showInputDialog(SComponent parent, Object question, String title, SComponent inputElement, ActionListener al)(Code)



showInputDialog
public static void showInputDialog(SComponent parent, Object question, String title, int messageType, SComponent inputElement, ActionListener al)(Code)



showMessageDialog
public static void showMessageDialog(SComponent parent, Object message)(Code)



showMessageDialog
public static void showMessageDialog(SComponent parent, Object message, String title)(Code)



showMessageDialog
public static void showMessageDialog(SComponent parent, Object message, ActionListener al)(Code)



showMessageDialog
public static void showMessageDialog(SComponent parent, Object message, String title, int messageType, ActionListener al)(Code)



showOption
public void showOption(SComponent c, String title, Object message)(Code)



showPlainMessage
public void showPlainMessage(SComponent parent, Object message, String title)(Code)



showPlainMessageDialog
public static void showPlainMessageDialog(SComponent parent, Object message)(Code)



showPlainMessageDialog
public static void showPlainMessageDialog(SComponent parent, Object message, String title)(Code)



showPlainMessageDialog
public static void showPlainMessageDialog(SComponent parent, Object message, ActionListener al)(Code)



showPlainMessageDialog
public static void showPlainMessageDialog(SComponent parent, Object message, String title, ActionListener al)(Code)



showPlainQuestionDialog
public static void showPlainQuestionDialog(SComponent parent, Object question, String title, ActionListener al)(Code)



showQuestion
public void showQuestion(SComponent parent, Object message, String title)(Code)



showQuestion
public void showQuestion(SComponent parent, Object question, String title, int type)(Code)



showQuestionDialog
public static void showQuestionDialog(SComponent parent, Object question, String title, ActionListener al)(Code)



showYesNo
public void showYesNo(SComponent parent, Object question, String title)(Code)



showYesNoDialog
public static void showYesNoDialog(SComponent parent, Object question, String title, ActionListener al)(Code)



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