Package javascript.swing
Class JSOptionPane
- java.lang.Object
-
- javascript.swing.JSOptionPane
-
public class JSOptionPane extends java.lang.Object
The javax.swing.JOptionPane clone- Author:
- gianpiero.diblasi
-
-
Field Summary
Fields Modifier and Type Field Description static int
CANCEL_OPTION
static int
CLOSED_OPTION
static int
DEFAULT_OPTION
static int
ERROR_MESSAGE
static int
INFORMATION_MESSAGE
static int
NO_OPTION
static int
OK_CANCEL_OPTION
static int
OK_OPTION
static int
PLAIN_MESSAGE
static int
QUESTION_MESSAGE
static int
WARNING_MESSAGE
static int
YES_NO_CANCEL_OPTION
static int
YES_NO_OPTION
static int
YES_OPTION
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
showConfirmDialog(java.lang.Object message, java.lang.String title, int optionType, int messageType, simulation.js.$Apply_1_Void<java.lang.Integer> response)
Shows a confirm dialog, this method does not stop the code flowstatic void
showInputDialog(JSComponent component, java.lang.String title, simulation.js.$Apply_1_Void<ChangeListener> addChangeListener, simulation.js.$Apply_0_T<java.lang.Boolean> isValid, simulation.js.$Apply_1_Void<java.lang.Integer> response)
Shows an input dialog, this method does not stop the code flowstatic void
showMessageDialog(java.lang.Object message, java.lang.String title, int messageType, simulation.js.$Apply_0_Void response)
Shows a message dialog, this method does not stop the code flow
-
-
-
Field Detail
-
DEFAULT_OPTION
public static final int DEFAULT_OPTION
- See Also:
- Constant Field Values
-
YES_NO_OPTION
public static final int YES_NO_OPTION
- See Also:
- Constant Field Values
-
YES_NO_CANCEL_OPTION
public static final int YES_NO_CANCEL_OPTION
- See Also:
- Constant Field Values
-
OK_CANCEL_OPTION
public static final int OK_CANCEL_OPTION
- See Also:
- Constant Field Values
-
YES_OPTION
public static final int YES_OPTION
- See Also:
- Constant Field Values
-
NO_OPTION
public static final int NO_OPTION
- See Also:
- Constant Field Values
-
CANCEL_OPTION
public static final int CANCEL_OPTION
- See Also:
- Constant Field Values
-
OK_OPTION
public static final int OK_OPTION
- See Also:
- Constant Field Values
-
CLOSED_OPTION
public static final int CLOSED_OPTION
- See Also:
- Constant Field Values
-
ERROR_MESSAGE
public static final int ERROR_MESSAGE
- See Also:
- Constant Field Values
-
INFORMATION_MESSAGE
public static final int INFORMATION_MESSAGE
- See Also:
- Constant Field Values
-
WARNING_MESSAGE
public static final int WARNING_MESSAGE
- See Also:
- Constant Field Values
-
QUESTION_MESSAGE
public static final int QUESTION_MESSAGE
- See Also:
- Constant Field Values
-
PLAIN_MESSAGE
public static final int PLAIN_MESSAGE
- See Also:
- Constant Field Values
-
-
Method Detail
-
showMessageDialog
public static void showMessageDialog(java.lang.Object message, java.lang.String title, int messageType, simulation.js.$Apply_0_Void response)
Shows a message dialog, this method does not stop the code flow- Parameters:
message
- The messagetitle
- The titlemessageType
- The message typeresponse
- The function to call on close
-
showConfirmDialog
public static void showConfirmDialog(java.lang.Object message, java.lang.String title, int optionType, int messageType, simulation.js.$Apply_1_Void<java.lang.Integer> response)
Shows a confirm dialog, this method does not stop the code flow- Parameters:
message
- The messagetitle
- The titleoptionType
- The option typemessageType
- The message typeresponse
- The function to call on close
-
showInputDialog
public static void showInputDialog(JSComponent component, java.lang.String title, simulation.js.$Apply_1_Void<ChangeListener> addChangeListener, simulation.js.$Apply_0_T<java.lang.Boolean> isValid, simulation.js.$Apply_1_Void<java.lang.Integer> response)
Shows an input dialog, this method does not stop the code flow- Parameters:
component
- The component containing the input to selecttitle
- The titleaddChangeListener
- The function to call to add a change listener to the componentisValid
- The function to call when the component's value changes to verify if the selected value is validresponse
- The function to call on close
-
-