|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--java.lang.RuntimeException | +--java.lang.IllegalArgumentException | +--com.ibm.as400.ui.framework.java.IllegalUserDataException
Thrown when data supplied by the user is found to be invalid. The component containing the invalid data may be identified either by supplying a reference to the Swing component, or by supplying the name as specified in the PDML.
When thrown by a DataBean
settor method, the component
information need not be supplied, since the Graphical Toolbox runtime
already knows which component is affected. However, when the exception
is thrown by verifyChanges
, the application must indicate
which UI component contains the invalid data.
If the detail message is null the Graphical Toolbox runtime will not display a MessageBoxDialog when it catches an IllegalUserDataException.
DataBean.verifyChanges()
, Serialized FormConstructor Summary | |
IllegalUserDataException()
Constructs an IllegalUserDataException without a
detail message. |
|
IllegalUserDataException(java.lang.String message)
Constructs an IllegalUserDataException with a detail message. |
|
IllegalUserDataException(java.lang.String message,
java.lang.String text)
Constructs an IllegalUserDataException with a detail message
and text to be displayed on the error dialog's titlebar |
Method Summary | |
java.awt.Component |
getComponent()
Returns the UI component containing the user data which caused the exception to be thrown. |
java.lang.String |
getComponentName()
Returns the name of the UI component containing the user data which caused the exception to be thrown. |
java.lang.String |
getTitleBarText()
Returns the text to be displayed on the error dialog's TitleBar. |
void |
setComponent(java.awt.Component c)
Sets the UI component containing the user data which caused the exception to be thrown. |
void |
setComponentName(java.lang.String name)
Sets the UI component containing the user data which caused the exception to be thrown. |
void |
setTitleBarText(java.lang.String text)
Sets the text to be displayed on the error dialog's TitleBar. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public IllegalUserDataException()
IllegalUserDataException
without a
detail message.public IllegalUserDataException(java.lang.String message)
IllegalUserDataException
with a detail message.message
- the detail messagepublic IllegalUserDataException(java.lang.String message, java.lang.String text)
IllegalUserDataException
with a detail message
and text to be displayed on the error dialog's titlebarmessage
- the detail messagetext
- text for the titlebarMethod Detail |
public java.awt.Component getComponent()
setComponent(java.awt.Component)
public void setComponent(java.awt.Component c)
c
- The offending componentgetComponent()
public java.lang.String getComponentName()
setComponent(java.awt.Component)
public void setComponentName(java.lang.String name)
name
- The name of the offending component, as specified
in the PDML.getComponent()
public java.lang.String getTitleBarText()
setTitleBarText(java.lang.String)
public void setTitleBarText(java.lang.String text)
text
- the text to be displayed on the TitleBargetTitleBarText()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |