]> git.mxchange.org Git - jcore-swing.git/commitdiff
renamed jswingcore -> jcoreswing
authorRoland Haeder <roland@mxchange.org>
Tue, 29 Sep 2015 10:36:23 +0000 (12:36 +0200)
committerRoland Haeder <roland@mxchange.org>
Tue, 29 Sep 2015 10:36:23 +0000 (12:36 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

build.xml
nbproject/build-impl.xml
src/org/mxchange/jcoreswing/client/gui/ClientFrame.java [new file with mode: 0644]
src/org/mxchange/jcoreswing/model/BaseModel.java [new file with mode: 0644]
src/org/mxchange/jcoreswing/model/Model.java [new file with mode: 0644]
src/org/mxchange/jcoreswing/model/swing/contact/ContactTableModel.java [new file with mode: 0644]
src/org/mxchange/jswingcore/client/gui/ClientFrame.java [deleted file]
src/org/mxchange/jswingcore/model/BaseModel.java [deleted file]
src/org/mxchange/jswingcore/model/Model.java [deleted file]
src/org/mxchange/jswingcore/model/swing/contact/ContactTableModel.java [deleted file]

index 03688bdf4135519c67d6f621eee2d23907a4784f..0d46f2825f21c735cfb5ec0964abad531aadecfc 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -7,8 +7,8 @@
 <!-- the Compile on Save feature is turned off for the project. -->
 <!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
 <!-- in the project's Project Properties dialog box.-->
-<project name="jswingcore" default="default" basedir=".">
-    <description>Builds, tests, and runs the project jswingcore.</description>
+<project name="jcore-swing" default="default" basedir=".">
+    <description>Builds, tests, and runs the project jcore-swing.</description>
     <import file="nbproject/build-impl.xml"/>
     <!--
 
@@ -58,7 +58,7 @@
 
     An example of overriding the target for project execution could look like this:
 
-        <target name="run" depends="jswingcore-impl.jar">
+        <target name="run" depends="jcore-swing-impl.jar">
             <exec dir="bin" executable="launcher.exe">
                 <arg file="${dist.jar}"/>
             </exec>
index 43b32a4671161309f328336caab2ee106b265fea..e6c2f44647d62cdfb694a2042370fcc921643431 100644 (file)
@@ -19,7 +19,7 @@ is divided into following sections:
   - cleanup
 
 -->
-<project xmlns:j2seproject1="http://www.netbeans.org/ns/j2se-project/1" xmlns:j2seproject3="http://www.netbeans.org/ns/j2se-project/3" xmlns:jaxrpc="http://www.netbeans.org/ns/j2se-project/jax-rpc" basedir=".." default="default" name="jswingcore-impl">
+<project xmlns:j2seproject1="http://www.netbeans.org/ns/j2se-project/1" xmlns:j2seproject3="http://www.netbeans.org/ns/j2se-project/3" xmlns:jaxrpc="http://www.netbeans.org/ns/j2se-project/jax-rpc" basedir=".." default="default" name="jcore-swing-impl">
        <fail message="Please build using Ant 1.8.0 or higher.">
                <condition>
                        <not>
@@ -468,7 +468,7 @@ is divided into following sections:
                                        </fileset>
                                </union>
                                <taskdef classname="org.testng.TestNGAntTask" classpath="${run.test.classpath}" name="testng"/>
-                               <testng classfilesetref="test.set" failureProperty="tests.failed" listeners="org.testng.reporters.VerboseReporter" methods="${testng.methods.arg}" mode="${testng.mode}" outputdir="${build.test.results.dir}" suitename="jswingcore" testname="TestNG tests" workingDir="${work.dir}">
+                               <testng classfilesetref="test.set" failureProperty="tests.failed" listeners="org.testng.reporters.VerboseReporter" methods="${testng.methods.arg}" mode="${testng.mode}" outputdir="${build.test.results.dir}" suitename="jcore-swing" testname="TestNG tests" workingDir="${work.dir}">
                                        <xmlfileset dir="${build.test.classes.dir}" includes="@{testincludes}"/>
                                        <propertyset>
                                                <propertyref prefix="test-sys-prop."/>
@@ -619,7 +619,7 @@ is divided into following sections:
                                <condition else="-testclass @{testClass}" property="test.class.or.method" value="-methods @{testClass}.@{testMethod}">
                                        <isset property="test.method"/>
                                </condition>
-                               <condition else="-suitename jswingcore -testname @{testClass} ${test.class.or.method}" property="testng.cmd.args" value="@{testClass}">
+                               <condition else="-suitename jcore-swing -testname @{testClass} ${test.class.or.method}" property="testng.cmd.args" value="@{testClass}">
                                        <matches pattern=".*\.xml" string="@{testClass}"/>
                                </condition>
                                <delete dir="${build.test.results.dir}" quiet="true"/>
@@ -911,7 +911,7 @@ is divided into following sections:
                <delete file="${built-jar.properties}" quiet="true"/>
        </target>
        <target if="already.built.jar.${basedir}" name="-warn-already-built-jar">
-               <echo level="warn" message="Cycle detected: jswingcore was already built"/>
+               <echo level="warn" message="Cycle detected: jcore-swing was already built"/>
        </target>
        <target depends="init,-deps-jar-init" name="deps-jar" unless="no.deps">
                <mkdir dir="${build.dir}"/>
@@ -1396,7 +1396,7 @@ is divided into following sections:
                <delete file="${built-clean.properties}" quiet="true"/>
        </target>
        <target if="already.built.clean.${basedir}" name="-warn-already-built-clean">
-               <echo level="warn" message="Cycle detected: jswingcore was already built"/>
+               <echo level="warn" message="Cycle detected: jcore-swing was already built"/>
        </target>
        <target depends="init,-deps-clean-init" name="deps-clean" unless="no.deps">
                <mkdir dir="${build.dir}"/>
diff --git a/src/org/mxchange/jcoreswing/client/gui/ClientFrame.java b/src/org/mxchange/jcoreswing/client/gui/ClientFrame.java
new file mode 100644 (file)
index 0000000..715118a
--- /dev/null
@@ -0,0 +1,78 @@
+/*
+ * Copyright (C) 2015 Roland Haeder
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+package org.mxchange.jcoreswing.client.gui;
+
+import java.io.IOException;
+import org.mxchange.jcore.FrameworkInterface;
+import org.mxchange.jcore.client.Client;
+import org.mxchange.jcore.exceptions.FrameAlreadyInitializedException;
+import org.mxchange.jcore.model.contact.Contact;
+
+/**
+ * An interface for applications with a Swing frame
+ * <p>
+ * @author Roland Haeder
+ */
+public interface ClientFrame extends FrameworkInterface {
+
+       /**
+        * Shows the user the "add contact" form with some special text
+        * <p>
+        * @return Contact instance
+        */
+       public Contact doEnterOwnData ();
+
+       /**
+        * Shutdown this frame
+        */
+       public void doShutdown ();
+
+       /**
+        * Enables main window (frame)
+        */
+       public void enableMainWindow ();
+
+       /**
+        * Setups the frame (and starts it). You have to call init() before you can
+        * call this method.
+        * <p>
+        * @param client Client instance
+        * @throws java.io.IOException If an IO error was found
+        */
+       public void setupFrame (final Client client) throws IOException;
+
+       /**
+        * Initializes frame
+        * <p>
+        * @throws org.mxchange.jcore.exceptions.FrameAlreadyInitializedException If
+        * this method has been called twice
+        */
+       public void init () throws FrameAlreadyInitializedException;
+
+       /**
+        * Returns field isInitialized. This flag indicates whether this frame has
+        * been initialized or not.
+        * <p>
+        * @return Field isInitialized
+        */
+       public boolean isInitialized ();
+
+       /**
+        * Shuts down application
+        */
+       public void shutdownApplication ();
+}
diff --git a/src/org/mxchange/jcoreswing/model/BaseModel.java b/src/org/mxchange/jcoreswing/model/BaseModel.java
new file mode 100644 (file)
index 0000000..14e3d51
--- /dev/null
@@ -0,0 +1,131 @@
+/*
+ * Copyright (C) 2015 Roland Haeder
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+package org.mxchange.jcoreswing.model;
+
+import java.text.MessageFormat;
+import javax.swing.event.EventListenerList;
+import javax.swing.event.ListDataListener;
+import javax.swing.event.TableModelListener;
+import org.mxchange.jcore.BaseFrameworkSystem;
+
+/**
+ * A general model class
+ * <p>
+ * @author Roland Haeder
+ */
+public abstract class BaseModel extends BaseFrameworkSystem implements Model {
+
+       /**
+        * List of event listeners
+        */
+       private final EventListenerList eventListenerList;
+
+       /**
+        * Protected constructor
+        */
+       protected BaseModel () {
+               // Trace message
+               this.getLogger().trace("CALLED!"); //NOI18N
+
+               // Init listener list
+               this.eventListenerList = new EventListenerList();
+       }
+
+       @Override
+       public void addListDataListener (final ListDataListener listener) {
+               // Trace message
+               this.getLogger().trace(MessageFormat.format("listener={0}", listener)); //NOI18N
+
+               // Listener must not be null
+               if (null == listener) {
+                       // Abort here
+                       throw new NullPointerException("listener is null"); //NOI18N
+               }
+
+               // Debug message
+               this.getLogger().debug(MessageFormat.format("Adding listener {0} ...", listener.getClass())); //NOI18N
+
+               // Remove listener
+               this.eventListenerList.add(ListDataListener.class, listener);
+
+               // Trace message
+               this.getLogger().trace("EXIT!"); //NOI18N
+       }
+
+       @Override
+       public void addTableModelListener (final TableModelListener listener) {
+               // Trace message
+               this.getLogger().trace(MessageFormat.format("listener={0}", listener)); //NOI18N
+
+               // Listener must not be null
+               if (null == listener) {
+                       // Abort here
+                       throw new NullPointerException("listener is null"); //NOI18N
+               }
+
+               // Debug message
+               this.getLogger().debug(MessageFormat.format("Adding listener {0} ...", listener.getClass())); //NOI18N
+
+               // Add listener
+               this.eventListenerList.add(TableModelListener.class, listener);
+
+               // Trace message
+               this.getLogger().trace("EXIT!"); //NOI18N
+       }
+
+       @Override
+       public void removeListDataListener (final ListDataListener listener) {
+               // Trace message
+               this.getLogger().trace(MessageFormat.format("listener={0}", listener)); //NOI18N
+
+               // Listener must not be null
+               if (null == listener) {
+                       // Abort here
+                       throw new NullPointerException("listener is null"); //NOI18N
+               }
+
+               // Debug message
+               this.getLogger().debug(MessageFormat.format("Removing listener {0} ...", listener.getClass())); //NOI18N
+
+               // Remove listener
+               this.eventListenerList.remove(ListDataListener.class, listener);
+
+               // Trace message
+               this.getLogger().trace("EXIT!"); //NOI18N
+       }
+
+       @Override
+       public void removeTableModelListener (final TableModelListener listener) {
+               // Trace message
+               this.getLogger().trace(MessageFormat.format("listener={0}", listener)); //NOI18N
+
+               // Listener must not be null
+               if (null == listener) {
+                       // Abort here
+                       throw new NullPointerException("listener is null"); //NOI18N
+               }
+
+               // Debug message
+               this.getLogger().debug(MessageFormat.format("Removing listener {0} ...", listener.getClass())); //NOI18N
+
+               // Remove listener
+               this.eventListenerList.remove(TableModelListener.class, listener);
+
+               // Trace message
+               this.getLogger().trace("EXIT!"); //NOI18N
+       }
+}
diff --git a/src/org/mxchange/jcoreswing/model/Model.java b/src/org/mxchange/jcoreswing/model/Model.java
new file mode 100644 (file)
index 0000000..38c3a2a
--- /dev/null
@@ -0,0 +1,57 @@
+/*
+ * Copyright (C) 2015 Roland Haeder
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+package org.mxchange.jcoreswing.model;
+
+import javax.swing.event.ListDataListener;
+import javax.swing.event.TableModelListener;
+import org.mxchange.jcore.FrameworkInterface;
+
+/**
+ * A general interface for models
+ * <p>
+ * @author Roland Haeder
+ */
+public interface Model extends FrameworkInterface {
+
+       /**
+        * Adds a lister of this type to the list
+        * <p>
+        * @param listener Listener instance
+        */
+       public void addListDataListener (final ListDataListener listener);
+
+       /**
+        * Adds a TableModel listener instance to the event list.
+        * <p>
+        * @param listener Lister instance
+        */
+       public void addTableModelListener (final TableModelListener listener);
+
+       /**
+        * Removes given listener
+        * <p>
+        * @param listener Listener instance
+        */
+       public void removeListDataListener (final ListDataListener listener);
+
+       /**
+        * Removes a TableModel listener instance from the event list.
+        * <p>
+        * @param listener Listener instance
+        */
+       public void removeTableModelListener (final TableModelListener listener);
+}
diff --git a/src/org/mxchange/jcoreswing/model/swing/contact/ContactTableModel.java b/src/org/mxchange/jcoreswing/model/swing/contact/ContactTableModel.java
new file mode 100644 (file)
index 0000000..303ef28
--- /dev/null
@@ -0,0 +1,91 @@
+/*
+ * Copyright (C) 2015 Roland Haeder
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+package org.mxchange.jcoreswing.model.swing.contact;
+
+import java.text.MessageFormat;
+import javax.swing.table.TableModel;
+import org.mxchange.jcore.manager.Manageable;
+import org.mxchange.jcore.model.contact.Contact;
+import org.mxchange.jcoreswing.model.BaseModel;
+import org.mxchange.jcoreswing.model.Model;
+
+/**
+ * A table model for contacts
+ * <p>
+ * @author Roland Haeder
+ */
+public class ContactTableModel extends BaseModel implements Model, TableModel {
+
+       /**
+        * Constructor with manager instance which holds the contact manager
+        * <p>
+        * @param manager Manageable instance
+        */
+       public ContactTableModel (final Manageable manager) {
+               // Trace message
+               this.getLogger().trace(MessageFormat.format("manager={1} - CALLED!", manager)); //NOI18N
+
+               // Manager must not be null
+               if (null == manager) {
+                       // Abort here
+                       throw new NullPointerException("manager is null"); //NOI18N
+               }
+
+               // Set manager
+               this.setManager(manager);
+       }
+
+       @Override
+       public Class<?> getColumnClass (final int columnIndex) {
+               // All is the same
+               return Contact.class;
+       }
+
+       @Override
+       public int getColumnCount () {
+               // Unfinished
+               throw new UnsupportedOperationException("Unfinished method.");
+       }
+
+       @Override
+       public String getColumnName (final int columnIndex) {
+               // Unfinished
+               throw new UnsupportedOperationException("Unfinished method.");
+       }
+
+       @Override
+       public int getRowCount () {
+               // Unfinished
+               throw new UnsupportedOperationException("Unfinished method.");
+       }
+
+       @Override
+       public Object getValueAt (final int rowIndex, final int columnIndex) {
+               // Unfinished
+               throw new UnsupportedOperationException("Unfinished method.");
+       }
+
+       @Override
+       public boolean isCellEditable (final int rowIndex, final int columnIndex) {
+               throw new UnsupportedOperationException("Not supported yet. rowIndex=" + rowIndex + ",columnIndex=" + columnIndex); //To change body of generated methods, choose Tools | Templates.
+       }
+
+       @Override
+       public void setValueAt (final Object value, final int rowIndex, final int columnIndex) {
+               throw new UnsupportedOperationException("Not supported yet. value=" + value + ",rowIndex=" + rowIndex + ",columnIndex=" + columnIndex); //To change body of generated methods, choose Tools | Templates.
+       }
+}
diff --git a/src/org/mxchange/jswingcore/client/gui/ClientFrame.java b/src/org/mxchange/jswingcore/client/gui/ClientFrame.java
deleted file mode 100644 (file)
index c77c4a2..0000000
+++ /dev/null
@@ -1,78 +0,0 @@
-/*
- * Copyright (C) 2015 Roland Haeder
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
- */
-package org.mxchange.jswingcore.client.gui;
-
-import java.io.IOException;
-import org.mxchange.jcore.FrameworkInterface;
-import org.mxchange.jcore.client.Client;
-import org.mxchange.jcore.exceptions.FrameAlreadyInitializedException;
-import org.mxchange.jcore.model.contact.Contact;
-
-/**
- * An interface for applications with a Swing frame
- * <p>
- * @author Roland Haeder
- */
-public interface ClientFrame extends FrameworkInterface {
-
-       /**
-        * Shows the user the "add contact" form with some special text
-        * <p>
-        * @return Contact instance
-        */
-       public Contact doEnterOwnData ();
-
-       /**
-        * Shutdown this frame
-        */
-       public void doShutdown ();
-
-       /**
-        * Enables main window (frame)
-        */
-       public void enableMainWindow ();
-
-       /**
-        * Setups the frame (and starts it). You have to call init() before you can
-        * call this method.
-        * <p>
-        * @param client Client instance
-        * @throws java.io.IOException If an IO error was found
-        */
-       public void setupFrame (final Client client) throws IOException;
-
-       /**
-        * Initializes frame
-        * <p>
-        * @throws org.mxchange.jcore.exceptions.FrameAlreadyInitializedException If
-        * this method has been called twice
-        */
-       public void init () throws FrameAlreadyInitializedException;
-
-       /**
-        * Returns field isInitialized. This flag indicates whether this frame has
-        * been initialized or not.
-        * <p>
-        * @return Field isInitialized
-        */
-       public boolean isInitialized ();
-
-       /**
-        * Shuts down application
-        */
-       public void shutdownApplication ();
-}
diff --git a/src/org/mxchange/jswingcore/model/BaseModel.java b/src/org/mxchange/jswingcore/model/BaseModel.java
deleted file mode 100644 (file)
index 3733337..0000000
+++ /dev/null
@@ -1,131 +0,0 @@
-/*
- * Copyright (C) 2015 Roland Haeder
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
- */
-package org.mxchange.jswingcore.model;
-
-import java.text.MessageFormat;
-import javax.swing.event.EventListenerList;
-import javax.swing.event.ListDataListener;
-import javax.swing.event.TableModelListener;
-import org.mxchange.jcore.BaseFrameworkSystem;
-
-/**
- * A general model class
- * <p>
- * @author Roland Haeder
- */
-public abstract class BaseModel extends BaseFrameworkSystem implements Model {
-
-       /**
-        * List of event listeners
-        */
-       private final EventListenerList eventListenerList;
-
-       /**
-        * Protected constructor
-        */
-       protected BaseModel () {
-               // Trace message
-               this.getLogger().trace("CALLED!"); //NOI18N
-
-               // Init listener list
-               this.eventListenerList = new EventListenerList();
-       }
-
-       @Override
-       public void addListDataListener (final ListDataListener listener) {
-               // Trace message
-               this.getLogger().trace(MessageFormat.format("listener={0}", listener)); //NOI18N
-
-               // Listener must not be null
-               if (null == listener) {
-                       // Abort here
-                       throw new NullPointerException("listener is null"); //NOI18N
-               }
-
-               // Debug message
-               this.getLogger().debug(MessageFormat.format("Adding listener {0} ...", listener.getClass())); //NOI18N
-
-               // Remove listener
-               this.eventListenerList.add(ListDataListener.class, listener);
-
-               // Trace message
-               this.getLogger().trace("EXIT!"); //NOI18N
-       }
-
-       @Override
-       public void addTableModelListener (final TableModelListener listener) {
-               // Trace message
-               this.getLogger().trace(MessageFormat.format("listener={0}", listener)); //NOI18N
-
-               // Listener must not be null
-               if (null == listener) {
-                       // Abort here
-                       throw new NullPointerException("listener is null"); //NOI18N
-               }
-
-               // Debug message
-               this.getLogger().debug(MessageFormat.format("Adding listener {0} ...", listener.getClass())); //NOI18N
-
-               // Add listener
-               this.eventListenerList.add(TableModelListener.class, listener);
-
-               // Trace message
-               this.getLogger().trace("EXIT!"); //NOI18N
-       }
-
-       @Override
-       public void removeListDataListener (final ListDataListener listener) {
-               // Trace message
-               this.getLogger().trace(MessageFormat.format("listener={0}", listener)); //NOI18N
-
-               // Listener must not be null
-               if (null == listener) {
-                       // Abort here
-                       throw new NullPointerException("listener is null"); //NOI18N
-               }
-
-               // Debug message
-               this.getLogger().debug(MessageFormat.format("Removing listener {0} ...", listener.getClass())); //NOI18N
-
-               // Remove listener
-               this.eventListenerList.remove(ListDataListener.class, listener);
-
-               // Trace message
-               this.getLogger().trace("EXIT!"); //NOI18N
-       }
-
-       @Override
-       public void removeTableModelListener (final TableModelListener listener) {
-               // Trace message
-               this.getLogger().trace(MessageFormat.format("listener={0}", listener)); //NOI18N
-
-               // Listener must not be null
-               if (null == listener) {
-                       // Abort here
-                       throw new NullPointerException("listener is null"); //NOI18N
-               }
-
-               // Debug message
-               this.getLogger().debug(MessageFormat.format("Removing listener {0} ...", listener.getClass())); //NOI18N
-
-               // Remove listener
-               this.eventListenerList.remove(TableModelListener.class, listener);
-
-               // Trace message
-               this.getLogger().trace("EXIT!"); //NOI18N
-       }
-}
diff --git a/src/org/mxchange/jswingcore/model/Model.java b/src/org/mxchange/jswingcore/model/Model.java
deleted file mode 100644 (file)
index eaafd67..0000000
+++ /dev/null
@@ -1,57 +0,0 @@
-/*
- * Copyright (C) 2015 Roland Haeder
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
- */
-package org.mxchange.jswingcore.model;
-
-import javax.swing.event.ListDataListener;
-import javax.swing.event.TableModelListener;
-import org.mxchange.jcore.FrameworkInterface;
-
-/**
- * A general interface for models
- * <p>
- * @author Roland Haeder
- */
-public interface Model extends FrameworkInterface {
-
-       /**
-        * Adds a lister of this type to the list
-        * <p>
-        * @param listener Listener instance
-        */
-       public void addListDataListener (final ListDataListener listener);
-
-       /**
-        * Adds a TableModel listener instance to the event list.
-        * <p>
-        * @param listener Lister instance
-        */
-       public void addTableModelListener (final TableModelListener listener);
-
-       /**
-        * Removes given listener
-        * <p>
-        * @param listener Listener instance
-        */
-       public void removeListDataListener (final ListDataListener listener);
-
-       /**
-        * Removes a TableModel listener instance from the event list.
-        * <p>
-        * @param listener Listener instance
-        */
-       public void removeTableModelListener (final TableModelListener listener);
-}
diff --git a/src/org/mxchange/jswingcore/model/swing/contact/ContactTableModel.java b/src/org/mxchange/jswingcore/model/swing/contact/ContactTableModel.java
deleted file mode 100644 (file)
index 55bb0b9..0000000
+++ /dev/null
@@ -1,91 +0,0 @@
-/*
- * Copyright (C) 2015 Roland Haeder
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
- */
-package org.mxchange.jswingcore.model.swing.contact;
-
-import java.text.MessageFormat;
-import javax.swing.table.TableModel;
-import org.mxchange.jcore.manager.Manageable;
-import org.mxchange.jcore.model.contact.Contact;
-import org.mxchange.jswingcore.model.BaseModel;
-import org.mxchange.jswingcore.model.Model;
-
-/**
- * A table model for contacts
- * <p>
- * @author Roland Haeder
- */
-public class ContactTableModel extends BaseModel implements Model, TableModel {
-
-       /**
-        * Constructor with manager instance which holds the contact manager
-        * <p>
-        * @param manager Manageable instance
-        */
-       public ContactTableModel (final Manageable manager) {
-               // Trace message
-               this.getLogger().trace(MessageFormat.format("manager={1} - CALLED!", manager)); //NOI18N
-
-               // Manager must not be null
-               if (null == manager) {
-                       // Abort here
-                       throw new NullPointerException("manager is null"); //NOI18N
-               }
-
-               // Set manager
-               this.setManager(manager);
-       }
-
-       @Override
-       public Class<?> getColumnClass (final int columnIndex) {
-               // All is the same
-               return Contact.class;
-       }
-
-       @Override
-       public int getColumnCount () {
-               // Unfinished
-               throw new UnsupportedOperationException("Unfinished method.");
-       }
-
-       @Override
-       public String getColumnName (final int columnIndex) {
-               // Unfinished
-               throw new UnsupportedOperationException("Unfinished method.");
-       }
-
-       @Override
-       public int getRowCount () {
-               // Unfinished
-               throw new UnsupportedOperationException("Unfinished method.");
-       }
-
-       @Override
-       public Object getValueAt (final int rowIndex, final int columnIndex) {
-               // Unfinished
-               throw new UnsupportedOperationException("Unfinished method.");
-       }
-
-       @Override
-       public boolean isCellEditable (final int rowIndex, final int columnIndex) {
-               throw new UnsupportedOperationException("Not supported yet. rowIndex=" + rowIndex + ",columnIndex=" + columnIndex); //To change body of generated methods, choose Tools | Templates.
-       }
-
-       @Override
-       public void setValueAt (final Object value, final int rowIndex, final int columnIndex) {
-               throw new UnsupportedOperationException("Not supported yet. value=" + value + ",rowIndex=" + rowIndex + ",columnIndex=" + columnIndex); //To change body of generated methods, choose Tools | Templates.
-       }
-}