axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thil...@apache.org
Subject svn commit: r469388 - /webservices/axis2/branches/java/1_1/modules/tool/axis2-idea-plugin/src/main/java/org/apache/axis2/tools/idea/PackageNameTableModel.java
Date Tue, 31 Oct 2006 06:23:57 GMT
Author: thilina
Date: Mon Oct 30 22:23:57 2006
New Revision: 469388

URL: http://svn.apache.org/viewvc?view=rev&rev=469388
Log: (empty)

Added:
    webservices/axis2/branches/java/1_1/modules/tool/axis2-idea-plugin/src/main/java/org/apache/axis2/tools/idea/PackageNameTableModel.java

Added: webservices/axis2/branches/java/1_1/modules/tool/axis2-idea-plugin/src/main/java/org/apache/axis2/tools/idea/PackageNameTableModel.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/tool/axis2-idea-plugin/src/main/java/org/apache/axis2/tools/idea/PackageNameTableModel.java?view=auto&rev=469388
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/tool/axis2-idea-plugin/src/main/java/org/apache/axis2/tools/idea/PackageNameTableModel.java
(added)
+++ webservices/axis2/branches/java/1_1/modules/tool/axis2-idea-plugin/src/main/java/org/apache/axis2/tools/idea/PackageNameTableModel.java
Mon Oct 30 22:23:57 2006
@@ -0,0 +1,72 @@
+package org.apache.axis2.tools.idea;
+
+import javax.swing.table.AbstractTableModel;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: keith
+ * Date: 21/10/2006
+ * Time: 14:27:40
+ * To change this template use File | Settings | File Templates.
+ */
+
+
+public class PackageNameTableModel extends AbstractTableModel {
+    Object [] [] tableData;
+
+
+    public PackageNameTableModel(Object[][] tableData) {
+        this.tableData = tableData;
+    }
+
+    public void setTableData(Object [][] tableData) {
+        this.tableData = tableData;
+    }
+
+    public String getColumnName(int c)
+   {
+      return columnNames[c];
+   }
+
+   public Class getColumnClass(int c)
+   {
+      return tableData[0][c].getClass();
+   }
+
+   public int getColumnCount()
+   {
+      return tableData[0].length;
+   }
+
+   public int getRowCount()
+   {
+      return tableData.length;
+   }
+
+   public Object getValueAt(int r, int c)
+   {
+      return tableData[r][c];
+   }
+
+   public void setValueAt(Object obj, int r, int c)
+   {
+      tableData[r][c] = obj;
+   }
+
+   public boolean isCellEditable(int r, int c)
+   {
+      return  c == PACKAGENAME_COLUMN;
+
+   }
+
+   public static final int NAMESPACE_COLUMN = 0;
+   public static final int PACKAGENAME_COLUMN = 1;
+
+
+
+   private String[] columnNames =
+   {
+      "Namespace", "Custom Package Name"
+   };
+}
+



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message