public interface ThreadSafeDialogs
| Modifier and Type | Method and Description |
|---|---|
int |
confirmDialog(java.lang.String message,
java.lang.String title,
int optionType,
int messageType)
Show a JOptionPane confirm dialog.
|
java.awt.Component |
createComponent(java.lang.Class<? extends java.awt.Component> theClass,
java.lang.Object... parameters)
Creates an return a new instance of the component specified
This method ensure that the component is created in the event dispatch thread of swing.
|
java.awt.Component |
createComponentWithParams(java.lang.Class<? extends java.awt.Component> theClass,
java.lang.Object[] parameters)
Creates an return a new instance of the component specified
This method ensure that the component is created in the event dispatch thread of swing.
|
java.lang.String |
inputDialog(java.lang.String message,
java.lang.String title)
Show a JOptionPane input dialog.
|
java.lang.String |
inputDialog(java.lang.String message,
java.lang.String title,
int messageType,
java.lang.String initialValue)
Show a JOptionPane input dialog.
|
void |
messageDialog(java.lang.String message,
java.lang.String[] messageArgs,
java.lang.String title,
int messageType)
Create a message dialog with ok button.
|
void |
messageDialog(java.lang.String message,
java.lang.String title,
int messageType)
Create a message dialog with an ok button.
|
java.io.File[] |
showChooserDialog(java.lang.String title,
int type,
int selectionMode,
boolean multiselection,
java.io.File initialPath,
javax.swing.filechooser.FileFilter filter,
boolean fileHidingEnabled)
Creates and show a JFileChooser dialog.
|
void |
showDialog(java.awt.Component contents,
java.lang.String title)
Create a window with the contents and title specified as parameters
and show as a dialog windows of gvSIG.
|
java.io.File[] |
showOpenDirectoryDialog(java.lang.String title,
java.io.File initialPath)
Creates and show a JFileChooser dialog for folder selection.
|
java.io.File[] |
showOpenFileDialog(java.lang.String title,
java.io.File initialPath)
Creates and show a JFileChooser dialog for selection a file for open.
|
java.io.File[] |
showSaveFileDialog(java.lang.String title,
java.io.File initialPath)
Creates and show a JFileChooser dialog for selection a file for save.
|
void messageDialog(java.lang.String message,
java.lang.String title,
int messageType)
message - to present in the dialogtitle - title of the dialogmessageType - type of icon to use.JOptionPane.showMessageDialog(Component, Object, String, int)void messageDialog(java.lang.String message,
java.lang.String[] messageArgs,
java.lang.String title,
int messageType)
message - to present in the dialogmessageArgs - string array of arguments used to format the messagetitle - title of the dialogmessageType - type of icon to use.JOptionPane.showMessageDialog(Component, Object, String, int)int confirmDialog(java.lang.String message,
java.lang.String title,
int optionType,
int messageType)
message - title - optionType - messageType - JOptionPane.showConfirmDialog(Component, Object, String, int, int)java.lang.String inputDialog(java.lang.String message,
java.lang.String title,
int messageType,
java.lang.String initialValue)
message - title - optionType - an integer designating the options available on the dialog:
YES_NO_OPTION, YES_NO_CANCEL_OPTION, or OK_CANCEL_OPTIONmessageType - an integer designating the kind of message this is;
primarily used to determine the icon from the pluggable
Look and Feel: ERROR_MESSAGE, INFORMATION_MESSAGE,
WARNING_MESSAGE, QUESTION_MESSAGE, or PLAIN_MESSAGEJOptionPane.showInputDialog(Component, Object, String, int)java.lang.String inputDialog(java.lang.String message,
java.lang.String title)
message - title - optionType - messageType - JOptionPane.showInputDialog(Component, Object, String, int)void showDialog(java.awt.Component contents,
java.lang.String title)
contents - title - java.awt.Component createComponent(java.lang.Class<? extends java.awt.Component> theClass,
java.lang.Object... parameters)
theClass - of component to be createdparameters - passed to the constructor of the componentjava.awt.Component createComponentWithParams(java.lang.Class<? extends java.awt.Component> theClass,
java.lang.Object[] parameters)
theClass - of component to be createdparameters - passed to the constructor of the componentjava.io.File[] showChooserDialog(java.lang.String title,
int type,
int selectionMode,
boolean multiselection,
java.io.File initialPath,
javax.swing.filechooser.FileFilter filter,
boolean fileHidingEnabled)
title, - title of dialogtype - of the dialog, JFileChooser.SAVE_DIALOG or JFileChooser.OPEN_DIALOGselectionMode - of the dialog, values are: JFileChooser.FILES_ONLY, JFileChooser.DIRECTORIES_ONLY, JFileChooser.FILES_AND_DIRECTORIESmultiselection, - true if multiselection is allowedinitialPath, - to show in the dialogfilter - used to filter the files show in the dialog.fileHidingEnabled, - if true hidden files are showjava.io.File[] showOpenDirectoryDialog(java.lang.String title,
java.io.File initialPath)
title, - title of dialoginitialPath, - to show in the dialogshowChooserDialog(String, int, int, boolean, File, FileFilter, boolean)java.io.File[] showOpenFileDialog(java.lang.String title,
java.io.File initialPath)
showChooserDialog(String, int, int, boolean, File, FileFilter, boolean) call.title, - title of dialoginitialPath, - to show in the dialogshowChooserDialog(String, int, int, boolean, File, FileFilter, boolean)java.io.File[] showSaveFileDialog(java.lang.String title,
java.io.File initialPath)
showChooserDialog(String, int, int, boolean, File, FileFilter, boolean) call.title, - title of dialoginitialPath, - to show in the dialogshowChooserDialog(String, int, int, boolean, File, FileFilter, boolean)