]> git.mxchange.org Git - jaddressbook-share-lib.git/blobdiff - Addressbook/src/org/mxchange/addressbook/model/address/AddressTableModel.java
Added trace messages
[jaddressbook-share-lib.git] / Addressbook / src / org / mxchange / addressbook / model / address / AddressTableModel.java
index d386b95131117352d126670c6ee80a8806e8d12d..0041637c1ed243454f26673c6fcb0314060bb7ef 100644 (file)
@@ -1,77 +1,79 @@
-/*\r
- * Copyright (C) 2015 Roland Haeder\r
- *\r
- * This program is free software: you can redistribute it and/or modify\r
- * it under the terms of the GNU General Public License as published by\r
- * the Free Software Foundation, either version 3 of the License, or\r
- * (at your option) any later version.\r
- *\r
- * This program is distributed in the hope that it will be useful,\r
- * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
- * GNU General Public License for more details.\r
- *\r
- * You should have received a copy of the GNU General Public License\r
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.\r
- */\r
-package org.mxchange.addressbook.model.address;\r
-\r
-import javax.swing.table.TableModel;\r
-import org.mxchange.addressbook.client.Client;\r
-import org.mxchange.addressbook.model.BaseModel;\r
-\r
-/**\r
- *\r
- * @author Roland Haeder\r
- */\r
-public class AddressTableModel extends BaseModel implements TableModel {\r
-\r
-    /**\r
-     * Constructor with Client instance which holds the contact manager\r
-     *\r
-     * @param client Client instance\r
-     */\r
-    public AddressTableModel (final Client client) {\r
-       // Parent super constructor\r
-       super();\r
-\r
-       // Set client\r
-       this.setClient(client);\r
-    }\r
-\r
-    @Override\r
-    public Class<?> getColumnClass (final int columnIndex) {\r
-       throw new UnsupportedOperationException("Not supported yet. columnIndex=" + columnIndex); //To change body of generated methods, choose Tools | Templates.\r
-    }\r
-\r
-    @Override\r
-    public int getColumnCount () {\r
-       // Deligate this call to the contact manager\r
-       return this.getClient().getContactManager().getColumnCount();\r
-    }\r
-\r
-    @Override\r
-    public String getColumnName (final int columnIndex) {\r
-       throw new UnsupportedOperationException("Not supported yet. columnIndex=" + columnIndex); //To change body of generated methods, choose Tools | Templates.\r
-    }\r
-\r
-    @Override\r
-    public int getRowCount () {\r
-       throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.\r
-    }\r
-\r
-    @Override\r
-    public Object getValueAt (final int rowIndex, final int columnIndex) {\r
-       throw new UnsupportedOperationException("Not supported yet. rowIndex=" + rowIndex + ",columnIndex=" + columnIndex); //To change body of generated methods, choose Tools | Templates.\r
-    }\r
-\r
-    @Override\r
-    public boolean isCellEditable (final int rowIndex, final int columnIndex) {\r
-       throw new UnsupportedOperationException("Not supported yet. rowIndex=" + rowIndex + ",columnIndex=" + columnIndex); //To change body of generated methods, choose Tools | Templates.\r
-    }\r
-\r
-    @Override\r
-    public void setValueAt (final Object value, final int rowIndex, final int columnIndex) {\r
-       throw new UnsupportedOperationException("Not supported yet. value=" + value + ",rowIndex=" + rowIndex + ",columnIndex=" + columnIndex); //To change body of generated methods, choose Tools | Templates.\r
-    }\r
-}\r
+/*
+ * 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.addressbook.model.address;
+
+import javax.swing.table.TableModel;
+import org.mxchange.addressbook.client.Client;
+import org.mxchange.addressbook.model.BaseModel;
+
+/**
+ *
+ * @author Roland Haeder
+ */
+public class AddressTableModel extends BaseModel implements TableModel {
+
+    /**
+     * Constructor with Client instance which holds the contact manager
+     *
+     * @param client Client instance
+     */
+    public AddressTableModel (final Client client) {
+       // Parent super constructor
+       super();
+
+       // Set client
+       this.setClient(client);
+    }
+
+    @Override
+    public Class<?> getColumnClass (final int columnIndex) {
+       throw new UnsupportedOperationException("Not supported yet. columnIndex=" + columnIndex); //To change body of generated methods, choose Tools | Templates.
+    }
+
+    @Override
+    public int getColumnCount () {
+       // Deligate this call to contact manager
+       return this.getClient().getContactManager().getColumnCount();
+    }
+
+    @Override
+    public String getColumnName (final int columnIndex) {
+       // Deligate this call to contact manager
+       return this.getClient().getContactManager().getColumnName(columnIndex);
+    }
+
+    @Override
+    public int getRowCount () {
+       // Deligate this call to contact manager
+       return this.getClient().getContactManager().size();
+    }
+
+    @Override
+    public Object getValueAt (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 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.
+    }
+}