Package org.gvsig.andami.ui.mdiFrame
Class DefaultThreadSafeDialogs
java.lang.Object
org.gvsig.andami.ui.mdiFrame.DefaultThreadSafeDialogs
- All Implemented Interfaces:
ThreadSafeDialogs,org.gvsig.tools.swing.api.threadsafedialogs.ThreadSafeDialogsManager
Thread safe functions for showing dialogs
- Author:
- jjdelcerro
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultThreadSafeDialogs(Component rootComponent) DefaultThreadSafeDialogs(Component rootComponent, NewStatusBar statusbar) -
Method Summary
Modifier and TypeMethodDescriptionintconfirmDialog(String message, String title, int optionType, int messageType) intconfirmDialog(String message, String title, int optionType, int messageType, String msgid) createComponent(Class<? extends Component> theClass, Object... parameters) createComponentWithParams(Class<? extends Component> theClass, Object[] parameters) inputDialog(String message, String title) inputDialog(String message, String title, int messageType, String initialValue) voidvoidmessageDialog(String message, String[] messageArgs, String title, int messageType) voidmessageDialog(String message, String[] messageArgs, String title, int messageType, String msgid) voidmessageDialog(String message, String title, int messageType) File[]showChooserDialog(String title, int type, int selectionMode, boolean multiselection, File initialPath, FileFilter filter, boolean fileHidingEnabled) showChooserDialog(String title, int type, int selectionMode, boolean multiselection, File initialPath, FileFilter filter, boolean fileHidingEnabled, boolean askCharset) File[]showChooserDialog(String title, int type, int selectionMode, boolean multiselection, File initialPath, FileFilter filter, boolean fileHidingEnabled, JComponent accesory) voidshowDialog(Component contents, String title) Create a window with the contents and title specified as parameters and show as a dialog windows of gvSIG.File[]showOpenDirectoryDialog(String title, File initialPath) File[]showOpenFileDialog(String title, File initialPath) File[]showSaveFileDialog(String title, File initialPath)
-
Constructor Details
-
DefaultThreadSafeDialogs
public DefaultThreadSafeDialogs() -
DefaultThreadSafeDialogs
-
DefaultThreadSafeDialogs
-
-
Method Details
-
message
- Specified by:
messagein interfaceorg.gvsig.tools.swing.api.threadsafedialogs.ThreadSafeDialogsManager
-
confirmDialog
- Specified by:
confirmDialogin interfaceorg.gvsig.tools.swing.api.threadsafedialogs.ThreadSafeDialogsManager
-
confirmDialog
public int confirmDialog(String message, String title, int optionType, int messageType, String msgid) - Specified by:
confirmDialogin interfaceThreadSafeDialogs- Specified by:
confirmDialogin interfaceorg.gvsig.tools.swing.api.threadsafedialogs.ThreadSafeDialogsManager
-
inputDialog
- Specified by:
inputDialogin interfaceorg.gvsig.tools.swing.api.threadsafedialogs.ThreadSafeDialogsManager
-
inputDialog
- Specified by:
inputDialogin interfaceorg.gvsig.tools.swing.api.threadsafedialogs.ThreadSafeDialogsManager
-
messageDialog
- Specified by:
messageDialogin interfaceorg.gvsig.tools.swing.api.threadsafedialogs.ThreadSafeDialogsManager
-
messageDialog
- Specified by:
messageDialogin interfaceorg.gvsig.tools.swing.api.threadsafedialogs.ThreadSafeDialogsManager
-
messageDialog
public void messageDialog(String message, String[] messageArgs, String title, int messageType, String msgid) - Specified by:
messageDialogin interfaceThreadSafeDialogs- Specified by:
messageDialogin interfaceorg.gvsig.tools.swing.api.threadsafedialogs.ThreadSafeDialogsManager
-
showDialog
Description copied from interface:ThreadSafeDialogsCreate a window with the contents and title specified as parameters and show as a dialog windows of gvSIG. if this method is invoked out of the event dispatch thread of swing, the dialog is presented in the thread of swing and the calling thread wait to close to continue. in this case the dialog is not presented as modal to other components of the gui.- Specified by:
showDialogin interfaceThreadSafeDialogs- Parameters:
contents-title-
-
createComponent
- Specified by:
createComponentin interfaceorg.gvsig.tools.swing.api.threadsafedialogs.ThreadSafeDialogsManager
-
createComponentWithParams
public Component createComponentWithParams(Class<? extends Component> theClass, Object[] parameters) - Specified by:
createComponentWithParamsin interfaceorg.gvsig.tools.swing.api.threadsafedialogs.ThreadSafeDialogsManager
-
showChooserDialog
public File[] showChooserDialog(String title, int type, int selectionMode, boolean multiselection, File initialPath, FileFilter filter, boolean fileHidingEnabled) - Specified by:
showChooserDialogin interfaceorg.gvsig.tools.swing.api.threadsafedialogs.ThreadSafeDialogsManager
-
showChooserDialog
public org.apache.commons.lang3.tuple.ImmutablePair<File[],Charset> showChooserDialog(String title, int type, int selectionMode, boolean multiselection, File initialPath, FileFilter filter, boolean fileHidingEnabled, boolean askCharset) - Specified by:
showChooserDialogin interfaceorg.gvsig.tools.swing.api.threadsafedialogs.ThreadSafeDialogsManager
-
showOpenDirectoryDialog
- Specified by:
showOpenDirectoryDialogin interfaceorg.gvsig.tools.swing.api.threadsafedialogs.ThreadSafeDialogsManager
-
showOpenFileDialog
- Specified by:
showOpenFileDialogin interfaceorg.gvsig.tools.swing.api.threadsafedialogs.ThreadSafeDialogsManager
-
showSaveFileDialog
- Specified by:
showSaveFileDialogin interfaceorg.gvsig.tools.swing.api.threadsafedialogs.ThreadSafeDialogsManager
-
showChooserDialog
public File[] showChooserDialog(String title, int type, int selectionMode, boolean multiselection, File initialPath, FileFilter filter, boolean fileHidingEnabled, JComponent accesory) - Specified by:
showChooserDialogin interfaceorg.gvsig.tools.swing.api.threadsafedialogs.ThreadSafeDialogsManager
-