|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.util.errorhandlers.MessageBoxErrorHandler
public class MessageBoxErrorHandler
MessageBoxErrorHandler is an error handler which displays a MessageBox when handleError() is called. The MessageBox displays the passed in message and an Ok button.
Field Summary | |
---|---|
protected java.awt.Frame |
frame
The frame to parent the MessageBox dialog to. |
protected java.lang.String |
overrideMessage
A message used to override the message returned by the validator. |
static java.lang.String |
RB_KEY
|
Constructor Summary | |
---|---|
MessageBoxErrorHandler()
Default constructor |
|
MessageBoxErrorHandler(java.awt.Component frame)
Constructor. |
|
MessageBoxErrorHandler(java.awt.Component frame,
java.lang.String overrideMessage)
Constructor. |
|
MessageBoxErrorHandler(java.lang.String overrideMessage)
Constructor. |
Method Summary | |
---|---|
void |
handleError(com.sas.ComponentInterface component,
com.sas.text.Message message,
java.lang.String messageCode)
handleError should perform whatever action is desired when an error occurs. |
Field Detail |
---|
public static final java.lang.String RB_KEY
protected java.awt.Frame frame
protected java.lang.String overrideMessage
Constructor Detail |
---|
public MessageBoxErrorHandler()
public MessageBoxErrorHandler(java.lang.String overrideMessage)
overrideMessage
- A message to display instead of the message returned by the validator.public MessageBoxErrorHandler(java.awt.Component frame)
frame
- A java.awt.Component used to determine the parent frame for the MessageBox dialog.public MessageBoxErrorHandler(java.awt.Component frame, java.lang.String overrideMessage)
frame
- A java.awt.Component used to determine the parent frame for the MessageBox dialog.overrideMessage
- A message to display instead of the message returned by the validator.Method Detail |
---|
public void handleError(com.sas.ComponentInterface component, com.sas.text.Message message, java.lang.String messageCode)
ErrorHandlerInterface
handleError
in interface ErrorHandlerInterface
component
- The component on which the error occured.message
- A Message object with formatted with the message to display.
The object should also contain the necessary arguments for
formatting the message.messageCode
- A non-translatable string which indicates the type of error that occured.
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |