import javax.swing.event.ListDataListener;
import javax.swing.event.TableModelListener;
import org.mxchange.jcore.BaseFrameworkSystem;
+import org.mxchange.jcore.facade.Facade;
/**
* A general model class
this.eventListenerList = new EventListenerList();
}
+ /**
+ * Constructor with a facade
+ * <p>
+ * @param facade Facade instance
+ */
+ protected BaseModel (final Facade facade) {
+ // Call super constructor
+ super(facade);
+
+ // Init listener list
+ this.eventListenerList = new EventListenerList();
+ }
+
@Override
public void addListDataListener (final ListDataListener listener) {
// Listener must not be null
* @param facade Facade instance
*/
public ContactTableModel (final Facade facade) {
- // Facade must not be null
- if (null == facade) {
- // Abort here
- throw new NullPointerException("facade is null"); //NOI18N
- }
-
- // Set manager
- this.setFacade(facade);
+ // Invoke parent constructor
+ super(facade);
}
@Override