| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectview.SWTTable
public class SWTTable
Title: Bioinformatics Project
Description: Genomes Comparacent
Copyright: Copyright (c) 2005-2006
SWTTable a class that builds and handles an editable table.
| Field Summary | |
|---|---|
private  org.eclipse.swt.widgets.Table | 
table
A regular table.  | 
private  org.eclipse.swt.events.SelectionAdapter | 
TableListener
Table listener in case its editable.  | 
| Constructor Summary | |
|---|---|
SWTTable(org.eclipse.swt.widgets.Composite comp,
         boolean editable)
C'tor, builds an empty table, adds a listener in case it is editable.  | 
|
| Method Summary | |
|---|---|
 void | 
addSelectionListener(org.eclipse.swt.events.SelectionListener selListener)
Adds a listener to the table.  | 
 void | 
DeleteSelected(boolean ALL)
Deletes the selected rows in the table, in case ALL is true, it deletes all the rows in the table.  | 
 void | 
deselectAll()
Unmarks the selected rows.  | 
 void | 
dispose()
Disposes the table.  | 
 java.lang.String | 
getColumnName(int i)
Returns a column name.  | 
 java.lang.String | 
getIndexAt(int i,
           int j)
Returns a cell text.  | 
 int | 
getItemCount()
Returns number of the rows in the table.  | 
 int[] | 
getSelectedIndices()
Rturns an array contaning the selected indcies.  | 
 int | 
getSelectedItemIndex()
Returns the number of the selected row.  | 
 boolean | 
isDisposed()
Returns true if the table is disposed.  | 
 void | 
reDraw()
Redraws the table.  | 
 void | 
removeAll()
Removes all the rows in the table.  | 
 void | 
removeListener()
Removes the table listener.  | 
 void | 
setBounds(int i,
          int j,
          int k,
          int l)
Sets the table bounds.  | 
 void | 
setBounds(org.eclipse.swt.graphics.Rectangle bounds)
Sets the table bounds.  | 
 void | 
setColumn(java.lang.String[] columnNames)
Initiates the table with the given strings as columns.  | 
 void | 
setColumnSize()
Sets each column size.  | 
 void | 
setIndexAt(int i,
           int j,
           java.lang.String string)
Stores text in a cell.  | 
 void | 
setNewRow(java.lang.String[] Row)
Adds a single row to the table.  | 
 void | 
setSize(int x,
        int y)
Sets table size.  | 
 void | 
setSize(org.eclipse.swt.graphics.Point size)
Sets the table size.  | 
 void | 
setToolTip(java.lang.String string)
Sets the table tooltip text with the given text.  | 
 void | 
setVisible(boolean b)
Sets the table to be visible/unvisible.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
private org.eclipse.swt.widgets.Table table
private org.eclipse.swt.events.SelectionAdapter TableListener
| Constructor Detail | 
|---|
public SWTTable(org.eclipse.swt.widgets.Composite comp,
                boolean editable)
comp - Composite: table parent composite.editable - boolean: given boolean.| Method Detail | 
|---|
public void setColumn(java.lang.String[] columnNames)
columnNames - String[]: an array of strings.public void setNewRow(java.lang.String[] Row)
Row - String[]: an array of strings.
public void setSize(int x,
                    int y)
x - int: given int.y - int: given int.public void removeAll()
public void setVisible(boolean b)
b - boolean: given boolean.public void setSize(org.eclipse.swt.graphics.Point size)
size - Point: given point.public void dispose()
public void setColumnSize()
public java.lang.String getColumnName(int i)
i - int: column index.
public java.lang.String getIndexAt(int i,
                                   int j)
i - int: column index.j - int: row index.
public void setIndexAt(int i,
                       int j,
                       java.lang.String string)
i - int: column index.j - int: row index.string - String: given text.public void addSelectionListener(org.eclipse.swt.events.SelectionListener selListener)
selListener - SelectionListener: a given listener.public int getSelectedItemIndex()
public void reDraw()
public void DeleteSelected(boolean ALL)
ALL - boolean: given boolean.public int[] getSelectedIndices()
public int getItemCount()
public void deselectAll()
public void setBounds(int i,
                      int j,
                      int k,
                      int l)
i - int: given int.j - int: given int.k - int: given int.l - int: given int.public void setBounds(org.eclipse.swt.graphics.Rectangle bounds)
bounds - Rectangle: given bounds.public boolean isDisposed()
public void setToolTip(java.lang.String string)
string - String: given string.public void removeListener()
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||