Class Bio7Dialog

java.lang.Object
com.eco.bio7.batch.Bio7Dialog

public class Bio7Dialog extends Object
This class provides some default dialogs for the Bio7 application.
  • Constructor Details

    • Bio7Dialog

      public Bio7Dialog()
  • Method Details

    • selection

      public static void selection(String text)
      Opens a Windows selection Dialog with the given text.
      Parameters:
      text - the text for the dialog.
    • linuxSelection

      public static void linuxSelection(String text)
      Opens a Linux selection Dialog with the given text.
      Parameters:
      text - the text for the dialog.
    • decision

      public static boolean decision(String text)
      Opens a decision Dialog with the given text. The decision dialog will set the variable in the Flow editor of the bio7 application to true or false depending on the decision. In addition the selected boolean will be returned.
      Parameters:
      text - the text for the dialog.
      Returns:
      a boolean value.
    • message

      public static void message(String text)
      Opens a message Dialog with the given text.
      Parameters:
      text - the text for the dialog.
    • directory

      public static String directory(String text)
      Opens a Directory Dialog with the given text.
      Parameters:
      text - the text for the dialog.
      Returns:
      a string with the selected directory.
    • directoryPath

      public static String directoryPath(String text, String path)
      Opens a Directory Dialog with the given text and the default path.
      Parameters:
      text - the text for the dialog.
      path - the path for the dialog.
      Returns:
      a string with the selected directory.
    • openFile

      public static String openFile()
      Opens a file-open dialog.
      Returns:
      a file path as a string from the file dialog.
    • openFile

      public static String openFile(String[] extension)
      Opens a file-open dialog which displays the file with the given extensions.
      Parameters:
      extension - the extensions as a String array which should be displayed.
      Returns:
      a file path as a string from the file dialog.
    • openMultipleFiles

      public static String[] openMultipleFiles()
      Opens a file-open dialog for multiple selections.
      Returns:
      a String array with the file paths of the selected files.
    • getCurrentPath

      public static String getCurrentPath()
      A method which returns the current path for the multiple file dialog.
      Returns:
      the system path as a String for the multiple file dialog.
    • saveFile

      public static String saveFile()
      Opens a file-save dialog.
      Returns:
      a file path as a string from the file dialog.
    • saveFile

      public static String saveFile(String arg)
      Opens a file-save dialog and opens a confirmation dialog if the file exists.
      Parameters:
      arg - the extension of the file.
      Returns:
      a file path as a string from the file dialog.
    • getIODirectoy

      public static String[] getIODirectoy()
    • getOS

      public static String getOS()
      Returns the current OS as String (Windows, Linux).
      Returns:
      a string representation of the current OS.
    • inputDialog

      public String inputDialog(String text, String text1, String text2)
      A method to open a text input dialog.
      Parameters:
      text - the title
      text1 - a String.
      text2 - a String.
      Returns:
      a String value.