Class DefaultThreadSafeDialogs

java.lang.Object
org.gvsig.andami.ui.mdiFrame.DefaultThreadSafeDialogs
All Implemented Interfaces:
ThreadSafeDialogs, org.gvsig.tools.swing.api.threadsafedialogs.ThreadSafeDialogsManager

public class DefaultThreadSafeDialogs extends Object implements ThreadSafeDialogs
Thread safe functions for showing dialogs
Author:
jjdelcerro
  • Constructor Details

    • DefaultThreadSafeDialogs

      public DefaultThreadSafeDialogs()
    • DefaultThreadSafeDialogs

      public DefaultThreadSafeDialogs(Component rootComponent)
    • DefaultThreadSafeDialogs

      public DefaultThreadSafeDialogs(Component rootComponent, NewStatusBar statusbar)
  • Method Details

    • message

      public void message(String message, int messageType)
      Specified by:
      message in interface org.gvsig.tools.swing.api.threadsafedialogs.ThreadSafeDialogsManager
    • confirmDialog

      public int confirmDialog(String message, String title, int optionType, int messageType)
      Specified by:
      confirmDialog in interface org.gvsig.tools.swing.api.threadsafedialogs.ThreadSafeDialogsManager
    • confirmDialog

      public int confirmDialog(String message, String title, int optionType, int messageType, String msgid)
      Specified by:
      confirmDialog in interface ThreadSafeDialogs
      Specified by:
      confirmDialog in interface org.gvsig.tools.swing.api.threadsafedialogs.ThreadSafeDialogsManager
    • inputDialog

      public String inputDialog(String message, String title, int messageType, String initialValue)
      Specified by:
      inputDialog in interface org.gvsig.tools.swing.api.threadsafedialogs.ThreadSafeDialogsManager
    • inputDialog

      public String inputDialog(String message, String title)
      Specified by:
      inputDialog in interface org.gvsig.tools.swing.api.threadsafedialogs.ThreadSafeDialogsManager
    • messageDialog

      public void messageDialog(String message, String title, int messageType)
      Specified by:
      messageDialog in interface org.gvsig.tools.swing.api.threadsafedialogs.ThreadSafeDialogsManager
    • messageDialog

      public void messageDialog(String message, String[] messageArgs, String title, int messageType)
      Specified by:
      messageDialog in interface org.gvsig.tools.swing.api.threadsafedialogs.ThreadSafeDialogsManager
    • messageDialog

      public void messageDialog(String message, String[] messageArgs, String title, int messageType, String msgid)
      Specified by:
      messageDialog in interface ThreadSafeDialogs
      Specified by:
      messageDialog in interface org.gvsig.tools.swing.api.threadsafedialogs.ThreadSafeDialogsManager
    • showDialog

      public void showDialog(Component contents, String title)
      Description copied from interface: ThreadSafeDialogs
      Create 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:
      showDialog in interface ThreadSafeDialogs
      Parameters:
      contents -
      title -
    • createComponent

      public Component createComponent(Class<? extends Component> theClass, Object... parameters)
      Specified by:
      createComponent in interface org.gvsig.tools.swing.api.threadsafedialogs.ThreadSafeDialogsManager
    • createComponentWithParams

      public Component createComponentWithParams(Class<? extends Component> theClass, Object[] parameters)
      Specified by:
      createComponentWithParams in interface org.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:
      showChooserDialog in interface org.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:
      showChooserDialog in interface org.gvsig.tools.swing.api.threadsafedialogs.ThreadSafeDialogsManager
    • showOpenDirectoryDialog

      public File[] showOpenDirectoryDialog(String title, File initialPath)
      Specified by:
      showOpenDirectoryDialog in interface org.gvsig.tools.swing.api.threadsafedialogs.ThreadSafeDialogsManager
    • showOpenFileDialog

      public File[] showOpenFileDialog(String title, File initialPath)
      Specified by:
      showOpenFileDialog in interface org.gvsig.tools.swing.api.threadsafedialogs.ThreadSafeDialogsManager
    • showSaveFileDialog

      public File[] showSaveFileDialog(String title, File initialPath)
      Specified by:
      showSaveFileDialog in interface org.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:
      showChooserDialog in interface org.gvsig.tools.swing.api.threadsafedialogs.ThreadSafeDialogsManager