org.apache.ws.commons.tcpmon.eclipse.ui
Class TableEnhancer

java.lang.Object
  extended by org.apache.ws.commons.tcpmon.eclipse.ui.TableEnhancer

public class TableEnhancer
extends Object

A table enhancer class that wraps a table - A 'decorator' :)


Constructor Summary
TableEnhancer(org.eclipse.swt.widgets.Table table)
           
 
Method Summary
 void clearSelection()
           
 int getLeadSelectionIndex()
           
 int getMaxSelectionIndex()
           
 int getMinSelectionIndex()
           
 int getNearestSelectionToZero()
           
 int[] getSelectionIndicesWithoutZero()
           
 int indexOf(org.eclipse.swt.widgets.TableItem item)
           
 boolean isSelectedIndex(int index)
           
 boolean isSelectionEmpty()
           
 void notifyListeners(int type, org.eclipse.swt.widgets.Event e)
           
 void remove(int index)
           
 void selectAll()
           
 void setSelectionInterval(int index0, int index1)
           
 void setValueAt(String value, int row, int column)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableEnhancer

public TableEnhancer(org.eclipse.swt.widgets.Table table)
Method Detail

setValueAt

public void setValueAt(String value,
                       int row,
                       int column)

getLeadSelectionIndex

public int getLeadSelectionIndex()

getMaxSelectionIndex

public int getMaxSelectionIndex()

getNearestSelectionToZero

public int getNearestSelectionToZero()

getSelectionIndicesWithoutZero

public int[] getSelectionIndicesWithoutZero()

getMinSelectionIndex

public int getMinSelectionIndex()

setSelectionInterval

public void setSelectionInterval(int index0,
                                 int index1)
Parameters:
index0 -
index1 - Similar to setSelectionInterval(int index0, int index1) in DefaultListSelectionModel of SWING but index0 should be less than index1

isSelectionEmpty

public boolean isSelectionEmpty()

selectAll

public void selectAll()

clearSelection

public void clearSelection()

indexOf

public int indexOf(org.eclipse.swt.widgets.TableItem item)

remove

public void remove(int index)

notifyListeners

public void notifyListeners(int type,
                            org.eclipse.swt.widgets.Event e)

isSelectedIndex

public boolean isSelectedIndex(int index)


Copyright © The Apache Software Foundation. All Rights Reserved.