org.topbraidcomposer.ui.util
Class Tables

java.lang.Object
  extended by org.topbraidcomposer.ui.util.Tables

public class Tables
extends java.lang.Object

Utility methods operating with SWT Tables.

Author:
Holger Knublauch

Constructor Summary
Tables()
           
 
Method Summary
static void addColumnWidthsUpdater(org.eclipse.swt.widgets.Table table)
           
static void addColumnWidthsUpdater(org.eclipse.swt.widgets.Table table, int[] weights)
           
static void addRowSelector(org.eclipse.swt.widgets.Table table)
           
static org.eclipse.swt.widgets.Composite createSideToolBarComposite(org.eclipse.swt.widgets.Composite parent, int horizontalAlignment, java.util.List<java.lang.Object> toolBarItems)
           
static org.eclipse.swt.widgets.Group createTableGroup(org.eclipse.swt.widgets.Composite parent, java.lang.String title, org.eclipse.jface.action.Action allSelection, org.eclipse.jface.action.Action noneSelection)
           
static org.eclipse.swt.widgets.Group createTableGroup(org.eclipse.swt.widgets.Composite parent, java.lang.String groupTitle, java.util.List<java.lang.Object> leftToolBarItems, java.util.List<java.lang.Object> rightToolBarItems)
           
static org.eclipse.swt.widgets.Composite createTableToolBarComposite(org.eclipse.swt.widgets.Composite parent, java.util.List<java.lang.Object> leftToolBarItems, java.util.List<java.lang.Object> rightToolBarItems)
           
static int getColumnAtX(org.eclipse.swt.widgets.Table table, int x)
           
static com.hp.hpl.jena.rdf.model.RDFNode getRDFNodeFromTable(org.eclipse.swt.widgets.Table table, int x, com.hp.hpl.jena.rdf.model.Statement s)
           
static void updateColumnWidths(org.eclipse.swt.widgets.Table table)
           
static void updateColumnWidths(org.eclipse.swt.widgets.Table table, int[] weights)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Tables

public Tables()
Method Detail

addColumnWidthsUpdater

public static void addColumnWidthsUpdater(org.eclipse.swt.widgets.Table table)

addColumnWidthsUpdater

public static void addColumnWidthsUpdater(org.eclipse.swt.widgets.Table table,
                                          int[] weights)

addRowSelector

public static void addRowSelector(org.eclipse.swt.widgets.Table table)

createSideToolBarComposite

public static org.eclipse.swt.widgets.Composite createSideToolBarComposite(org.eclipse.swt.widgets.Composite parent,
                                                                           int horizontalAlignment,
                                                                           java.util.List<java.lang.Object> toolBarItems)

createTableGroup

public static org.eclipse.swt.widgets.Group createTableGroup(org.eclipse.swt.widgets.Composite parent,
                                                             java.lang.String title,
                                                             org.eclipse.jface.action.Action allSelection,
                                                             org.eclipse.jface.action.Action noneSelection)

createTableGroup

public static org.eclipse.swt.widgets.Group createTableGroup(org.eclipse.swt.widgets.Composite parent,
                                                             java.lang.String groupTitle,
                                                             java.util.List<java.lang.Object> leftToolBarItems,
                                                             java.util.List<java.lang.Object> rightToolBarItems)

createTableToolBarComposite

public static org.eclipse.swt.widgets.Composite createTableToolBarComposite(org.eclipse.swt.widgets.Composite parent,
                                                                            java.util.List<java.lang.Object> leftToolBarItems,
                                                                            java.util.List<java.lang.Object> rightToolBarItems)

getColumnAtX

public static int getColumnAtX(org.eclipse.swt.widgets.Table table,
                               int x)

updateColumnWidths

public static void updateColumnWidths(org.eclipse.swt.widgets.Table table)

updateColumnWidths

public static void updateColumnWidths(org.eclipse.swt.widgets.Table table,
                                      int[] weights)

getRDFNodeFromTable

public static com.hp.hpl.jena.rdf.model.RDFNode getRDFNodeFromTable(org.eclipse.swt.widgets.Table table,
                                                                    int x,
                                                                    com.hp.hpl.jena.rdf.model.Statement s)