org.eclipse.swt.widgets
Class Table

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

public class Table
extends Composite

Safe:


Field Summary
(package private)  TableColumn[] columns
           
(package private)  boolean customDraw
           
(package private)  boolean dragStarted
           
(package private)  boolean ignoreResize
           
(package private)  boolean ignoreSelect
           
(package private)  ImageList imageList
           
(package private)  TableItem[] items
           
(package private)  boolean mouseDown
           
(package private) static org.eclipse.swt.internal.win32.TCHAR TableClass
           
(package private) static int TableProc
           
 
Fields inherited from class org.eclipse.swt.widgets.Composite
font, layout, lpwp, tabList
 
Fields inherited from class org.eclipse.swt.widgets.Scrollable
horizontalBar, verticalBar
 
Fields inherited from class org.eclipse.swt.widgets.Control
ACCENTS, accessible, background, drawCount, foreground, handle, hCursor, layoutData, menu, parent, toolTipText
 
Fields inherited from class org.eclipse.swt.widgets.Widget
CANVAS, COMCTL32_MAJOR, COMCTL32_MINOR, data, DEFAULT_HEIGHT, DEFAULT_WIDTH, DISABLED, DISPOSED, eventTable, HIDDEN, keys, MAJOR, MINOR, Mnemonic, state, style, values
 
Constructor Summary
Table(Composite parent, int style)
          Enabled: Constructs a new instance of this class given its parent and a style value describing its behavior and appearance.
 
Method Summary
 void addSelectionListener(SelectionListener listener)
          Enabled: Adds the listener to the collection of listeners who will be notified when the receiver's selection changes, by sending it one of the messages defined in the SelectionListener interface.
(package private)  int callWindowProc(int msg, int wParam, int lParam)
           
(package private) static int checkStyle(int style)
           
protected  void checkSubclass()
          Checks that this class can be subclassed.
 Point computeSize(int wHint, int hHint, boolean changed)
          Enabled:
(package private)  void createHandle()
           
(package private)  void createItem(TableColumn column, int index)
           
(package private)  void createItem(TableItem item, int index)
           
(package private)  void createWidget()
           
(package private)  int defaultBackground()
           
 void deselect(int index)
          Enabled: Deselects the item at the given zero-relative index in the receiver.
 void deselect(int[] indices)
          Enabled: Deselects the items at the given zero-relative indices in the receiver.
 void deselect(int start, int end)
          Enabled: Deselects the items at the given zero-relative indices in the receiver.
 void deselectAll()
          Enabled: Deselects all selected items in the receiver.
(package private)  void destroyItem(TableColumn column)
           
(package private)  void destroyItem(TableItem item)
           
(package private)  void fixCheckboxImageList()
           
(package private)  int getBackgroundPixel()
           
 TableColumn getColumn(int index)
          Enabled: Returns the column at the given, zero-relative index in the receiver.
 int getColumnCount()
          Enabled: Returns the number of columns contained in the receiver.
 TableColumn[] getColumns()
          Enabled: Returns an array of TableColumns which are the columns in the receiver.
(package private)  int getFocusIndex()
           
(package private)  int getForegroundPixel()
           
 int getGridLineWidth()
          Enabled: Returns the width in pixels of a grid line.
 int getHeaderHeight()
          Enabled: Returns the height of the receiver's header
 boolean getHeaderVisible()
          Enabled: Returns true if the receiver's header is visible, and false otherwise.
 TableItem getItem(int index)
          Enabled: Returns the item at the given, zero-relative index in the receiver.
 TableItem getItem(Point point)
          Enabled: Returns the item at the given point in the receiver or null if no such item exists.
 int getItemCount()
          Enabled: Returns the number of items contained in the receiver.
 int getItemHeight()
          Enabled: Returns the height of the area which would be used to display one of the items in the receiver's.
 TableItem[] getItems()
          Enabled: Returns an array of TableItems which are the items in the receiver.
 boolean getLinesVisible()
          Enabled: Returns true if the receiver's lines are visible, and false otherwise.
 TableItem[] getSelection()
          Enabled: Returns an array of TableItems that are currently selected in the receiver.
 int getSelectionCount()
          Enabled: Returns the number of selected items contained in the receiver.
 int getSelectionIndex()
          Enabled: Returns the zero-relative index of the item which is currently selected in the receiver, or -1 if no item is selected.
 int[] getSelectionIndices()
          Enabled: Returns the zero-relative indices of the items which are currently selected in the receiver.
 int getTopIndex()
          Enabled: Returns the zero-relative index of the item which is currently at the top of the receiver.
(package private)  int imageIndex(Image image)
           
 int indexOf(TableColumn column)
          Enabled: 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.
 int indexOf(TableItem item)
          Enabled: 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.
 boolean isSelected(int index)
          Enabled: Returns true if the item is selected, and false otherwise.
(package private)  void releaseWidget()
           
 void remove(int index)
          Enabled: Removes the item from the receiver at the given zero-relative index.
 void remove(int[] indices)
          Enabled: Removes the items from the receiver's list at the given zero-relative indices.
 void remove(int start, int end)
          Enabled: Removes the items from the receiver which are between the given zero-relative start and end indices (inclusive).
 void removeAll()
          Enabled: Removes all of the items from the receiver.
 void removeSelectionListener(SelectionListener listener)
          Enabled: Removes the listener from the collection of listeners who will be notified when the receiver's selection changes.
 void select(int index)
          Enabled: Selects the item at the given zero-relative index in the receiver.
 void select(int[] indices)
          Enabled: Selects the items at the given zero-relative indices in the receiver.
 void select(int start, int end)
          Enabled: Selects the items at the given zero-relative indices in the receiver.
 void selectAll()
          Enabled: Selects all the items in the receiver.
(package private)  org.eclipse.swt.internal.win32.LRESULT sendMouseDownEvent(int type, int button, int msg, int wParam, int lParam)
           
(package private)  void setBackgroundPixel(int pixel)
           
(package private)  void setCheckboxImageList(int width, int height)
           
(package private)  void setCheckboxImageListColor()
           
(package private)  void setFocusIndex(int index)
           
 void setFont(Font font)
          Enabled:
(package private)  void setForegroundPixel(int pixel)
           
 void setHeaderVisible(boolean show)
          Enabled: Marks the receiver's header as visible if the argument is true, and marks it invisible otherwise.
 void setLinesVisible(boolean show)
          Enabled: Marks the receiver's lines as visible if the argument is true, and marks it invisible otherwise.
 void setRedraw(boolean redraw)
          Enabled:
(package private)  void setRowHeight()
           
(package private)  void setScrollWidth()
           
 void setSelection(int index)
          Enabled: Selects the item at the given zero-relative index in the receiver.
 void setSelection(int[] indices)
          Enabled: Selects the items at the given zero-relative indices in the receiver.
 void setSelection(int start, int end)
          Enabled: Selects the items at the given zero-relative indices in the receiver.
 void setSelection(TableItem[] items)
          Enabled: Sets the receiver's selection to be the given array of items.
 void setTopIndex(int index)
          Enabled: Sets the zero-relative index of the item which is currently at the top of the receiver.
(package private)  void showItem(int index)
           
 void showItem(TableItem item)
          Enabled: Shows the item.
 void showSelection()
          Enabled: Shows the selection.
(package private)  int widgetStyle()
           
(package private)  org.eclipse.swt.internal.win32.TCHAR windowClass()
           
(package private)  int windowProc()
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_GETOBJECT(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_KEYDOWN(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_LBUTTONDBLCLK(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_LBUTTONDOWN(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_LBUTTONUP(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_MOUSEHOVER(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_NOTIFY(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_RBUTTONDBLCLK(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_RBUTTONDOWN(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_SETFOCUS(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_SIZE(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT WM_SYSCOLORCHANGE(int wParam, int lParam)
           
(package private)  org.eclipse.swt.internal.win32.LRESULT wmNotifyChild(int wParam, int lParam)
           
 
Methods inherited from class org.eclipse.swt.widgets.Composite
_getChildren, _getTabList, computeTabList, getChildren, getChildrenCount, getLayout, getTabList, hooksKeys, layout, layout, minimumSize, moveAbove, moveBelow, releaseChildren, resizeChildren, resizeChildren, setFocus, setLayout, setResizeChildren, setTabGroupFocus, setTabItemFocus, setTabList, toolTipText, translateMnemonic, updateFont, WM_ERASEBKGND, WM_GETDLGCODE, WM_GETFONT, WM_PAINT, WM_SETFONT, WM_SYSCOMMAND
 
Methods inherited from class org.eclipse.swt.widgets.Scrollable
computeTrim, createScrollBar, getClientArea, getHorizontalBar, getVerticalBar, widgetExtStyle, WM_HSCROLL, WM_MOUSEWHEEL, WM_VSCROLL, wmScroll
 
Methods inherited from class org.eclipse.swt.widgets.Control
addControlListener, addFocusListener, addHelpListener, addKeyListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addPaintListener, addTraverseListener, checkOrientation, computeSize, computeTabGroup, computeTabRoot, defaultFont, defaultForeground, deregister, destroyWidget, drawBackground, drawBackground, findBrush, findCursor, findMnemonic, fixFocus, forceFocus, forceResize, getAccessible, getBackground, getBorderWidth, getBounds, getCodePage, getDisplay, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getParent, getPath, getShell, getSize, getToolTipText, getVisible, hasCursor, hasFocus, internal_dispose_GC, internal_new_GC, isActive, isDisposed, isEnabled, isFocusAncestor, isFocusControl, isReparentable, isShowing, isTabGroup, isTabItem, isVisible, menuShell, mnemonicHit, mnemonicMatch, moveAbove, moveBelow, new_Accessible, pack, pack, redraw, redraw, register, releaseHandle, removeControlListener, removeFocusListener, removeHelpListener, removeKeyListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removePaintListener, removeTraverseListener, sendKeyEvent, sendKeyEvent, sendMouseEvent, sendMouseEvent, setBackground, setBounds, setBounds, setBounds, setCapture, setCursor, setDefaultFont, setEnabled, setForeground, setLayoutData, setLocation, setLocation, setMenu, setParent, setRadioFocus, setRadioSelection, setSavedFocus, setSize, setSize, setToolTipText, setVisible, sort, subclass, toControl, toControl, toDisplay, toDisplay, transferActive, transferFocus, translateAccelerator, translateMnemonic, translateTraversal, traverse, traverse, traverseEscape, traverseGroup, traverseItem, traverseMnemonic, traversePage, traverseReturn, unsubclass, update, update, windowProc, WM_ACTIVATE, WM_CHAR, WM_CLEAR, WM_CLOSE, WM_COMMAND, WM_CONTEXTMENU, WM_CTLCOLOR, WM_CUT, WM_DESTROY, WM_DRAWITEM, WM_ENDSESSION, WM_HELP, WM_HOTKEY, WM_IME_CHAR, WM_IME_COMPOSITION, WM_INITMENUPOPUP, WM_KEYUP, WM_KILLFOCUS, WM_MBUTTONDBLCLK, WM_MBUTTONDOWN, WM_MBUTTONUP, WM_MEASUREITEM, WM_MENUCHAR, WM_MENUSELECT, WM_MOUSEACTIVATE, WM_MOUSELEAVE, WM_MOUSEMOVE, WM_MOVE, WM_NCACTIVATE, WM_NCCALCSIZE, WM_NCHITTEST, WM_PALETTECHANGED, WM_PASTE, WM_PRINTCLIENT, WM_QUERYENDSESSION, WM_QUERYNEWPALETTE, WM_QUERYOPEN, WM_RBUTTONUP, WM_SETCURSOR, WM_SETREDRAW, WM_SETTINGCHANGE, WM_SHOWWINDOW, WM_SYSCHAR, WM_SYSKEYDOWN, WM_SYSKEYUP, WM_TIMER, WM_UNDO, WM_WINDOWPOSCHANGING, wmColorChild, wmCommandChild, wmDrawChild, wmMeasureChild, wmScrollChild
 
Methods inherited from class org.eclipse.swt.widgets.Widget
addDisposeListener, addListener, checkBits, checkParent, checkWidget, dispose, error, filters, getData, getData, getName, getNameText, getStyle, hooks, isListening, isValidSubclass, isValidThread, mbcsToWcs, mbcsToWcs, notifyListeners, postEvent, postEvent, releaseChild, releaseResources, removeDisposeListener, removeListener, removeListener, sendEvent, sendEvent, sendEvent, sendEvent, setData, setData, setInputState, setKeyState, toString, wcsToMbcs, wcsToMbcs
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

items

TableItem[] items

columns

TableColumn[] columns

imageList

ImageList imageList

ignoreSelect

boolean ignoreSelect

dragStarted

boolean dragStarted

ignoreResize

boolean ignoreResize

mouseDown

boolean mouseDown

customDraw

boolean customDraw

TableProc

static final int TableProc

TableClass

static final org.eclipse.swt.internal.win32.TCHAR TableClass
Constructor Detail

Table

public Table(Composite parent,
             int style)
Enabled: 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
See Also:
SWT.SINGLE, SWT.MULTI, SWT.CHECK, SWT.FULL_SELECTION, SWT.HIDE_SELECTION, Widget.checkSubclass(), Widget.getStyle()
Method Detail

addSelectionListener

public void addSelectionListener(SelectionListener listener)
Enabled: Adds the listener to the collection of listeners who will be notified when the receiver's selection changes, 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 reciever has SWT.CHECK style set 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.

Parameters:
listener - the listener which should be notified
See Also:
SelectionListener, removeSelectionListener(org.eclipse.swt.events.SelectionListener), SelectionEvent

callWindowProc

int callWindowProc(int msg,
                   int wParam,
                   int lParam)
Overrides:
callWindowProc in class Scrollable

checkStyle

static int checkStyle(int style)

checkSubclass

protected void checkSubclass()
Description copied from class: Widget
Checks that this class can be subclassed.

The SWT class library is intended to be subclassed only at specific, controlled points (most notably, Composite and Canvas when implementing new widgets). This method enforces this rule unless it is overridden.

IMPORTANT: By providing an implementation of this method that allows a subclass of a class which does not normally allow subclassing to be created, the implementer agrees to be fully responsible for the fact that any such subclass will likely fail between SWT releases and will be strongly platform specific. No support is provided for user-written classes which are implemented in this fashion.

The ability to subclass outside of the allowed SWT classes is intended purely to enable those not on the SWT development team to implement patches in order to get around specific limitations in advance of when those limitations can be addressed by the team. Subclassing should not be attempted without an intimate and detailed understanding of the hierarchy.

Overrides:
checkSubclass in class Composite

computeSize

public Point computeSize(int wHint,
                         int hHint,
                         boolean changed)
Enabled:

Overrides:
computeSize in class Composite
Parameters:
wHint - the width hint (can be SWT.DEFAULT)
hHint - the height hint (can be SWT.DEFAULT)
changed - true if the control's contents have changed, and false otherwise
Returns:
the preferred size of the control.
See Also:
Layout, Control.getBorderWidth(), Control.getBounds(), Control.getSize(), Control.pack(), "computeTrim, getClientArea for controls that implement them"

createHandle

void createHandle()
Overrides:
createHandle in class Composite

createItem

void createItem(TableColumn column,
                int index)

createItem

void createItem(TableItem item,
                int index)

createWidget

void createWidget()
Overrides:
createWidget in class Scrollable

defaultBackground

int defaultBackground()
Overrides:
defaultBackground in class Control

deselect

public void deselect(int[] indices)
Enabled: 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.

Parameters:
indices - the array of indices for the items to deselect

deselect

public void deselect(int index)
Enabled: 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.

Parameters:
index - the index of the item to deselect

deselect

public void deselect(int start,
                     int end)
Enabled: 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.

Parameters:
start - the start index of the items to deselect
end - the end index of the items to deselect

deselectAll

public void deselectAll()
Enabled: Deselects all selected items in the receiver.


destroyItem

void destroyItem(TableColumn column)

destroyItem

void destroyItem(TableItem item)

fixCheckboxImageList

void fixCheckboxImageList()

getBackgroundPixel

int getBackgroundPixel()
Overrides:
getBackgroundPixel in class Control

getColumn

public TableColumn getColumn(int index)
Enabled: Returns the column at the given, zero-relative index in the receiver. Throws an exception if the index is out of range. 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.

Parameters:
index - the index of the column to return
Returns:
the column at the given index

getColumnCount

public int getColumnCount()
Enabled: 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 is may be visible. This occurs when the programmer uses the table like a list, adding items but never creating a column.

Returns:
the number of columns

getColumns

public TableColumn[] getColumns()
Enabled: Returns an array of TableColumns which are the columns in the receiver. 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.

Returns:
the items in the receiver

getFocusIndex

int getFocusIndex()

getForegroundPixel

int getForegroundPixel()
Overrides:
getForegroundPixel in class Control

getGridLineWidth

public int getGridLineWidth()
Enabled: Returns the width in pixels of a grid line.


getHeaderHeight

public int getHeaderHeight()
Enabled: Returns the height of the receiver's header

Returns:
the height of the header or zero if the header is not visible
Since:
2.0

getHeaderVisible

public boolean getHeaderVisible()
Enabled: 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.

Returns:
the receiver's header's visibility state

getItem

public TableItem getItem(int index)
Enabled: Returns the item at the given, zero-relative index in the receiver. Throws an exception if the index is out of range.

Parameters:
index - the index of the item to return
Returns:
the item at the given index

getItem

public TableItem getItem(Point point)
Enabled: 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.

Parameters:
point - the point used to locate the item
Returns:
the item at the given point

getItemCount

public int getItemCount()
Enabled: Returns the number of items contained in the receiver.

Returns:
the number of items

getItemHeight

public int getItemHeight()
Enabled: Returns the height of the area which would be used to display one of the items in the receiver's.

Returns:
the height of one item

getItems

public TableItem[] getItems()
Enabled: Returns an 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.

Returns:
the items in the receiver

getLinesVisible

public boolean getLinesVisible()
Enabled: Returns true if the receiver's lines are 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.

Returns:
the visibility state of the lines

getSelection

public TableItem[] getSelection()
Enabled: Returns an array of TableItems that are currently selected in the receiver. 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.

Returns:
an array representing the selection

getSelectionCount

public int getSelectionCount()
Enabled: Returns the number of selected items contained in the receiver.

Returns:
the number of selected items

getSelectionIndex

public int getSelectionIndex()
Enabled: Returns the zero-relative index of the item which is currently selected in the receiver, or -1 if no item is selected.

Returns:
the index of the selected item

getSelectionIndices

public int[] getSelectionIndices()
Enabled: Returns the zero-relative indices of the items which are currently selected in the receiver. 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.

Returns:
the array of indices of the selected items

getTopIndex

public int getTopIndex()
Enabled: 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.

Returns:
the index of the top item

imageIndex

int imageIndex(Image image)

indexOf

public int indexOf(TableColumn column)
Enabled: 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.

Parameters:
column - the search column
Returns:
the index of the column

indexOf

public int indexOf(TableItem item)
Enabled: 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.

Parameters:
item - the search item
Returns:
the index of the item

isSelected

public boolean isSelected(int index)
Enabled: Returns true if the item is selected, and false otherwise. Indices out of range are ignored.

Parameters:
index - the index of the item
Returns:
the visibility state of the item at the index

releaseWidget

void releaseWidget()
Overrides:
releaseWidget in class Composite

remove

public void remove(int[] indices)
Enabled: Removes the items from the receiver's list at the given zero-relative indices.

Parameters:
indices - the array of indices of the items

remove

public void remove(int index)
Enabled: Removes the item from the receiver at the given zero-relative index.

Parameters:
index - the index for the item

remove

public void remove(int start,
                   int end)
Enabled: Removes the items from the receiver which are between the given zero-relative start and end indices (inclusive).

Parameters:
start - the start of the range
end - the end of the range

removeAll

public void removeAll()
Enabled: Removes all of the items from the receiver.


removeSelectionListener

public void removeSelectionListener(SelectionListener listener)
Enabled: Removes the listener from the collection of listeners who will be notified when the receiver's selection changes.

Parameters:
listener - the listener which should no longer be notified
See Also:
SelectionListener, addSelectionListener(org.eclipse.swt.events.SelectionListener)

select

public void select(int[] indices)
Enabled: Selects the items at the given zero-relative indices in the receiver. If the item at the given zero-relative index in the receiver is not selected, it is selected. If the item at the index was selected, it remains selected. Indices that are out of range and duplicate indices are ignored.

Parameters:
indices - the array of indices for the items to select

select

public void select(int index)
Enabled: 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.

Parameters:
index - the index of the item to select

select

public void select(int start,
                   int end)
Enabled: Selects the items at the given zero-relative indices in the receiver. If the item at the index was already selected, it remains selected. The range of the indices is inclusive. Indices that are out of range are ignored and no items will be selected if start is greater than end.

Parameters:
start - the start of the range
end - the end of the range

selectAll

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


sendMouseDownEvent

org.eclipse.swt.internal.win32.LRESULT sendMouseDownEvent(int type,
                                                          int button,
                                                          int msg,
                                                          int wParam,
                                                          int lParam)

setBackgroundPixel

void setBackgroundPixel(int pixel)
Overrides:
setBackgroundPixel in class Control

setCheckboxImageListColor

void setCheckboxImageListColor()

setCheckboxImageList

void setCheckboxImageList(int width,
                          int height)

setFocusIndex

void setFocusIndex(int index)

setFont

public void setFont(Font font)
Enabled:

Overrides:
setFont in class Control
Parameters:
font - the new font (or null)

setForegroundPixel

void setForegroundPixel(int pixel)
Overrides:
setForegroundPixel in class Control

setHeaderVisible

public void setHeaderVisible(boolean show)
Enabled: 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.


setLinesVisible

public void setLinesVisible(boolean show)
Enabled: Marks the receiver's lines 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.


setRedraw

public void setRedraw(boolean redraw)
Enabled:

Overrides:
setRedraw in class Control
Parameters:
redraw - the new redraw state
See Also:
Control.redraw(), Control.update()

setRowHeight

void setRowHeight()

setScrollWidth

void setScrollWidth()

setSelection

public void setSelection(int[] indices)
Enabled: Selects the items at the given zero-relative indices in the receiver. The current selected is first cleared, then the new items are selected.

Parameters:
indices - the indices of the items to select
See Also:
deselectAll(), select(int[])

setSelection

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

Parameters:
items - the array of items
See Also:
deselectAll(), select(int)

setSelection

public void setSelection(int index)
Enabled: Selects the item at the given zero-relative index in the receiver. The current selected is first cleared, then the new item is selected.

Parameters:
index - the index of the item to select
See Also:
deselectAll(), select(int)

setSelection

public void setSelection(int start,
                         int end)
Enabled: Selects the items at the given zero-relative indices in the receiver. The current selection is first cleared, then 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.

Parameters:
start - the start index of the items to select
end - the end index of the items to select
See Also:
deselectAll(), select(int,int)

setTopIndex

public void setTopIndex(int index)
Enabled: 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.

Parameters:
index - the index of the top item

showItem

void showItem(int index)

showItem

public void showItem(TableItem item)
Enabled: 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.

Parameters:
item - the item to be shown
See Also:
showSelection()

showSelection

public void showSelection()
Enabled: 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.

See Also:
showItem(TableItem)

widgetStyle

int widgetStyle()
Overrides:
widgetStyle in class Composite

windowClass

org.eclipse.swt.internal.win32.TCHAR windowClass()
Overrides:
windowClass in class Scrollable

windowProc

int windowProc()
Overrides:
windowProc in class Scrollable

WM_GETOBJECT

org.eclipse.swt.internal.win32.LRESULT WM_GETOBJECT(int wParam,
                                                    int lParam)
Overrides:
WM_GETOBJECT in class Control

WM_KEYDOWN

org.eclipse.swt.internal.win32.LRESULT WM_KEYDOWN(int wParam,
                                                  int lParam)
Overrides:
WM_KEYDOWN in class Control

WM_LBUTTONDBLCLK

org.eclipse.swt.internal.win32.LRESULT WM_LBUTTONDBLCLK(int wParam,
                                                        int lParam)
Overrides:
WM_LBUTTONDBLCLK in class Control

WM_LBUTTONDOWN

org.eclipse.swt.internal.win32.LRESULT WM_LBUTTONDOWN(int wParam,
                                                      int lParam)
Overrides:
WM_LBUTTONDOWN in class Composite

WM_LBUTTONUP

org.eclipse.swt.internal.win32.LRESULT WM_LBUTTONUP(int wParam,
                                                    int lParam)
Overrides:
WM_LBUTTONUP in class Control

WM_MOUSEHOVER

org.eclipse.swt.internal.win32.LRESULT WM_MOUSEHOVER(int wParam,
                                                     int lParam)
Overrides:
WM_MOUSEHOVER in class Control

WM_NOTIFY

org.eclipse.swt.internal.win32.LRESULT WM_NOTIFY(int wParam,
                                                 int lParam)
Overrides:
WM_NOTIFY in class Composite

WM_RBUTTONDBLCLK

org.eclipse.swt.internal.win32.LRESULT WM_RBUTTONDBLCLK(int wParam,
                                                        int lParam)
Overrides:
WM_RBUTTONDBLCLK in class Control

WM_RBUTTONDOWN

org.eclipse.swt.internal.win32.LRESULT WM_RBUTTONDOWN(int wParam,
                                                      int lParam)
Overrides:
WM_RBUTTONDOWN in class Control

WM_SETFOCUS

org.eclipse.swt.internal.win32.LRESULT WM_SETFOCUS(int wParam,
                                                   int lParam)
Overrides:
WM_SETFOCUS in class Control

WM_SIZE

org.eclipse.swt.internal.win32.LRESULT WM_SIZE(int wParam,
                                               int lParam)
Overrides:
WM_SIZE in class Composite

WM_SYSCOLORCHANGE

org.eclipse.swt.internal.win32.LRESULT WM_SYSCOLORCHANGE(int wParam,
                                                         int lParam)
Overrides:
WM_SYSCOLORCHANGE in class Composite

wmNotifyChild

org.eclipse.swt.internal.win32.LRESULT wmNotifyChild(int wParam,
                                                     int lParam)
Overrides:
wmNotifyChild in class Control


comments?