Home » Eclipse-SWT-3.5.1 » org.eclipse.swt.widgets » [javadoc | source]
org.eclipse.swt.widgets
public class: Table [javadoc | source]
java.lang.Object
   org.eclipse.swt.widgets.Widget
      org.eclipse.swt.widgets.Control
         org.eclipse.swt.widgets.Scrollable
            org.eclipse.swt.widgets.Composite
               org.eclipse.swt.widgets.Table

All Implemented Interfaces:
    Drawable

Instances of this class implement a selectable user interface object that displays a list of images and strings and issues notification when selected.

The item children that may be added to instances of this class must be of type TableItem.

Style VIRTUAL is used to create a Table whose TableItems are to be populated by the client on an on-demand basis instead of up-front. This can provide significant performance improvements for tables that are very large or for which TableItem population is expensive (for example, retrieving values from an external source).

Here is an example of using a Table with style VIRTUAL:

 final Table table = new Table (parent, SWT.VIRTUAL | SWT.BORDER);
 table.setItemCount (1000000);
 table.addListener (SWT.SetData, new Listener () {
     public void handleEvent (Event event) {
         TableItem item = (TableItem) event.item;
         int index = table.indexOf (item);
         item.setText ("Item " + index);
         System.out.println (item.getText ());
     }
 }); 

Note that although this class is a subclass of Composite, it does not normally make sense to add Control children to it, or set a layout on it, unless implementing something like a cell editor.

Styles:
SINGLE, MULTI, CHECK, FULL_SELECTION, HIDE_SELECTION, VIRTUAL, NO_SCROLL
Events:
Selection, DefaultSelection, SetData, MeasureItem, EraseItem, PaintItem

Note: Only one of the styles SINGLE, and MULTI may be specified.

IMPORTANT: This class is not intended to be subclassed.

Field Summary
 TableItem[] items     
 TableColumn[] columns     
 int columnCount     
 int customCount     
 ImageList imageList     
 ImageList headerImageList     
 TableItem currentItem     
 TableColumn sortColumn     
 RECT focusRect     
 int headerToolTipHandle     
 boolean ignoreCustomDraw     
 boolean ignoreDrawForeground     
 boolean ignoreDrawBackground     
 boolean ignoreDrawFocus     
 boolean ignoreDrawSelection     
 boolean ignoreDrawHot     
 boolean customDraw     
 boolean dragStarted     
 boolean explorerTheme     
 boolean firstColumnImage     
 boolean fixScrollWidth     
 boolean tipRequested     
 boolean wasSelected     
 boolean wasResized     
 boolean painted     
 boolean ignoreActivate     
 boolean ignoreSelect     
 boolean ignoreShrink     
 boolean ignoreResize     
 boolean ignoreColumnMove     
 boolean ignoreColumnResize     
 boolean fullRowSelect     
 int itemHeight     
 int lastIndexOf     
 int lastWidth     
 int sortDirection     
 int resizeCount     
 int selectionForeground     
 int hotIndex     
static  int HeaderProc     
static final  int INSET     
static final  int GRID_WIDTH     
static final  int SORT_WIDTH     
static final  int HEADER_MARGIN     
static final  int HEADER_EXTRA     
static final  int VISTA_EXTRA     
static final  int EXPLORER_EXTRA     
static final  int H_SCROLL_LIMIT     
static final  int V_SCROLL_LIMIT     
static final  int DRAG_IMAGE_SIZE     
static final  boolean EXPLORER_THEME     
static final  int TableProc     
static final  TCHAR TableClass     
Fields inherited from org.eclipse.swt.widgets.Composite:
layout,  lpwp,  tabList,  layoutCount,  backgroundMode
Fields inherited from org.eclipse.swt.widgets.Scrollable:
horizontalBar,  verticalBar
Fields inherited from org.eclipse.swt.widgets.Control:
handle,  parent,  cursor,  menu,  toolTipText,  layoutData,  accessible,  backgroundImage,  region,  font,  drawCount,  foreground,  background
Fields inherited from org.eclipse.swt.widgets.Widget:
style,  state,  display,  eventTable,  data,  DISPOSED,  CANVAS,  KEYED_DATA,  DISABLED,  HIDDEN,  LAYOUT_NEEDED,  LAYOUT_CHANGED,  LAYOUT_CHILD,  THEME_BACKGROUND,  DRAW_BACKGROUND,  PARENT_BACKGROUND,  RELEASED,  DISPOSE_SENT,  TRACK_MOUSE,  FOREIGN_HANDLE,  DRAG_DETECT,  MOVE_OCCURRED,  MOVE_DEFERRED,  RESIZE_OCCURRED,  RESIZE_DEFERRED,  IGNORE_WM_CHANGEUISTATE,  DEFAULT_WIDTH,  DEFAULT_HEIGHT,  MAJOR,  MINOR
Constructor:
 public Table(Composite parent,
    int style) 
    Constructs a new instance of this class given its parent and a style value describing its behavior and appearance.

    The style value is either one of the style constants defined in class SWT which is applicable to instances of this class, or must be built by bitwise OR'ing together (that is, using the int "|" operator) two or more of those SWT style constants. The class description lists the style constants that are applicable to the class. Style bits are also inherited from superclasses.

    Parameters:
    parent - a composite control which will be the parent of the new instance (cannot be null)
    style - the style of control to construct
    Throws:
    IllegalArgumentException -
    • ERROR_NULL_ARGUMENT - if the parent is null

    SWTException -
    • ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the parent
    • ERROR_INVALID_SUBCLASS - if this class is not an allowed subclass

    Also see:
    SWT#SINGLE
    SWT#MULTI
    SWT#CHECK
    SWT#FULL_SELECTION
    SWT#HIDE_SELECTION
    SWT#VIRTUAL
    SWT#NO_SCROLL
    Widget#checkSubclass
    Widget#getStyle
    exception: IllegalArgumentException -
    • ERROR_NULL_ARGUMENT - if the parent is null

    exception: SWTException -
    • ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the parent
    • ERROR_INVALID_SUBCLASS - if this class is not an allowed subclass

Method from org.eclipse.swt.widgets.Table Summary:
CDDS_ITEMPOSTPAINT,   CDDS_ITEMPREPAINT,   CDDS_POSTPAINT,   CDDS_PREPAINT,   CDDS_SUBITEMPOSTPAINT,   CDDS_SUBITEMPREPAINT,   WM_CHAR,   WM_CONTEXTMENU,   WM_ERASEBKGND,   WM_GETOBJECT,   WM_HSCROLL,   WM_KEYDOWN,   WM_KILLFOCUS,   WM_LBUTTONDBLCLK,   WM_LBUTTONDOWN,   WM_MOUSEHOVER,   WM_PAINT,   WM_RBUTTONDBLCLK,   WM_RBUTTONDOWN,   WM_SETFOCUS,   WM_SETFONT,   WM_SETREDRAW,   WM_SIZE,   WM_SYSCOLORCHANGE,   WM_VSCROLL,   _addListener,   _getItem,   addSelectionListener,   callWindowProc,   callWindowProc,   checkBuffered,   checkData,   checkData,   checkHandle,   checkStyle,   checkSubclass,   clear,   clear,   clear,   clearAll,   computeSize,   createHandle,   createHeaderToolTips,   createItem,   createItem,   createWidget,   defaultBackground,   deregister,   deselect,   deselect,   deselect,   deselectAll,   destroyItem,   destroyItem,   fixCheckboxImageList,   fixCheckboxImageListColor,   fixItemHeight,   getColumn,   getColumnCount,   getColumnOrder,   getColumns,   getFocusIndex,   getGridLineWidth,   getHeaderHeight,   getHeaderVisible,   getItem,   getItem,   getItemCount,   getItemHeight,   getItems,   getLinesVisible,   getSelection,   getSelectionCount,   getSelectionIndex,   getSelectionIndices,   getSortColumn,   getSortColumnPixel,   getSortDirection,   getTopIndex,   hasChildren,   hitTestSelection,   imageIndex,   imageIndexHeader,   indexOf,   indexOf,   isCustomToolTip,   isOptimizedRedraw,   isSelected,   register,   releaseChildren,   releaseWidget,   remove,   remove,   remove,   removeAll,   removeSelectionListener,   select,   select,   select,   selectAll,   sendEraseItemEvent,   sendEraseItemEvent,   sendMeasureItemEvent,   sendMouseDownEvent,   sendPaintItemEvent,   sendPaintItemEvent,   setBackgroundImage,   setBackgroundPixel,   setBackgroundTransparent,   setBounds,   setCheckboxImageList,   setColumnOrder,   setCustomDraw,   setDeferResize,   setFocusIndex,   setFont,   setForegroundPixel,   setHeaderVisible,   setItemCount,   setItemHeight,   setItemHeight,   setLinesVisible,   setRedraw,   setScrollWidth,   setScrollWidth,   setSelection,   setSelection,   setSelection,   setSelection,   setSelection,   setSortColumn,   setSortDirection,   setSubImagesVisible,   setTableEmpty,   setTopIndex,   showColumn,   showItem,   showItem,   showSelection,   sort,   subclass,   toolTipInset,   toolTipRect,   toolTipText,   unsubclass,   update,   updateHeaderToolTips,   updateImages,   updateMoveable,   widgetStyle,   windowClass,   windowProc,   windowProc,   wmMeasureChild,   wmNotify,   wmNotifyChild,   wmNotifyHeader,   wmNotifyToolTip,   wmNotifyToolTip
Methods from org.eclipse.swt.widgets.Composite:
WM_ERASEBKGND,   WM_GETDLGCODE,   WM_GETFONT,   WM_LBUTTONDOWN,   WM_NCHITTEST,   WM_PAINT,   WM_PARENTNOTIFY,   WM_PRINTCLIENT,   WM_SETFONT,   WM_SIZE,   WM_SYSCOLORCHANGE,   WM_SYSCOMMAND,   WM_UPDATEUISTATE,   _getChildren,   _getTabList,   changed,   checkBuffered,   checkComposited,   checkSubclass,   computeSize,   computeTabList,   copyArea,   createHandle,   findDeferredControl,   findMenus,   fixChildren,   fixTabList,   getBackgroundMode,   getChildren,   getChildrenCount,   getLayout,   getLayoutDeferred,   getTabList,   hooksKeys,   isLayoutDeferred,   layout,   layout,   layout,   layout,   markLayout,   minimumSize,   redrawChildren,   releaseChildren,   releaseParent,   releaseWidget,   removeControl,   resizeChildren,   resizeChildren,   resizeEmbeddedHandle,   sendResize,   setBackgroundMode,   setBounds,   setFixedFocus,   setFocus,   setLayout,   setLayoutDeferred,   setResizeChildren,   setTabGroupFocus,   setTabList,   toolTipText,   translateMnemonic,   translateTraversal,   updateBackgroundColor,   updateBackgroundImage,   updateBackgroundMode,   updateFont,   updateLayout,   updateUIState,   widgetStyle,   wmNCPaint,   wmNotify
Methods from org.eclipse.swt.widgets.Scrollable:
WM_HSCROLL,   WM_MOUSEWHEEL,   WM_SIZE,   WM_VSCROLL,   callWindowProc,   computeTrim,   createScrollBar,   createWidget,   destroyScrollBar,   getClientArea,   getHorizontalBar,   getVerticalBar,   releaseChildren,   scrolledHandle,   widgetExtStyle,   widgetStyle,   windowClass,   windowProc,   wmNCPaint,   wmScroll,   wmScrollWheel
Methods from org.eclipse.swt.widgets.Control:
WM_ACTIVATE,   WM_CAPTURECHANGED,   WM_CHANGEUISTATE,   WM_CHAR,   WM_CLEAR,   WM_CLOSE,   WM_COMMAND,   WM_CONTEXTMENU,   WM_CTLCOLOR,   WM_CUT,   WM_DESTROY,   WM_DRAWITEM,   WM_ENDSESSION,   WM_ENTERIDLE,   WM_ERASEBKGND,   WM_GETDLGCODE,   WM_GETFONT,   WM_GETMINMAXINFO,   WM_GETOBJECT,   WM_HELP,   WM_HOTKEY,   WM_HSCROLL,   WM_IME_CHAR,   WM_IME_COMPOSITION,   WM_IME_COMPOSITION_START,   WM_IME_ENDCOMPOSITION,   WM_INITMENUPOPUP,   WM_INPUTLANGCHANGE,   WM_KEYDOWN,   WM_KEYUP,   WM_KILLFOCUS,   WM_LBUTTONDBLCLK,   WM_LBUTTONDOWN,   WM_LBUTTONUP,   WM_MBUTTONDBLCLK,   WM_MBUTTONDOWN,   WM_MBUTTONUP,   WM_MEASUREITEM,   WM_MENUCHAR,   WM_MENUSELECT,   WM_MOUSEACTIVATE,   WM_MOUSEHOVER,   WM_MOUSELEAVE,   WM_MOUSEMOVE,   WM_MOUSEWHEEL,   WM_MOVE,   WM_NCACTIVATE,   WM_NCCALCSIZE,   WM_NCHITTEST,   WM_NCLBUTTONDOWN,   WM_NCPAINT,   WM_NOTIFY,   WM_PAINT,   WM_PALETTECHANGED,   WM_PARENTNOTIFY,   WM_PASTE,   WM_PRINT,   WM_PRINTCLIENT,   WM_QUERYENDSESSION,   WM_QUERYNEWPALETTE,   WM_QUERYOPEN,   WM_RBUTTONDBLCLK,   WM_RBUTTONDOWN,   WM_RBUTTONUP,   WM_SETCURSOR,   WM_SETFOCUS,   WM_SETFONT,   WM_SETREDRAW,   WM_SETTINGCHANGE,   WM_SHOWWINDOW,   WM_SIZE,   WM_SYSCHAR,   WM_SYSCOLORCHANGE,   WM_SYSCOMMAND,   WM_SYSKEYDOWN,   WM_SYSKEYUP,   WM_TIMER,   WM_UNDO,   WM_UPDATEUISTATE,   WM_VSCROLL,   WM_WINDOWPOSCHANGED,   WM_WINDOWPOSCHANGING,   WM_XBUTTONDBLCLK,   WM_XBUTTONDOWN,   WM_XBUTTONUP,   addControlListener,   addDragDetectListener,   addFocusListener,   addHelpListener,   addKeyListener,   addMenuDetectListener,   addMouseListener,   addMouseMoveListener,   addMouseTrackListener,   addMouseWheelListener,   addPaintListener,   addTraverseListener,   borderHandle,   checkBackground,   checkBorder,   checkBuffered,   checkComposited,   checkHandle,   checkMirrored,   computeSize,   computeSize,   computeTabGroup,   computeTabList,   computeTabRoot,   createHandle,   createWidget,   defaultBackground,   defaultFont,   defaultForeground,   deregister,   destroyWidget,   dragDetect,   dragDetect,   dragDetect,   drawBackground,   drawBackground,   drawBackground,   drawImageBackground,   drawThemeBackground,   enableDrag,   enableWidget,   fillBackground,   fillImageBackground,   fillThemeBackground,   findBackgroundControl,   findBrush,   findCursor,   findImageControl,   findMenus,   findMnemonic,   findThemeControl,   fixChildren,   fixFocus,   forceFocus,   forceResize,   getAccessible,   getBackground,   getBackgroundImage,   getBackgroundPixel,   getBorderWidth,   getBounds,   getClipboardText,   getCodePage,   getCursor,   getDragDetect,   getDrawing,   getEnabled,   getFont,   getForeground,   getForegroundPixel,   getLayoutData,   getLocation,   getMenu,   getMonitor,   getParent,   getPath,   getRegion,   getShell,   getSize,   getToolTipText,   getVisible,   hasCursor,   hasFocus,   internal_dispose_GC,   internal_new_GC,   isActive,   isEnabled,   isFocusAncestor,   isFocusControl,   isReparentable,   isShowing,   isTabGroup,   isTabItem,   isVisible,   mapEvent,   markLayout,   menuShell,   mnemonicHit,   mnemonicMatch,   moveAbove,   moveBelow,   new_Accessible,   new_GC,   pack,   pack,   print,   printWidget,   redraw,   redraw,   redraw,   redrawChildren,   register,   releaseHandle,   releaseParent,   releaseWidget,   removeControlListener,   removeDragDetectListener,   removeFocusListener,   removeHelpListener,   removeKeyListener,   removeMenuDetectListener,   removeMouseListener,   removeMouseMoveListener,   removeMouseTrackListener,   removeMouseWheelListener,   removePaintListener,   removeTraverseListener,   sendFocusEvent,   sendMove,   sendResize,   setBackground,   setBackground,   setBackgroundImage,   setBackgroundImage,   setBackgroundPixel,   setBounds,   setBounds,   setBounds,   setBounds,   setCapture,   setCursor,   setCursor,   setDefaultFont,   setDragDetect,   setEnabled,   setFixedFocus,   setFocus,   setFont,   setForeground,   setForegroundPixel,   setLayoutData,   setLocation,   setLocation,   setMenu,   setParent,   setRadioFocus,   setRadioSelection,   setRedraw,   setRegion,   setSavedFocus,   setSize,   setSize,   setTabItemFocus,   setToolTipText,   setToolTipText,   setVisible,   showWidget,   sort,   subclass,   toControl,   toControl,   toDisplay,   toDisplay,   topHandle,   translateAccelerator,   translateMnemonic,   translateMnemonic,   translateTraversal,   traverse,   traverse,   traverseEscape,   traverseGroup,   traverseItem,   traverseMnemonic,   traversePage,   traverseReturn,   unsubclass,   update,   update,   updateBackgroundColor,   updateBackgroundImage,   updateBackgroundMode,   updateFont,   updateImages,   updateLayout,   widgetCreateStruct,   widgetExtStyle,   widgetParent,   widgetStyle,   windowClass,   windowProc,   windowProc,   wmColorChild,   wmCommandChild,   wmDrawChild,   wmMeasureChild,   wmNotify,   wmNotifyChild,   wmScrollChild
Methods from org.eclipse.swt.widgets.Widget:
DeferWindowPos,   SetWindowPos,   _addListener,   addDisposeListener,   addListener,   callWindowProc,   checkBits,   checkOpened,   checkOrientation,   checkParent,   checkSubclass,   checkWidget,   destroyWidget,   dispose,   dragDetect,   error,   filters,   findItem,   fixMnemonic,   fixMnemonic,   getData,   getData,   getDisplay,   getListeners,   getMenu,   getName,   getNameText,   getStyle,   hooks,   isDisposed,   isListening,   isValidSubclass,   isValidThread,   mapEvent,   new_GC,   notifyListeners,   postEvent,   postEvent,   release,   releaseChildren,   releaseHandle,   releaseParent,   releaseWidget,   removeDisposeListener,   removeListener,   removeListener,   sendDragEvent,   sendDragEvent,   sendEvent,   sendEvent,   sendEvent,   sendEvent,   sendFocusEvent,   sendKeyEvent,   sendKeyEvent,   sendMouseEvent,   sendMouseEvent,   setData,   setData,   setInputState,   setKeyState,   setTabGroupFocus,   setTabItemFocus,   showMenu,   toString,   wmCaptureChanged,   wmChar,   wmContextMenu,   wmIMEChar,   wmKeyDown,   wmKeyUp,   wmKillFocus,   wmLButtonDblClk,   wmLButtonDown,   wmLButtonUp,   wmMButtonDblClk,   wmMButtonDown,   wmMButtonUp,   wmMouseHover,   wmMouseLeave,   wmMouseMove,   wmMouseWheel,   wmNCPaint,   wmPaint,   wmPrint,   wmRButtonDblClk,   wmRButtonDown,   wmRButtonUp,   wmSetFocus,   wmSysChar,   wmSysKeyDown,   wmSysKeyUp,   wmXButtonDblClk,   wmXButtonDown,   wmXButtonUp
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.eclipse.swt.widgets.Table Detail:
 LRESULT CDDS_ITEMPOSTPAINT(NMLVCUSTOMDRAW nmcd,
    int wParam,
    int lParam) 
 LRESULT CDDS_ITEMPREPAINT(NMLVCUSTOMDRAW nmcd,
    int wParam,
    int lParam) 
 LRESULT CDDS_POSTPAINT(NMLVCUSTOMDRAW nmcd,
    int wParam,
    int lParam) 
 LRESULT CDDS_PREPAINT(NMLVCUSTOMDRAW nmcd,
    int wParam,
    int lParam) 
 LRESULT CDDS_SUBITEMPOSTPAINT(NMLVCUSTOMDRAW nmcd,
    int wParam,
    int lParam) 
 LRESULT CDDS_SUBITEMPREPAINT(NMLVCUSTOMDRAW nmcd,
    int wParam,
    int lParam) 
 LRESULT WM_CHAR(int wParam,
    int lParam) 
 LRESULT WM_CONTEXTMENU(int wParam,
    int lParam) 
 LRESULT WM_ERASEBKGND(int wParam,
    int lParam) 
 LRESULT WM_GETOBJECT(int wParam,
    int lParam) 
 LRESULT WM_HSCROLL(int wParam,
    int lParam) 
 LRESULT WM_KEYDOWN(int wParam,
    int lParam) 
 LRESULT WM_KILLFOCUS(int wParam,
    int lParam) 
 LRESULT WM_LBUTTONDBLCLK(int wParam,
    int lParam) 
 LRESULT WM_LBUTTONDOWN(int wParam,
    int lParam) 
 LRESULT WM_MOUSEHOVER(int wParam,
    int lParam) 
 LRESULT WM_PAINT(int wParam,
    int lParam) 
 LRESULT WM_RBUTTONDBLCLK(int wParam,
    int lParam) 
 LRESULT WM_RBUTTONDOWN(int wParam,
    int lParam) 
 LRESULT WM_SETFOCUS(int wParam,
    int lParam) 
 LRESULT WM_SETFONT(int wParam,
    int lParam) 
 LRESULT WM_SETREDRAW(int wParam,
    int lParam) 
 LRESULT WM_SIZE(int wParam,
    int lParam) 
 LRESULT WM_SYSCOLORCHANGE(int wParam,
    int lParam) 
 LRESULT WM_VSCROLL(int wParam,
    int lParam) 
  void _addListener(int eventType,
    Listener listener) 
 TableItem _getItem(int index) 
 public  void addSelectionListener(SelectionListener listener) 
    Adds the listener to the collection of listeners who will be notified when the user changes the receiver's selection, by sending it one of the messages defined in the SelectionListener interface.

    When widgetSelected is called, the item field of the event object is valid. If the receiver has the SWT.CHECK style and the check selection changes, the event object detail field contains the value SWT.CHECK. widgetDefaultSelected is typically called when an item is double-clicked. The item field of the event object is valid for default selection, but the detail field is not used.

 int callWindowProc(int hwnd,
    int msg,
    int wParam,
    int lParam) 
 int callWindowProc(int hwnd,
    int msg,
    int wParam,
    int lParam,
    boolean forceSelect) 
  void checkBuffered() 
 boolean checkData(TableItem item,
    boolean redraw) 
 boolean checkData(TableItem item,
    int index,
    boolean redraw) 
 boolean checkHandle(int hwnd) 
 static int checkStyle(int style) 
 protected  void checkSubclass() 
 public  void clear(int index) 
    Clears the item at the given zero-relative index in the receiver. The text, icon and other attributes of the item are set to the default value. If the table was created with the SWT.VIRTUAL style, these attributes are requested again as needed.
 public  void clear(int[] indices) 
    Clears the items at the given zero-relative indices in the receiver. The text, icon and other attributes of the items are set to their default values. If the table was created with the SWT.VIRTUAL style, these attributes are requested again as needed.
 public  void clear(int start,
    int end) 
    Removes the items from the receiver which are between the given zero-relative start and end indices (inclusive). The text, icon and other attributes of the items are set to their default values. If the table was created with the SWT.VIRTUAL style, these attributes are requested again as needed.
 public  void clearAll() 
    Clears all the items in the receiver. The text, icon and other attributes of the items are set to their default values. If the table was created with the SWT.VIRTUAL style, these attributes are requested again as needed.
 public Point computeSize(int wHint,
    int hHint,
    boolean changed) 
  void createHandle() 
  void createHeaderToolTips() 
  void createItem(TableColumn column,
    int index) 
  void createItem(TableItem item,
    int index) 
  void createWidget() 
 int defaultBackground() 
  void deregister() 
 public  void deselect(int[] indices) 
    Deselects the items at the given zero-relative indices in the receiver. If the item at the given zero-relative index in the receiver is selected, it is deselected. If the item at the index was not selected, it remains deselected. Indices that are out of range and duplicate indices are ignored.
 public  void deselect(int index) 
    Deselects the item at the given zero-relative index in the receiver. If the item at the index was already deselected, it remains deselected. Indices that are out of range are ignored.
 public  void deselect(int start,
    int end) 
    Deselects the items at the given zero-relative indices in the receiver. If the item at the given zero-relative index in the receiver is selected, it is deselected. If the item at the index was not selected, it remains deselected. The range of the indices is inclusive. Indices that are out of range are ignored.
 public  void deselectAll() 
    Deselects all selected items in the receiver.
  void destroyItem(TableColumn column) 
  void destroyItem(TableItem item) 
  void fixCheckboxImageList(boolean fixScroll) 
  void fixCheckboxImageListColor(boolean fixScroll) 
  void fixItemHeight(boolean fixScroll) 
 public TableColumn getColumn(int index) 
    Returns the column at the given, zero-relative index in the receiver. Throws an exception if the index is out of range. Columns are returned in the order that they were created. If no TableColumns were created by the programmer, this method will throw ERROR_INVALID_RANGE despite the fact that a single column of data may be visible in the table. This occurs when the programmer uses the table like a list, adding items but never creating a column.
 public int getColumnCount() 
    Returns the number of columns contained in the receiver. If no TableColumns were created by the programmer, this value is zero, despite the fact that visually, one column of items may be visible. This occurs when the programmer uses the table like a list, adding items but never creating a column.
 public int[] getColumnOrder() 
    Returns an array of zero-relative integers that map the creation order of the receiver's items to the order in which they are currently being displayed.

    Specifically, the indices of the returned array represent the current visual order of the items, and the contents of the array represent the creation order of the items.

    Note: This is not the actual structure used by the receiver to maintain its list of items, so modifying the array will not affect the receiver.

 public TableColumn[] getColumns() 
    Returns an array of TableColumns which are the columns in the receiver. Columns are returned in the order that they were created. If no TableColumns were created by the programmer, the array is empty, despite the fact that visually, one column of items may be visible. This occurs when the programmer uses the table like a list, adding items but never creating a column.

    Note: This is not the actual structure used by the receiver to maintain its list of items, so modifying the array will not affect the receiver.

 int getFocusIndex() 
 public int getGridLineWidth() 
    Returns the width in pixels of a grid line.
 public int getHeaderHeight() 
    Returns the height of the receiver's header
 public boolean getHeaderVisible() 
    Returns true if the receiver's header is visible, and false otherwise.

    If one of the receiver's ancestors is not visible or some other condition makes the receiver not visible, this method may still indicate that it is considered visible even though it may not actually be showing.

 public TableItem getItem(int index) 
    Returns the item at the given, zero-relative index in the receiver. Throws an exception if the index is out of range.
 public TableItem getItem(Point point) 
    Returns the item at the given point in the receiver or null if no such item exists. The point is in the coordinate system of the receiver.

    The item that is returned represents an item that could be selected by the user. For example, if selection only occurs in items in the first column, then null is returned if the point is outside of the item. Note that the SWT.FULL_SELECTION style hint, which specifies the selection policy, determines the extent of the selection.

 public int getItemCount() 
    Returns the number of items contained in the receiver.
 public int getItemHeight() 
    Returns the height of the area which would be used to display one of the items in the receiver.
 public TableItem[] getItems() 
    Returns a (possibly empty) array of TableItems which are the items in the receiver.

    Note: This is not the actual structure used by the receiver to maintain its list of items, so modifying the array will not affect the receiver.

 public boolean getLinesVisible() 
    Returns true if the receiver's lines are visible, and false otherwise. Note that some platforms draw grid lines while others may draw alternating row colors.

    If one of the receiver's ancestors is not visible or some other condition makes the receiver not visible, this method may still indicate that it is considered visible even though it may not actually be showing.

 public TableItem[] getSelection() 
    Returns an array of TableItems that are currently selected in the receiver. The order of the items is unspecified. An empty array indicates that no items are selected.

    Note: This is not the actual structure used by the receiver to maintain its selection, so modifying the array will not affect the receiver.

 public int getSelectionCount() 
    Returns the number of selected items contained in the receiver.
 public int getSelectionIndex() 
    Returns the zero-relative index of the item which is currently selected in the receiver, or -1 if no item is selected.
 public int[] getSelectionIndices() 
    Returns the zero-relative indices of the items which are currently selected in the receiver. The order of the indices is unspecified. The array is empty if no items are selected.

    Note: This is not the actual structure used by the receiver to maintain its selection, so modifying the array will not affect the receiver.

 public TableColumn getSortColumn() 
    Returns the column which shows the sort indicator for the receiver. The value may be null if no column shows the sort indicator.
 int getSortColumnPixel() 
 public int getSortDirection() 
    Returns the direction of the sort indicator for the receiver. The value will be one of UP, DOWN or NONE.
 public int getTopIndex() 
    Returns the zero-relative index of the item which is currently at the top of the receiver. This index can change when items are scrolled or new items are added or removed.
 boolean hasChildren() 
 boolean hitTestSelection(int index,
    int x,
    int y) 
 int imageIndex(Image image,
    int column) 
 int imageIndexHeader(Image image) 
 public int indexOf(TableColumn column) 
    Searches the receiver's list starting at the first column (index 0) until a column is found that is equal to the argument, and returns the index of that column. If no column is found, returns -1.
 public int indexOf(TableItem item) 
    Searches the receiver's list starting at the first item (index 0) until an item is found that is equal to the argument, and returns the index of that item. If no item is found, returns -1.
 boolean isCustomToolTip() 
 boolean isOptimizedRedraw() 
 public boolean isSelected(int index) 
    Returns true if the item is selected, and false otherwise. Indices out of range are ignored.
  void register() 
  void releaseChildren(boolean destroy) 
  void releaseWidget() 
 public  void remove(int[] indices) 
    Removes the items from the receiver's list at the given zero-relative indices.
 public  void remove(int index) 
    Removes the item from the receiver at the given zero-relative index.
 public  void remove(int start,
    int end) 
    Removes the items from the receiver which are between the given zero-relative start and end indices (inclusive).
 public  void removeAll() 
    Removes all of the items from the receiver.
 public  void removeSelectionListener(SelectionListener listener) 
    Removes the listener from the collection of listeners who will be notified when the user changes the receiver's selection.
 public  void select(int[] indices) 
    Selects the items at the given zero-relative indices in the receiver. The current selection is not cleared before the new items are selected.

    If the item at a given index is not selected, it is selected. If the item at a given index was already selected, it remains selected. Indices that are out of range and duplicate indices are ignored. If the receiver is single-select and multiple indices are specified, then all indices are ignored.

 public  void select(int index) 
    Selects the item at the given zero-relative index in the receiver. If the item at the index was already selected, it remains selected. Indices that are out of range are ignored.
 public  void select(int start,
    int end) 
    Selects the items in the range specified by the given zero-relative indices in the receiver. The range of indices is inclusive. The current selection is not cleared before the new items are selected.

    If an item in the given range is not selected, it is selected. If an item in the given range was already selected, it remains selected. Indices that are out of range are ignored and no items will be selected if start is greater than end. If the receiver is single-select and there is more than one item in the given range, then all indices are ignored.

 public  void selectAll() 
    Selects all of the items in the receiver.

    If the receiver is single-select, do nothing.

  void sendEraseItemEvent(TableItem item,
    NMLVCUSTOMDRAW nmcd,
    int lParam,
    Event measureEvent) 
 Event sendEraseItemEvent(TableItem item,
    NMTTCUSTOMDRAW nmcd,
    int column,
    RECT cellRect) 
 Event sendMeasureItemEvent(TableItem item,
    int row,
    int column,
    int hDC) 
 LRESULT sendMouseDownEvent(int type,
    int button,
    int msg,
    int wParam,
    int lParam) 
  void sendPaintItemEvent(TableItem item,
    NMLVCUSTOMDRAW nmcd) 
 Event sendPaintItemEvent(TableItem item,
    NMTTCUSTOMDRAW nmcd,
    int column,
    RECT itemRect) 
  void setBackgroundImage(int hBitmap) 
  void setBackgroundPixel(int newPixel) 
  void setBackgroundTransparent(boolean transparent) 
  void setBounds(int x,
    int y,
    int width,
    int height,
    int flags,
    boolean defer) 
  void setCheckboxImageList(int width,
    int height,
    boolean fixScroll) 
 public  void setColumnOrder(int[] order) 
    Sets the order that the items in the receiver should be displayed in to the given argument which is described in terms of the zero-relative ordering of when the items were added.
  void setCustomDraw(boolean customDraw) 
  void setDeferResize(boolean defer) 
  void setFocusIndex(int index) 
 public  void setFont(Font font) 
  void setForegroundPixel(int pixel) 
 public  void setHeaderVisible(boolean show) 
    Marks the receiver's header as visible if the argument is true, and marks it invisible otherwise.

    If one of the receiver's ancestors is not visible or some other condition makes the receiver not visible, marking it visible may not actually cause it to be displayed.

 public  void setItemCount(int count) 
    Sets the number of items contained in the receiver.
  void setItemHeight(boolean fixScroll) 
  void setItemHeight(int itemHeight) 
    Sets the height of the area which would be used to display one of the items in the table.
 public  void setLinesVisible(boolean show) 
    Marks the receiver's lines as visible if the argument is true, and marks it invisible otherwise. Note that some platforms draw grid lines while others may draw alternating row colors.

    If one of the receiver's ancestors is not visible or some other condition makes the receiver not visible, marking it visible may not actually cause it to be displayed.

 public  void setRedraw(boolean redraw) 
  void setScrollWidth(int width) 
 boolean setScrollWidth(TableItem item,
    boolean force) 
 public  void setSelection(int[] indices) 
    Selects the items at the given zero-relative indices in the receiver. The current selection is cleared before the new items are selected.

    Indices that are out of range and duplicate indices are ignored. If the receiver is single-select and multiple indices are specified, then all indices are ignored.

 public  void setSelection(TableItem item) 
    Sets the receiver's selection to the given item. The current selection is cleared before the new item is selected.

    If the item is not in the receiver, then it is ignored.

 public  void setSelection(TableItem[] items) 
    Sets the receiver's selection to be the given array of items. The current selection is cleared before the new items are selected.

    Items that are not in the receiver are ignored. If the receiver is single-select and multiple items are specified, then all items are ignored.

 public  void setSelection(int index) 
    Selects the item at the given zero-relative index in the receiver. The current selection is first cleared, then the new item is selected.
 public  void setSelection(int start,
    int end) 
    Selects the items in the range specified by the given zero-relative indices in the receiver. The range of indices is inclusive. The current selection is cleared before the new items are selected.

    Indices that are out of range are ignored and no items will be selected if start is greater than end. If the receiver is single-select and there is more than one item in the given range, then all indices are ignored.

 public  void setSortColumn(TableColumn column) 
    Sets the column used by the sort indicator for the receiver. A null value will clear the sort indicator. The current sort column is cleared before the new column is set.
 public  void setSortDirection(int direction) 
    Sets the direction of the sort indicator for the receiver. The value can be one of UP, DOWN or NONE.
  void setSubImagesVisible(boolean visible) 
  void setTableEmpty() 
 public  void setTopIndex(int index) 
    Sets the zero-relative index of the item which is currently at the top of the receiver. This index can change when items are scrolled or new items are added and removed.
 public  void showColumn(TableColumn column) 
    Shows the column. If the column is already showing in the receiver, this method simply returns. Otherwise, the columns are scrolled until the column is visible.
  void showItem(int index) 
 public  void showItem(TableItem item) 
    Shows the item. If the item is already showing in the receiver, this method simply returns. Otherwise, the items are scrolled until the item is visible.
 public  void showSelection() 
    Shows the selection. If the selection is already showing in the receiver, this method simply returns. Otherwise, the items are scrolled until the selection is visible.
  void sort() 
  void subclass() 
 RECT toolTipInset(RECT rect) 
 RECT toolTipRect(RECT rect) 
 String toolTipText(NMTTDISPINFO hdr) 
  void unsubclass() 
  void update(boolean all) 
  void updateHeaderToolTips() 
  void updateImages() 
  void updateMoveable() 
 int widgetStyle() 
 TCHAR windowClass() 
 int windowProc() 
 int windowProc(int hwnd,
    int msg,
    int wParam,
    int lParam) 
 LRESULT wmMeasureChild(int wParam,
    int lParam) 
 LRESULT wmNotify(NMHDR hdr,
    int wParam,
    int lParam) 
 LRESULT wmNotifyChild(NMHDR hdr,
    int wParam,
    int lParam) 
 LRESULT wmNotifyHeader(NMHDR hdr,
    int wParam,
    int lParam) 
 LRESULT wmNotifyToolTip(NMTTCUSTOMDRAW nmcd,
    int lParam) 
 LRESULT wmNotifyToolTip(NMHDR hdr,
    int wParam,
    int lParam)