|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jpicedt.graphic.toolkit.DefaultDialogFactory
public class DefaultDialogFactory
Provides functionalities to show a dialog box in a GUI.
Constructor Summary | |
---|---|
DefaultDialogFactory(Frame root)
|
Method Summary | |
---|---|
CustomizerDialog |
createCustomizerDialog(AbstractCustomizer customizer,
boolean modal,
EnumSet<CustomizerDialog.ButtonMask> buttonsMask)
Builds a new dialog box from a single customizer. |
CustomizerDialog |
createCustomizerDialog(ArrayList<AbstractCustomizer> customizers,
int selected,
String title,
boolean modal,
EnumSet<CustomizerDialog.ButtonMask> buttonsMask)
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 p)
Wraps the given component in a dialog box appropriate for the current GUI. |
void |
setRootFrame(Frame root)
|
int |
showConfirmDialog(Object message,
String title,
int optionType)
|
int |
showConfirmDialog(Object message,
String title,
int optionType,
int msgType)
|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultDialogFactory(Frame root)
Method Detail |
---|
public void setRootFrame(Frame root)
public MDIComponent createDialog(String title, boolean modal, JComponent p)
createDialog
in interface DialogFactory
public CustomizerDialog createCustomizerDialog(ArrayList<AbstractCustomizer> customizers, int selected, String title, boolean modal, EnumSet<CustomizerDialog.ButtonMask> buttonsMask)
AbstractCustomizer
's, laying them out in
a JTabbedPane
.setOkButtonClosesDialog
.
createCustomizerDialog
in interface DialogFactory
title
- the dialog title ; if null, the title of the first customizer is used.selected
- index of the selected customizer on start-upbuttonsMask
- buttons to be displayed : a mask computed from predefinite masks OR'd togetherpublic CustomizerDialog createCustomizerDialog(AbstractCustomizer customizer, boolean modal, EnumSet<CustomizerDialog.ButtonMask> buttonsMask)
createCustomizerDialog
in interface DialogFactory
public void showMessageDialog(Object message, String title, int messageType)
showMessageDialog
in interface DialogFactory
JOptionPane
public int showConfirmDialog(Object message, String title, int optionType)
showConfirmDialog
in interface DialogFactory
JOptionPane
public int showConfirmDialog(Object message, String title, int optionType, int msgType)
showConfirmDialog
in interface DialogFactory
JOptionPane
public String showInputDialog(Object message, String title, int messageType)
showInputDialog
in interface DialogFactory
JOptionPane
public String showInputDialog(Object message, String title, int messageType, String initialValue)
showInputDialog
in interface DialogFactory
JOptionPane
public Object showInputDialog(Object message, String title, int messageType, Object[] choices, Object initialChoice)
showInputDialog
in interface DialogFactory
JOptionPane
public int showDontAskMeAgainConfirmDialog(String message, String title, String dontAskMeAgainKey, int messageType)
DialogFactory
showDontAskMeAgainConfirmDialog
method here.
showDontAskMeAgainConfirmDialog
in interface DialogFactory
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.
javax.swing#JOptionPane
, renvoie JOptionPane.YES_OPTION
ou
JOptionPane.NO_OPTION
.
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |