001package org.gwtbootstrap3.client.ui.form.error; 002 003import java.util.List; 004 005import com.google.gwt.editor.client.EditorError; 006 007/* 008 * #%L 009 * GwtBootstrap3 010 * %% 011 * Copyright (C) 2015 GwtBootstrap3 012 * %% 013 * Licensed under the Apache License, Version 2.0 (the "License"); 014 * you may not use this file except in compliance with the License. 015 * You may obtain a copy of the License at 016 * 017 * http://www.apache.org/licenses/LICENSE-2.0 018 * 019 * Unless required by applicable law or agreed to in writing, software 020 * distributed under the License is distributed on an "AS IS" BASIS, 021 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 022 * See the License for the specific language governing permissions and 023 * limitations under the License. 024 * #L% 025 */ 026 027/** 028 * Error handler. 029 * 030 * @author Steven Jardine 031 */ 032public interface ErrorHandler { 033 034 /** 035 * Clean up the handler if necessary. 036 */ 037 void cleanup(); 038 039 /** 040 * Clear any errors. 041 */ 042 void clearErrors(); 043 044 /** 045 * Show the errors on the input screen. 046 * 047 * @param errors the errors to display. 048 */ 049 void showErrors(List<EditorError> errors); 050 051}