|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.apl.jxc.tools.SwingUtil
public final class SwingUtil
Swing utilites to support the XML Filter and Mapper UIs
Nested Class Summary | |
---|---|
static interface |
SwingUtil.ErrorDisplayer
Implementations can be used as error displayers |
Method Summary | |
---|---|
static void |
displayError(java.awt.Component parentComponent,
java.lang.String description,
java.lang.Exception exception,
java.util.logging.Logger logger)
Displays an error message to the user. |
static void |
setErrorDisplayer(SwingUtil.ErrorDisplayer errDisplayer)
Sets the error displayer to be used when displaying error messages to the user. |
static int |
showIntegerInputDialog(java.awt.Component parent,
java.lang.String message,
java.lang.String errorMessage,
int initialValue)
Prompts the user to enter an integer value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void setErrorDisplayer(SwingUtil.ErrorDisplayer errDisplayer)
errDisplayer
- the error displayer to be usedpublic static void displayError(java.awt.Component parentComponent, java.lang.String description, java.lang.Exception exception, java.util.logging.Logger logger)
parentComponent
- component where the error occurreddescription
- a description of the errorexception
- the causal exceptionlogger
- logger to report the exceptionpublic static int showIntegerInputDialog(java.awt.Component parent, java.lang.String message, java.lang.String errorMessage, int initialValue)
parent
- component requesting the dialogmessage
- used to prompt the user for inputerrorMessage
- used indicate the input is not a valid integerinitialValue
- an initial default value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |