org.qriterium.dogma.gui
Class TableLib
java.lang.Object
org.qriterium.dogma.gui.TableLib
public class TableLib
- extends java.lang.Object
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TableLib
public TableLib()
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 contentsrow
- 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 selectionsmodel
- DogmaResourceTable presenting the contents
- Returns:
- selected rows as DogmaResources in a Vector