Package org.harctoolbox.guicomponents
Class GuiUtils
java.lang.Object
org.harctoolbox.guicomponents.GuiUtils
- All Implemented Interfaces:
Serializable
- See Also:
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
browseOrEdit
(String urlOrFilename) static void
browseStatic
(URI uri) boolean
checkUpToDate
(String currentVersionUrl, String versionString) boolean
boolean
void
void
void
static void
static void
fatal
(Exception ex, int errorcode, GuiUtils.EmergencyFixer fixer) getDoubleInput
(String message, double oldValue) getIntegerInput
(String message, int oldValue) getLongInput
(String message, long oldValue) void
void
void
void
For maximal portability and robustness, and since the support of edit is ...void
setMaxGuiMessageLength
(int aMaxGuiMessageLength) void
setOfferStackTrace
(boolean newOfferStackTrace) void
setProgramName
(String aProgramName) void
setUsePopupsForErrors
(boolean newUsePopupsForErrors) void
setUsePopupsForHelp
(boolean newUsePopupsForHelp) void
setVerbose
(boolean newVerbose) void
void
-
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
-
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
-