From ee5c8081b4da86b9d353a0dd55ef0b1b2705f7d5 Mon Sep 17 00:00:00 2001 From: boccioli_m Date: Tue, 9 Jun 2015 11:54:04 +0200 Subject: [PATCH] Closedown --- plugins/TestingList.form | 4 ++-- plugins/TestingList.java | 26 +++++++++++++------------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/plugins/TestingList.form b/plugins/TestingList.form index 91107d7..dc0d280 100644 --- a/plugins/TestingList.form +++ b/plugins/TestingList.form @@ -49,7 +49,7 @@ - + @@ -61,8 +61,8 @@ - + diff --git a/plugins/TestingList.java b/plugins/TestingList.java index 2caab02..385dc0e 100644 --- a/plugins/TestingList.java +++ b/plugins/TestingList.java @@ -101,9 +101,9 @@ public class TestingList extends Panel { public void showResult(String deviceName, String testName, String res, String status){ int COL_TIME = 1; - int COL_RESULT = 4; - int COL_SUCCESS = 5; - int COL_ICON = 6; + int COL_RESULT = 5; + int COL_SUCCESS = 6; + int COL_ICON = 7; int rowD=-1, colT=-1; //search for device name in table @@ -182,14 +182,14 @@ public class TestingList extends Panel { }, new String [] { - "Select", "Time", "Device", "Test", "Result", "Status", "" + "Select", "Time", "Device", "Description", "Test", "Result", "Status", "" } ) { Class[] types = new Class [] { - java.lang.Boolean.class, java.lang.Object.class, java.lang.Object.class, java.lang.Object.class, java.lang.Object.class, java.lang.Object.class, javax.swing.Icon.class + java.lang.Boolean.class, java.lang.Object.class, java.lang.Object.class, java.lang.Object.class, java.lang.Object.class, java.lang.Object.class, java.lang.Object.class, javax.swing.Icon.class }; boolean[] canEdit = new boolean [] { - true, true, true, true, true, true, false + true, true, true, true, true, true, true, false }; public Class getColumnClass(int columnIndex) { @@ -279,8 +279,8 @@ public class TestingList extends Panel { } ImageIcon icon = new ImageIcon(getClass().getResource(iconSource)); jTable1.setValueAt(bSelected, row, 0); - jTable1.setValueAt(icon, row, 6); - jTable1.setValueAt(sStatus, row, 5); + jTable1.setValueAt(icon, row, 7); + jTable1.setValueAt(sStatus, row, 6); } } @@ -321,19 +321,19 @@ public class TestingList extends Panel { model.addRow(new Object[] {false, sDate, "MWD", "Display Test", "Sequence terminated", "Pending", icon}); model.addRow(new Object[] {false, sDate, "FIXL", "Lamp Test", "Failure", "Pending", icon});*/ jTable1.setModel(model); - jTable1.getColumnModel().getColumn(6).setMaxWidth(27); + jTable1.getColumnModel().getColumn(7).setMaxWidth(27); jTable1.getColumnModel().getColumn(0).setMaxWidth(27); updateStatus(); } - public void addToTable(String deviceName, String testName){ + public void addToTable(String deviceName, String deviceDescription, String testName){ String sDate = getNow(); if(testName.equals("") || deviceName.equals("")) return; ImageIcon icon = new ImageIcon(getClass().getResource("/icons/button_pause-16px.png")); DefaultTableModel model = (DefaultTableModel) jTable1.getModel(); - model.addRow(new Object[] {false, sDate, deviceName, testName, "", "Pending", icon}); + model.addRow(new Object[] {false, sDate, deviceName, deviceDescription, testName, "", "Pending", icon}); jTable1.setModel(model); updateStatus(); @@ -353,7 +353,7 @@ public class TestingList extends Panel { prop.load(is); - addToTable(prop.getProperty("name"), prop.getProperty("description")); + addToTable(prop.getProperty("name"), prop.getProperty("description"), prop.getProperty("tests")); this.jTextField1.setText(prop.getProperty("name")); } @@ -375,7 +375,7 @@ public class TestingList extends Panel { prop.load(is); - addToTable(prop.getProperty("name"), prop.getProperty("tests")); + addToTable(prop.getProperty("name"), prop.getProperty("description"), prop.getProperty("tests")); this.jTextField1.append(prop.getProperty("name")); this.jTextField1.append(prop.getProperty("description")); this.jTextField1.append(prop.getProperty("tests"));