com.SoftWoehr.JTOpenContrib.MEU
Class MEUStockDialog

java.lang.Object
  |
  +--com.SoftWoehr.JTOpenContrib.MEU.MEUStockDialog

public class MEUStockDialog
extends java.lang.Object

MEU stock dialogs, all static methods


Constructor Summary
protected MEUStockDialog()
          Creates new MEUStockDialog
 
Method Summary
static void showAboutSoftWoehrDialog(javax.swing.ImageIcon icon)
          Show the about dialog
static int showCloseCancelFileMemberDialog(com.ibm.as400.access.AS400 sys, java.lang.String ifspath, javax.swing.JFrame frame)
          Ask if user wants to save discard or cancel close.
static int showCloseFileMemberDialog(com.ibm.as400.access.AS400 sys, java.lang.String ifspath, javax.swing.JFrame frame)
          Ask if user wants to save discard -- can't cancel close.
static int showCloseFileMemberDialog(com.ibm.as400.access.AS400 sys, java.lang.String ifspath, javax.swing.JFrame frame, int option)
          Ask if user wants to save discard or also cancel close if option type passed in.
static void showCommandErrorDialog(javax.swing.JFrame frame, java.lang.String message, java.lang.String command)
          Inform user of problem executing a command
static void showCommandInfoMessageDialog(javax.swing.JFrame frame, java.lang.String message, java.lang.String command)
          Inform the user in response to a command
static int showCreateFileMemberDialog(com.ibm.as400.access.AS400 sys, java.lang.String ifspath, javax.swing.JFrame frame)
          Ask if user wants to create new file member.
static void showErrorMessageDialog(javax.swing.JFrame frame, java.lang.String message, java.lang.String title)
          Show some error in a dialog
static void showExceptionMessageDialog(javax.swing.JFrame frame, java.lang.String message, java.lang.Exception exception)
          Inform the user of a problem
static java.lang.String showFileDescriptionDialog(javax.swing.JFrame frame)
          Offer a File Description user entry dialog --- returns null if they cancel
static void showHelpDialog(javax.swing.ImageIcon icon)
          Show the help dialog
static void showInfoMessageDialog(javax.swing.JFrame frame, java.lang.String message, java.lang.String title)
          Inform the user in a dialog
static java.lang.String showOpenFileMemberDialog(com.ibm.as400.access.AS400 sys, java.lang.String ifsdirectory, javax.swing.JFrame frame)
          Offer a file open dialog.
static int showOverwriteExtantLocalFileDialog(java.lang.String path, javax.swing.JFrame frame)
          Ask if user wants to overwrite local file.
static int showOverwriteFileMemberDialog(com.ibm.as400.access.AS400 sys, java.lang.String ifspath, javax.swing.JFrame frame)
          Ask if user wants to overwrite existing file.
static void showPropertyErrorMessageDialog(javax.swing.JFrame frame, java.lang.String message, java.lang.String property, java.lang.String value)
          Inform the user of a problem
static java.lang.String showSaveAsFileMemberDialog(com.ibm.as400.access.AS400 sys, java.lang.String ifsdirectory, javax.swing.JFrame frame)
          Offer a file save as dialog.
static java.io.File showSaveLocalFileMemberDialog(java.lang.String localDirectory, javax.swing.JFrame frame)
          Offer a file save dialog for local disk.
static java.lang.String showSearchDialog(javax.swing.JFrame frame)
          Offer a search string dialog --- returns null if they cancel
static java.lang.String showSetServerDialog(javax.swing.JFrame frame)
          Offer a server name dialog --- returns null if they cancel
static void showWarningMessageDialog(javax.swing.JFrame frame, java.lang.String message, java.lang.String title)
          Show warning in a dialog
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MEUStockDialog

protected MEUStockDialog()
Creates new MEUStockDialog
Method Detail

showInfoMessageDialog

public static void showInfoMessageDialog(javax.swing.JFrame frame,
                                         java.lang.String message,
                                         java.lang.String title)
Inform the user in a dialog
Parameters:
frame - Parent frame
message - Text message
title - Text title

showErrorMessageDialog

public static void showErrorMessageDialog(javax.swing.JFrame frame,
                                          java.lang.String message,
                                          java.lang.String title)
Show some error in a dialog
Parameters:
frame - Parent frame
message - Text message
title - Text title

showWarningMessageDialog

public static void showWarningMessageDialog(javax.swing.JFrame frame,
                                            java.lang.String message,
                                            java.lang.String title)
Show warning in a dialog
Parameters:
frame - Parent frame
message - The warning message
title - The title

showCommandErrorDialog

public static void showCommandErrorDialog(javax.swing.JFrame frame,
                                          java.lang.String message,
                                          java.lang.String command)
Inform user of problem executing a command
Parameters:
frame - Parent frame
message - Text message
command - Text command as issued by user

showCommandInfoMessageDialog

public static void showCommandInfoMessageDialog(javax.swing.JFrame frame,
                                                java.lang.String message,
                                                java.lang.String command)
Inform the user in response to a command
Parameters:
frame - Parent frame
message - Text message
command - Text command as issued by user

showExceptionMessageDialog

public static void showExceptionMessageDialog(javax.swing.JFrame frame,
                                              java.lang.String message,
                                              java.lang.Exception exception)
Inform the user of a problem
Parameters:
frame - Parent frame
message - Text message
exception - Exception referenced by this dialog

showPropertyErrorMessageDialog

public static void showPropertyErrorMessageDialog(javax.swing.JFrame frame,
                                                  java.lang.String message,
                                                  java.lang.String property,
                                                  java.lang.String value)
Inform the user of a problem
Parameters:
frame - Parent frame
message - Text message
property - Property name
value - The value for the property.

showOpenFileMemberDialog

public static java.lang.String showOpenFileMemberDialog(com.ibm.as400.access.AS400 sys,
                                                        java.lang.String ifsdirectory,
                                                        javax.swing.JFrame frame)
Offer a file open dialog.
Parameters:
sys - AS/400 system to use
ifsdirectory - Directory to search
frame - Parent frame
Returns:
Filepath or null

showSaveAsFileMemberDialog

public static java.lang.String showSaveAsFileMemberDialog(com.ibm.as400.access.AS400 sys,
                                                          java.lang.String ifsdirectory,
                                                          javax.swing.JFrame frame)
Offer a file save as dialog.
Parameters:
sys - AS/400 system to use
ifsdirectory - Directory to search
frame - Parent frame
Returns:
Filepath or null.

showSaveLocalFileMemberDialog

public static java.io.File showSaveLocalFileMemberDialog(java.lang.String localDirectory,
                                                         javax.swing.JFrame frame)
Offer a file save dialog for local disk.
Parameters:
localDirectory - Dir to search
frame - Parent frame
Returns:
Local file path or null.

showOverwriteFileMemberDialog

public static int showOverwriteFileMemberDialog(com.ibm.as400.access.AS400 sys,
                                                java.lang.String ifspath,
                                                javax.swing.JFrame frame)
Ask if user wants to overwrite existing file.
Parameters:
sys - System to use
ifspath - Pathname
frame - Parent frame
Returns:
javax.swing.JOptionPane mask representing button press

showCreateFileMemberDialog

public static int showCreateFileMemberDialog(com.ibm.as400.access.AS400 sys,
                                             java.lang.String ifspath,
                                             javax.swing.JFrame frame)
Ask if user wants to create new file member.
Parameters:
sys - System to use
ifspath - Full pathname
frame - Parent frame
Returns:
javax.swing.JOptionPane mask representing button press

showSetServerDialog

public static java.lang.String showSetServerDialog(javax.swing.JFrame frame)
Offer a server name dialog --- returns null if they cancel
Parameters:
frame - Parent frame
Returns:
Server name or null

showFileDescriptionDialog

public static java.lang.String showFileDescriptionDialog(javax.swing.JFrame frame)
Offer a File Description user entry dialog --- returns null if they cancel
Parameters:
frame - Parent frame
Returns:
Description or null

showSearchDialog

public static java.lang.String showSearchDialog(javax.swing.JFrame frame)
Offer a search string dialog --- returns null if they cancel
Parameters:
frame - Parent frame
Returns:
Search spec or null

showCloseCancelFileMemberDialog

public static int showCloseCancelFileMemberDialog(com.ibm.as400.access.AS400 sys,
                                                  java.lang.String ifspath,
                                                  javax.swing.JFrame frame)
Ask if user wants to save discard or cancel close.
Parameters:
sys - System to use
ifspath - Path of file member
frame - Parent frame
Returns:
javax.swing.JOptionPane mask representing button press

showCloseFileMemberDialog

public static int showCloseFileMemberDialog(com.ibm.as400.access.AS400 sys,
                                            java.lang.String ifspath,
                                            javax.swing.JFrame frame)
Ask if user wants to save discard -- can't cancel close.
Parameters:
sys - System to use
ifspath - Path of file member
frame - Parent frame
Returns:
javax.swing.JOptionPane mask representing button press

showCloseFileMemberDialog

public static int showCloseFileMemberDialog(com.ibm.as400.access.AS400 sys,
                                            java.lang.String ifspath,
                                            javax.swing.JFrame frame,
                                            int option)
Ask if user wants to save discard or also cancel close if option type passed in.
Parameters:
sys - System to use
ifspath - Path of file member
frame - Parent frame
option - avax.swing.JOptionPane mask representing number of buttons to present
Returns:
javax.swing.JOptionPane mask representing button press

showOverwriteExtantLocalFileDialog

public static int showOverwriteExtantLocalFileDialog(java.lang.String path,
                                                     javax.swing.JFrame frame)
Ask if user wants to overwrite local file.
Parameters:
frame - Parent frame
option - javax.swing.JOptionPane mask representing number of buttons to present
Returns:
javax.swing.JOptionPane mask representing button press

showAboutSoftWoehrDialog

public static void showAboutSoftWoehrDialog(javax.swing.ImageIcon icon)
Show the about dialog
Parameters:
icon - Icon to use

showHelpDialog

public static void showHelpDialog(javax.swing.ImageIcon icon)
Show the help dialog
Parameters:
icon - Icon to use