title: How to get Values from table and set to a list in SWT?
body: <p>I have a table with 3 columns say type,name and value.</p>
  
  <p>For example my table has the following values:</p>
  
  <blockquote>
  <pre><code>Type     Name    Value
  +++++++++++++++++++++++
  Int       id       0
  String   name     null
  </code></pre>
  </blockquote>
  
  <p>How to get these values from the table and set to a list.</p>
  
  <hr>
  
  <pre><code>TableItem[] items = voTable.getItems();
  
  List&lt;VogenBean&gt; lstTableValue = new ArrayList&lt;VogenBean&gt;();
      for (int i = 0; i &lt; items.length; i++) {
  
          System.out.println("Items length--" + items.length);
          VogenBean bean = new VogenBean();
          bean.setClassName(domainName);
          bean.setAttrName(typeLabel.getText());
          bean.setMethodName(nameLabel.getText());
          bean.setAttrInit(valueLabel.getText());
          /*
           * tableValue = domainName + ":" + typeLabel.getText() + ":" +
           * nameLabel.getText()+":"+valueLabel.getText();
           * System.out.println("Value--"+tableValue);
           */
          lstTableValue.add(bean);
      }
  
      for (Iterator iterator = lstTableValue.iterator(); iterator.hasNext();) {
          VogenBean vo = (VogenBean) iterator.next();
          System.out.println("Class Name--" + vo.getClassName());
          System.out.println("Attr Name--" + vo.getAttrName());
          System.out.println("Method Name--" + vo.getMethodName());
          System.out.println("Attr Init--" + vo.getAttrInit());
  
      }
  
      return lstTableValue;
  </code></pre>
  
  <p>This is my code. I'm getting only last field in the table. Please help.</p>