http://www.jpicedt.org

jpicedt.graphic.toolkit
Interface DialogFactory

All Known Implementing Classes:
DefaultDialogFactory, InternalFrameMDIManager, JFrameMDIManager, MDIManager

public interface DialogFactory

Provides functionalities to show a dialog box in a GUI.


Method Summary
 CustomizerDialog createCustomizerDialog(AbstractCustomizer customizer, boolean modal, EnumSet<CustomizerDialog.ButtonMask> buttonMask)
          Builds a new dialog box from a single customizer.
 CustomizerDialog createCustomizerDialog(ArrayList<AbstractCustomizer> customizers, int selected, String title, boolean modal, EnumSet<CustomizerDialog.ButtonMask> buttonMask)
          Creates a new dialog box from the given array of AbstractCustomizer's, laying them out in a JTabbedPane.
 MDIComponent createDialog(String title, boolean modal, JComponent innerPane)
          Wraps the given component in a dialog box appropriate for the current GUI.
 int showConfirmDialog(Object message, String title, int optionType)
           
 int showConfirmDialog(Object message, String title, int optionType, int messageType)
           
 int showDontAskMeAgainConfirmDialog(String message, String title, String dontAskMeAgainKey, int messageType)
          Describe showDontAskMeAgainConfirmDialog method here.
 String showInputDialog(Object message, String title, int messageType)
           
 Object showInputDialog(Object message, String title, int messageType, Object[] choices, Object initialChoice)
           
 String showInputDialog(Object message, String title, int messageType, String initialValue)
           
 void showMessageDialog(Object message, String title, int messageType)
           
 

Method Detail

createDialog

MDIComponent createDialog(String title,
                          boolean modal,
                          JComponent innerPane)
Wraps the given component in a dialog box appropriate for the current GUI.


createCustomizerDialog

CustomizerDialog createCustomizerDialog(ArrayList<AbstractCustomizer> customizers,
                                        int selected,
                                        String title,
                                        boolean modal,
                                        EnumSet<CustomizerDialog.ButtonMask> buttonMask)
Creates a new dialog box from the given array of AbstractCustomizer's, laying them out in a JTabbedPane.
By default, clicking the OK button does not close this dialog box, this must be set separately by invoking setOkButtonClosesDialog.

Parameters:
title - the dialog title ; if null, the title of the first customizer is used.
selected - index of the selected customizer on start-up
buttonMask - buttons to be displayed : a mask computed from predefinite masks OR'd together

createCustomizerDialog

CustomizerDialog createCustomizerDialog(AbstractCustomizer customizer,
                                        boolean modal,
                                        EnumSet<CustomizerDialog.ButtonMask> buttonMask)
Builds a new dialog box from a single customizer.


showMessageDialog

void showMessageDialog(Object message,
                       String title,
                       int messageType)
See Also:
JOptionPane

showConfirmDialog

int showConfirmDialog(Object message,
                      String title,
                      int optionType)
See Also:
JOptionPane

showConfirmDialog

int showConfirmDialog(Object message,
                      String title,
                      int optionType,
                      int messageType)
See Also:
JOptionPane

showDontAskMeAgainConfirmDialog

int showDontAskMeAgainConfirmDialog(String message,
                                    String title,
                                    String dontAskMeAgainKey,
                                    int messageType)
Describe showDontAskMeAgainConfirmDialog method here.

Parameters:
message - Un message textuel.
title - voir javax.swing#JOptionPane
dontAskMeAgainKey - une clef de propriété de type jpicedt.ui.dialog.
messageType - voir javax.swing.JOptionPane.
Returns:
voir javax.swing#JOptionPane, renvoie JOptionPane.YES_OPTION ou JOptionPane.NO_OPTION.
Since:
jPicEdt 1.6

showInputDialog

String showInputDialog(Object message,
                       String title,
                       int messageType)
See Also:
JOptionPane

showInputDialog

String showInputDialog(Object message,
                       String title,
                       int messageType,
                       String initialValue)
See Also:
JOptionPane

showInputDialog

Object showInputDialog(Object message,
                       String title,
                       int messageType,
                       Object[] choices,
                       Object initialChoice)
See Also:
JOptionPane

http://www.jpicedt.org

Submit a bug : syd@jpicedt.org