* @param msgDisplay msg display implmentation. May be <code>null</code>.
* providing field validation feedback
* @return A new {@link IErrorHandler} impl instance.
*/
public static ErrorHandlerDelegate build(final boolean billboard, final boolean field, final IMsgDisplay msgDisplay) {
FieldErrorHandler feh = null;
BillboardValidationFeedback bvf = null;
if(billboard && msgDisplay != null) {
bvf = new BillboardValidationFeedback(msgDisplay);
}
if(field) {
feh = new FieldErrorHandler(new MsgPopupRegistry());
}
if(feh != null && bvf != null) {
return new ErrorHandlerDelegate(bvf, feh);
}