com.jgoodies.validation
Interface ValidationResultModelProvider


public interface ValidationResultModelProvider

Describes objects that provide ValidationResultModels. Useful for contexts where the ValidationResultModel cannot be accessed directly, because its provider is null. In the following example, the model may be null (if the view is launched without model):

 return IconFeedbackPanel.getWrappedComponentTree(
           model.getValidationResultModel(),       // Fails if model == null
           builder.getPanel());

 return IconFeedbackPanel.getWrappedComponentTree(
           model,                                  // Works if model == null
           builder.getPanel());
 

Since:
2.3
Version:
$Revision: 1.14 $
Author:
Karsten Lentzsch

Method Summary
 ValidationResultModel getValidationResultModel()
          Returns this provider's validation result model.
 

Method Detail

getValidationResultModel

ValidationResultModel getValidationResultModel()
Returns this provider's validation result model.

Returns:
the validation result model


Copyright © 2003-2011 JGoodies Karsten Lentzsch. All Rights Reserved.