Commit in lcsim/src/org/lcsim/plugin/browser on MAIN
EventHeaderPanel.form+11-41.2 -> 1.3
EventHeaderPanel.java+102-1001.2 -> 1.3
+113-104
2 modified files
Added Size column showing size of collection in EventHeaderPanel.

lcsim/src/org/lcsim/plugin/browser
EventHeaderPanel.form 1.2 -> 1.3
diff -u -r1.2 -r1.3
--- EventHeaderPanel.form	4 Aug 2005 01:45:31 -0000	1.2
+++ EventHeaderPanel.form	31 Aug 2005 02:06:33 -0000	1.3
@@ -1,6 +1,12 @@
 <?xml version="1.0" encoding="UTF-8" ?>
 
 <Form version="1.0" type="org.netbeans.modules.form.forminfo.JPanelFormInfo">
+  <AuxValues>
+    <AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/>
+    <AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
+    <AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
+    <AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
+  </AuxValues>
 
   <Layout class="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout"/>
   <SubComponents>
@@ -13,8 +19,8 @@
         </Property>
       </Properties>
       <AuxValues>
-        <AuxValue name="JavaCodeGenerator_VariableModifier" type="java.lang.Integer" value="0"/>
         <AuxValue name="JavaCodeGenerator_VariableLocal" type="java.lang.Boolean" value="true"/>
+        <AuxValue name="JavaCodeGenerator_VariableModifier" type="java.lang.Integer" value="0"/>
       </AuxValues>
       <Constraints>
         <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout" value="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout$BorderConstraintsDescription">
@@ -55,8 +61,8 @@
         </Property>
       </Properties>
       <AuxValues>
-        <AuxValue name="JavaCodeGenerator_VariableModifier" type="java.lang.Integer" value="0"/>
         <AuxValue name="JavaCodeGenerator_VariableLocal" type="java.lang.Boolean" value="true"/>
+        <AuxValue name="JavaCodeGenerator_VariableModifier" type="java.lang.Integer" value="0"/>
       </AuxValues>
       <Constraints>
         <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout" value="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout$BorderConstraintsDescription">
@@ -68,8 +74,8 @@
       <SubComponents>
         <Container class="javax.swing.JScrollPane" name="blockScroll">
           <AuxValues>
-            <AuxValue name="JavaCodeGenerator_VariableModifier" type="java.lang.Integer" value="0"/>
             <AuxValue name="JavaCodeGenerator_VariableLocal" type="java.lang.Boolean" value="true"/>
+            <AuxValue name="JavaCodeGenerator_VariableModifier" type="java.lang.Integer" value="0"/>
           </AuxValues>
           <Constraints>
             <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout" value="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout$BorderConstraintsDescription">
@@ -82,9 +88,10 @@
             <Component class="javax.swing.JTable" name="blockTable">
               <Properties>
                 <Property name="model" type="javax.swing.table.TableModel" editor="org.netbeans.modules.form.editors2.TableModelEditor">
-                  <Table columnCount="2" rowCount="4">
+                  <Table columnCount="3" rowCount="4">
                     <Column editable="false" title="Name" type="java.lang.String"/>
                     <Column editable="false" title="Type" type="java.lang.String"/>
+                    <Column editable="false" title="Size" type="java.lang.Integer"/>
                   </Table>
                 </Property>
               </Properties>

lcsim/src/org/lcsim/plugin/browser
EventHeaderPanel.java 1.2 -> 1.3
diff -u -r1.2 -r1.3
--- EventHeaderPanel.java	4 Aug 2005 01:45:32 -0000	1.2
+++ EventHeaderPanel.java	31 Aug 2005 02:06:33 -0000	1.3
@@ -39,8 +39,8 @@
          List<List<Object>> collections = event.get(Object.class);
          for (List<Object> list : collections)
          {
-            LCMetaData meta = event.getMetaData(list);
-            model.addRow(new Object[]{meta.getName(),meta.getType().getName()});          
+            LCMetaData meta = event.getMetaData(list);            
+            model.addRow(new Object[]{meta.getName(),meta.getType().getName(), list.size()});          
          }
       }
    }
@@ -50,108 +50,110 @@
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
-   private void initComponents()//GEN-BEGIN:initComponents
-   {
-      javax.swing.JScrollPane blockScroll;
-      javax.swing.JPanel jPanel1;
-      javax.swing.JPanel jPanel2;
-
-      jPanel1 = new javax.swing.JPanel();
-      headerTable = new javax.swing.JTable();
-      jPanel2 = new javax.swing.JPanel();
-      blockScroll = new javax.swing.JScrollPane();
-      blockTable = new javax.swing.JTable();
-
-      setLayout(new java.awt.BorderLayout());
-
-      jPanel1.setLayout(new java.awt.BorderLayout());
-
-      jPanel1.setBorder(new javax.swing.border.TitledBorder("LCIO Event Header"));
-      headerTable.setModel(new javax.swing.table.DefaultTableModel(
-         new Object [][]
-         {
-            {"Run", null},
-            {"Event", null},
-            {"Time Stamp", null},
-            {"Detector Name", null}
-         },
-         new String []
-         {
-            "Title 1", "Title 2"
-         }
-      )
-      {
-         Class[] types = new Class []
-         {
-            java.lang.String.class, java.lang.String.class
-         };
-         boolean[] canEdit = new boolean []
-         {
-            false, false
-         };
-
-         public Class getColumnClass(int columnIndex)
-         {
-            return types [columnIndex];
-         }
-
-         public boolean isCellEditable(int rowIndex, int columnIndex)
-         {
-            return canEdit [columnIndex];
-         }
-      });
-      jPanel1.add(headerTable, java.awt.BorderLayout.CENTER);
-
-      add(jPanel1, java.awt.BorderLayout.NORTH);
-
-      jPanel2.setLayout(new java.awt.BorderLayout());
-
-      jPanel2.setBorder(new javax.swing.border.TitledBorder("Collections"));
-      blockTable.setModel(new javax.swing.table.DefaultTableModel(
-         new Object [][]
-         {
-            {null, null},
-            {null, null},
-            {null, null},
-            {null, null}
-         },
-         new String []
-         {
-            "Name", "Type"
-         }
-      )
-      {
-         Class[] types = new Class []
-         {
-            java.lang.String.class, java.lang.String.class
-         };
-         boolean[] canEdit = new boolean []
-         {
-            false, false
-         };
-
-         public Class getColumnClass(int columnIndex)
-         {
-            return types [columnIndex];
-         }
-
-         public boolean isCellEditable(int rowIndex, int columnIndex)
-         {
-            return canEdit [columnIndex];
-         }
-      });
-      blockScroll.setViewportView(blockTable);
+    // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
+    private void initComponents()
+    {
+        javax.swing.JScrollPane blockScroll;
+        javax.swing.JPanel jPanel1;
+        javax.swing.JPanel jPanel2;
+
+        jPanel1 = new javax.swing.JPanel();
+        headerTable = new javax.swing.JTable();
+        jPanel2 = new javax.swing.JPanel();
+        blockScroll = new javax.swing.JScrollPane();
+        blockTable = new javax.swing.JTable();
+
+        setLayout(new java.awt.BorderLayout());
+
+        jPanel1.setLayout(new java.awt.BorderLayout());
+
+        jPanel1.setBorder(new javax.swing.border.TitledBorder("LCIO Event Header"));
+        headerTable.setModel(new javax.swing.table.DefaultTableModel(
+            new Object [][]
+            {
+                {"Run", null},
+                {"Event", null},
+                {"Time Stamp", null},
+                {"Detector Name", null}
+            },
+            new String []
+            {
+                "Title 1", "Title 2"
+            }
+        )
+        {
+            Class[] types = new Class []
+            {
+                java.lang.String.class, java.lang.String.class
+            };
+            boolean[] canEdit = new boolean []
+            {
+                false, false
+            };
+
+            public Class getColumnClass(int columnIndex)
+            {
+                return types [columnIndex];
+            }
+
+            public boolean isCellEditable(int rowIndex, int columnIndex)
+            {
+                return canEdit [columnIndex];
+            }
+        });
+        jPanel1.add(headerTable, java.awt.BorderLayout.CENTER);
+
+        add(jPanel1, java.awt.BorderLayout.NORTH);
+
+        jPanel2.setLayout(new java.awt.BorderLayout());
+
+        jPanel2.setBorder(new javax.swing.border.TitledBorder("Collections"));
+        blockTable.setModel(new javax.swing.table.DefaultTableModel(
+            new Object [][]
+            {
+                {null, null, null},
+                {null, null, null},
+                {null, null, null},
+                {null, null, null}
+            },
+            new String []
+            {
+                "Name", "Type", "Size"
+            }
+        )
+        {
+            Class[] types = new Class []
+            {
+                java.lang.String.class, java.lang.String.class, java.lang.Integer.class
+            };
+            boolean[] canEdit = new boolean []
+            {
+                false, false, false
+            };
+
+            public Class getColumnClass(int columnIndex)
+            {
+                return types [columnIndex];
+            }
+
+            public boolean isCellEditable(int rowIndex, int columnIndex)
+            {
+                return canEdit [columnIndex];
+            }
+        });
+        blockScroll.setViewportView(blockTable);
 
-      jPanel2.add(blockScroll, java.awt.BorderLayout.CENTER);
+        jPanel2.add(blockScroll, java.awt.BorderLayout.CENTER);
 
-      add(jPanel2, java.awt.BorderLayout.CENTER);
+        add(jPanel2, java.awt.BorderLayout.CENTER);
 
-   }//GEN-END:initComponents
+    }
+    // </editor-fold>//GEN-END:initComponents
    
    
-   // Variables declaration - do not modify//GEN-BEGIN:variables
-   private javax.swing.JTable blockTable;
-   private javax.swing.JTable headerTable;
-   // End of variables declaration//GEN-END:variables
+    // Variables declaration - do not modify//GEN-BEGIN:variables
+    private javax.swing.JTable blockTable;
+    private javax.swing.JTable headerTable;
+    // End of variables declaration//GEN-END:variables
    
 }
CVSspam 0.2.8