Package org.harctoolbox.guicomponents
Class GuiUtils
java.lang.Object
org.harctoolbox.guicomponents.GuiUtils
- All Implemented Interfaces:
Serializable
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidbrowseOrEdit(String urlOrFilename) static voidbrowseStatic(URI uri) booleancheckUpToDate(String currentVersionUrl, String versionString) booleanbooleanvoidvoidvoidstatic voidstatic voidfatal(Exception ex, int errorcode, GuiUtils.EmergencyFixer fixer) getDoubleInput(String message, double oldValue) getIntegerInput(String message, int oldValue) getLongInput(String message, long oldValue) voidvoidvoidvoidFor maximal portability and robustness, and since the support of edit is ...voidsetMaxGuiMessageLength(int aMaxGuiMessageLength) voidsetOfferStackTrace(boolean newOfferStackTrace) voidsetProgramName(String aProgramName) voidsetUsePopupsForErrors(boolean newUsePopupsForErrors) voidsetUsePopupsForHelp(boolean newUsePopupsForHelp) voidsetVerbose(boolean newVerbose) voidvoid
-
Constructor Details
-
GuiUtils
-
-
Method Details
-
fatal
-
fatal
-
browseStatic
- Throws:
IOException
-
setMaxGuiMessageLength
public void setMaxGuiMessageLength(int aMaxGuiMessageLength) - Parameters:
aMaxGuiMessageLength- the maxGuiMessageLength to set
-
setProgramName
- Parameters:
aProgramName- the programName to set
-
setVerbose
public void setVerbose(boolean newVerbose) -
setOfferStackTrace
public void setOfferStackTrace(boolean newOfferStackTrace) -
setUsePopupsForErrors
public void setUsePopupsForErrors(boolean newUsePopupsForErrors) -
setUsePopupsForHelp
public void setUsePopupsForHelp(boolean newUsePopupsForHelp) -
info
-
trace
-
message
-
warning
-
error
-
error
-
error
-
getInput
-
getIntegerInput
-
getLongInput
-
getDoubleInput
-
confirm
-
confirm
-
browse
-
browse
- Throws:
URISyntaxException
-
browse
-
open
For maximal portability and robustness, and since the support of edit is ... not omnipresent, use only this function.- Parameters:
file- file or directory to be opened/edited.- Throws:
IOException
-
browseOrEdit
- Throws:
IOException
-
help
-
checkUpToDate
-