]> git.mxchange.org Git - jcore-swing.git/blob - src/org/mxchange/jcoreswing/model/Model.java
Continued:
[jcore-swing.git] / src / org / mxchange / jcoreswing / model / Model.java
1 /*
2  * Copyright (C) 2016 Roland Haeder
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
16  */
17 package org.mxchange.jcoreswing.model;
18
19 import javax.swing.event.ListDataListener;
20 import javax.swing.event.TableModelListener;
21 import org.mxchange.jcore.FrameworkInterface;
22
23 /**
24  * A general interface for models
25  * <p>
26  * @author Roland Haeder<roland@mxchange.org>
27  */
28 public interface Model extends FrameworkInterface {
29
30         /**
31          * Adds a lister of this type to the list
32          * <p>
33          * @param listener Listener instance
34          */
35         void addListDataListener (final ListDataListener listener);
36
37         /**
38          * Adds a TableModel listener instance to the event list.
39          * <p>
40          * @param listener Lister instance
41          */
42         void addTableModelListener (final TableModelListener listener);
43
44         /**
45          * Removes given listener
46          * <p>
47          * @param listener Listener instance
48          */
49         void removeListDataListener (final ListDataListener listener);
50
51         /**
52          * Removes a TableModel listener instance from the event list.
53          * <p>
54          * @param listener Listener instance
55          */
56         void removeTableModelListener (final TableModelListener listener);
57
58 }