Class Bio7Dialog
java.lang.Object
com.eco.bio7.batch.Bio7Dialog
This class provides some default dialogs for the Bio7 application.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanOpens a decision Dialog with the given text.static StringOpens a Directory Dialog with the given text.static StringdirectoryPath(String text, String path) Opens a Directory Dialog with the given text and the default path.static StringA method which returns the current path for the multiple file dialog.static String[]static StringgetOS()Returns the current OS as String (Windows, Linux).inputDialog(String text, String text1, String text2) A method to open a text input dialog.static voidlinuxSelection(String text) Opens a Linux selection Dialog with the given text.static voidOpens a message Dialog with the given text.static StringopenFile()Opens a file-open dialog.static StringOpens a file-open dialog which displays the file with the given extensions.static String[]Opens a file-open dialog for multiple selections.static StringsaveFile()Opens a file-save dialog.static StringOpens a file-save dialog and opens a confirmation dialog if the file exists.static voidOpens a Windows selection Dialog with the given text.
-
Constructor Details
-
Bio7Dialog
public Bio7Dialog()
-
-
Method Details
-
selection
Opens a Windows selection Dialog with the given text.- Parameters:
text- the text for the dialog.
-
linuxSelection
Opens a Linux selection Dialog with the given text.- Parameters:
text- the text for the dialog.
-
decision
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
Opens a message Dialog with the given text.- Parameters:
text- the text for the dialog.
-
directory
-
directoryPath
-
openFile
Opens a file-open dialog.- Returns:
- a file path as a string from the file dialog.
-
openFile
-
openMultipleFiles
Opens a file-open dialog for multiple selections.- Returns:
- a String array with the file paths of the selected files.
-
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
Opens a file-save dialog.- Returns:
- a file path as a string from the file dialog.
-
saveFile
-
getIODirectoy
-
getOS
Returns the current OS as String (Windows, Linux).- Returns:
- a string representation of the current OS.
-
inputDialog
-