at.spardat.xma.mdl
Class ValidationErrorClient

java.lang.Object
  extended byat.spardat.xma.mdl.ValidationErrorClient

public class ValidationErrorClient
extends java.lang.Object

An object of this class indicates that the value provided by the user in a particular SimpleWM is not an accepted input.


Constructor Summary
ValidationErrorClient(WModel wModel, java.lang.Object control, java.lang.String label, at.spardat.enterprise.fmt.AParseException ex)
          Constructor.
 
Method Summary
 java.lang.Object getControl()
          Returns the control which is in error.
 java.lang.String getErrorText(java.util.Locale l)
          Returns an internationalized error message of the defect.
 WModel getWModel()
          Returns the widget model whose UI is in error.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidationErrorClient

public ValidationErrorClient(WModel wModel,
                             java.lang.Object control,
                             java.lang.String label,
                             at.spardat.enterprise.fmt.AParseException ex)
Constructor.

Parameters:
wModel - the WModel whose UI is in error
control - the UI control, e.g., a SWT control
label - text describing the label of a control; may be null;
ex - an exception indicating the reason of the error
Method Detail

getControl

public java.lang.Object getControl()
Returns the control which is in error.

Returns:
the UI control

getWModel

public WModel getWModel()
Returns the widget model whose UI is in error.

Returns:
widget model

getErrorText

public java.lang.String getErrorText(java.util.Locale l)
Returns an internationalized error message of the defect.

Returns:
error message