|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
com.ibm.as400.ui.framework.java.IllegalUserDataException
public class IllegalUserDataException extends IllegalArgumentException
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 Form| Constructor and Description |
|---|
IllegalUserDataException()
Constructs an IllegalUserDataException without a
detail message. |
IllegalUserDataException(String message)
Constructs an IllegalUserDataException with a detail message. |
IllegalUserDataException(String message,
String text)
Constructs an IllegalUserDataException with a detail message
and text to be displayed on the error dialog's titlebar |
| Modifier and Type | Method and Description |
|---|---|
Component |
getComponent()
Returns the UI component containing the user data which caused the exception to be thrown. |
String |
getComponentName()
Returns the name of the UI component containing the user data which caused the exception to be thrown. |
String |
getTitleBarText()
Returns the text to be displayed on the error dialog's TitleBar. |
void |
setComponent(Component c)
Sets the UI component containing the user data which caused the exception to be thrown. |
void |
setComponentName(String name)
Sets the UI component containing the user data which caused the exception to be thrown. |
void |
setTitleBarText(String text)
Sets the text to be displayed on the error dialog's TitleBar. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, 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(String message)
IllegalUserDataException with a detail message.
message - the detail message
public IllegalUserDataException(String message,
String text)
IllegalUserDataException with a detail message
and text to be displayed on the error dialog's titlebar
message - the detail messagetext - text for the titlebar| Method Detail |
|---|
public Component getComponent()
setComponent(java.awt.Component)public void setComponent(Component c)
c - The offending componentgetComponent()public String getComponentName()
setComponent(java.awt.Component)public void setComponentName(String name)
name - The name of the offending component, as specified
in the PDML.getComponent()public String getTitleBarText()
setTitleBarText(java.lang.String)public void setTitleBarText(String text)
text - the text to be displayed on the TitleBargetTitleBarText()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||