2 * Copyright (C) 2015 Roland Haeder
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.
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.
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/>.
17 package org.mxchange.jcoreswing.model;
19 import javax.swing.event.ListDataListener;
20 import javax.swing.event.TableModelListener;
21 import org.mxchange.jcore.FrameworkInterface;
24 * A general interface for models
26 * @author Roland Haeder
28 public interface Model extends FrameworkInterface {
31 * Adds a lister of this type to the list
33 * @param listener Listener instance
35 public void addListDataListener (final ListDataListener listener);
38 * Adds a TableModel listener instance to the event list.
40 * @param listener Lister instance
42 public void addTableModelListener (final TableModelListener listener);
45 * Removes given listener
47 * @param listener Listener instance
49 public void removeListDataListener (final ListDataListener listener);
52 * Removes a TableModel listener instance from the event list.
54 * @param listener Listener instance
56 public void removeTableModelListener (final TableModelListener listener);