org.qriterium.dogma.gui
Class TableLib

java.lang.Object
  extended by org.qriterium.dogma.gui.TableLib

public class TableLib
extends java.lang.Object


Constructor Summary
TableLib()
           
 
Method Summary
static org.eclipse.swt.widgets.Table createTable(org.eclipse.swt.widgets.Shell shell, java.lang.String[] columnNames, java.lang.String[][] values)
           
static java.util.Vector<DogmaResource> getSelectedResources(de.kupzog.ktable.KTable table, DogmaResourceTable model)
          Converts currently selected rows into DogmaResources and adds them into a vector.
static DogmaResource rowToResource(DogmaResourceTable model, int row)
          Converts a given row from the given KTableSortedModel to a DogmaResource
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableLib

public TableLib()
Method Detail

createTable

public static org.eclipse.swt.widgets.Table createTable(org.eclipse.swt.widgets.Shell shell,
                                                        java.lang.String[] columnNames,
                                                        java.lang.String[][] values)

rowToResource

public static DogmaResource rowToResource(DogmaResourceTable model,
                                          int row)
Converts a given row from the given KTableSortedModel to a DogmaResource

Parameters:
model - DogmaResourceTable presenting the contents
row - row to convert
Returns:
DogmaResource if convert successful, otherwise null

getSelectedResources

public static java.util.Vector<DogmaResource> getSelectedResources(de.kupzog.ktable.KTable table,
                                                                   DogmaResourceTable model)
Converts currently selected rows into DogmaResources and adds them into a vector.

Parameters:
table - KTable for getting row selections
model - DogmaResourceTable presenting the contents
Returns:
selected rows as DogmaResources in a Vector