01: /*
02: * SwingML Copyright (C) 2002 SwingML Team
03: *
04: * This library is free software; you can redistribute it and/or modify it under
05: * the terms of the GNU Lesser General Public License as published by the Free
06: * Software Foundation; either version 2 of the License, or (at your option) any
07: * later version.
08: *
09: * This library is distributed in the hope that it will be useful, but WITHOUT
10: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11: * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12: * details.
13: *
14: * You should have received a copy of the GNU Lesser General Public License
15: * along with this library; if not, write to the Free Software Foundation, Inc.,
16: * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17: *
18: * Authors: Adi Rosenblum <arosenblum@crosslogic.com>
19: */
20:
21: package org.swingml.model;
22:
23: import org.swingml.*;
24: import org.swingml.errors.handlers.*;
25:
26: public class ErrorHandlerModel extends SwingMLModel {
27:
28: private int errorType;
29: private ISwingMLErrorHandler handler;
30:
31: public ErrorHandlerModel() {
32: super ();
33: }
34:
35: public int getErrorType() {
36: return errorType;
37: }
38:
39: public ISwingMLErrorHandler getHandler() {
40: return handler;
41: }
42:
43: public void setErrorType(int type) {
44: this .errorType = type;
45: }
46:
47: public void setHandler(ISwingMLErrorHandler aHandler) {
48: this .handler = aHandler;
49: }
50:
51: public void validate() {
52: }
53: }
|