|
Enterprise Information Portal APIs |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.mm.beans.util.CMBExceptionHandler
The CMBExceptionHandler utility bean can be used to handle exceptions generated by other beans. It can be customized to pop up a dialog box when it receives a exception event or to print the exception stack trace information on the standard error output stream.
Summary of properties and events:
imported properties GUI look and feel style, use default GUI literal, will not veto exported properties none standalone properties window title, mute when display exception messages, trace message display mode, and button labels interested in events CMBExceptionEvent - to service exception PropertyChangeEvent - to import properties source of events none
CMBExceptionEvent
, Serialized FormConstructor Summary | |
CMBExceptionHandler()
Constructor. |
Method Summary | |
void |
finalize()
Disposes the exception dialog window. |
java.lang.String |
getCloseLabel()
Gets the close button label. |
int |
getDisplayMode()
Gets the display mode. |
java.lang.String |
getMuteLabel()
Gets the mute checkbox label. |
java.awt.Component |
getRootNode()
Get the window frame, may be used for updating GUI look and feel style. |
java.lang.String |
getStackLabel()
Gets the stack trace button label on the exception dialog. |
java.lang.String |
getWindowTitle()
Gets the title on the exception dialog window. |
boolean |
isDefaultGuiLiteral()
Gets the use default GUI literal property value. |
boolean |
isMute()
Gets mute property. |
boolean |
isVisible()
Query if the exception dialog is visible. |
void |
onCMBException(CMBExceptionEvent evt)
When a CMBExceptionEvent received, this is the method that gets called. |
void |
propertyChange(java.beans.PropertyChangeEvent evt)
PropertyChangeEvent service routine, to import the and "use default GUI literal" property values. |
void |
setCloseLabel(java.lang.String newValue)
Sets the close button label on the exception dialog. |
void |
setDefaultGuiLiteral(boolean newValue)
When true , all labels and the window title for the
exception dialog will be re-loaded from the resource file. |
void |
setDisplayMode(int newValue)
Sets the message display mode property. |
void |
setMute(boolean newValue)
Sets the mute property. |
void |
setMuteLabel(java.lang.String newValue)
Sets the mute checkbox label on the exception dialog. |
void |
setStackLabel(java.lang.String newValue)
Sets the stack trace button label on the exception dialog. |
void |
setVisible(boolean visible)
Show or hide the exception dialog. |
void |
setWindowTitle(java.lang.String newValue)
Set the title on the exception dialog window. |
void |
showMessage(java.lang.String msg)
Display the exception information. |
void |
showStack(java.lang.Exception exception)
Show the exception stack trace information. |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CMBExceptionHandler()
Method Detail |
public void finalize()
finalize
in class java.lang.Object
public void onCMBException(CMBExceptionEvent evt)
onCMBException
in interface CMBExceptionListener
evt
- an exception eventpublic void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange
in interface java.beans.PropertyChangeListener
evt
- a prpoerty changed eventpublic int getDisplayMode()
public void setDisplayMode(int newValue)
DISPLAY_MESSAGE_ON_STDERR
- send exception information to standard error, orDISPLAY_MESSAGE_IN_WINDOW
- display exception information in a dialog window.newValue
- new message display modepublic boolean isDefaultGuiLiteral()
public void setDefaultGuiLiteral(boolean newValue)
true
, all labels and the window title for the
exception dialog will be re-loaded from the resource file.newValue
- new use default GUI literal optionpublic java.lang.String getWindowTitle()
public void setWindowTitle(java.lang.String newValue)
newValue
- new window titlepublic boolean isMute()
public void setMute(boolean newValue)
false
, an alarm is sounded
when an exception is handled.newValue
- new mute setting valuepublic java.lang.String getCloseLabel()
public void setCloseLabel(java.lang.String newValue)
newValue
- new close button labelpublic java.lang.String getMuteLabel()
public void setMuteLabel(java.lang.String newValue)
newValue
- new mute checkbox labelpublic java.lang.String getStackLabel()
public void setStackLabel(java.lang.String newValue)
newValue
- new stack trace button labelpublic void showMessage(java.lang.String msg)
msg
- the error messagepublic void showStack(java.lang.Exception exception)
exception
- the exception to showpublic void setVisible(boolean visible)
DISPLAY_MESSAGE_IN_WINDOW.
- Parameters:
visible
- if true
, the exception dialog is shown. If false
,
the dialog is hidden.
public boolean isVisible()
true
if the exception dialog is visible, else false
public java.awt.Component getRootNode()
|
EIP JavaBeans | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |