Package javascript.swing
Class JSOptionPane
- java.lang.Object
-
- javascript.swing.JSOptionPane
-
public class JSOptionPane extends java.lang.ObjectThe javax.swing.JOptionPane clone- Author:
- gianpiero.diblasi
-
-
Field Summary
Fields Modifier and Type Field Description static intCANCEL_OPTIONstatic intCLOSED_OPTIONstatic intDEFAULT_OPTIONstatic intERROR_MESSAGEstatic intINFORMATION_MESSAGEstatic intNO_OPTIONstatic intOK_CANCEL_OPTIONstatic intOK_OPTIONstatic intPLAIN_MESSAGEstatic intQUESTION_MESSAGEstatic intWARNING_MESSAGEstatic intYES_NO_CANCEL_OPTIONstatic intYES_NO_OPTIONstatic intYES_OPTION
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidshowConfirmDialog(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 voidshowInputDialog(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 voidshowMessageDialog(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
-
-