|
|||||||||
| Home >> All >> org >> eclipse >> swt >> [ widgets overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.eclipse.swt.widgets
Class Table

java.lang.Objectorg.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:
- org.eclipse.swt.graphics.Drawable
- public class Table
- extends Composite
Instances of this class implement a selectable user interface object that displays a list of images and strings and issue notificiation when selected.
The item children that may be added to instances of this class
must be of type TableItem.
Note that although this class is a subclass of Composite,
it does not make sense to add Control children to it,
or set a layout on it.
- Styles:
- SINGLE, MULTI, CHECK, FULL_SELECTION, HIDE_SELECTION, VIRTUAL
- Events:
- Selection, DefaultSelection
Note: Only one of the styles SINGLE, and MULTI may be specified.
IMPORTANT: This class is not intended to be subclassed.
| Field Summary | |
(package private) static int |
BACKGROUND_COLUMN
|
(package private) static int |
CHECKED_COLUMN
|
(package private) long |
checkRenderer
|
(package private) int |
columnCount
|
(package private) TableColumn[] |
columns
|
(package private) static int |
FIRST_COLUMN
|
(package private) boolean |
firstCustomDraw
|
(package private) static int |
FONT_COLUMN
|
(package private) static int |
FOREGROUND_COLUMN
|
(package private) static int |
GRAYED_COLUMN
|
(package private) long |
ignorePixbufCell
|
(package private) long |
ignoreTextCell
|
(package private) ImageList |
imageList
|
(package private) int |
itemCount
|
(package private) TableItem[] |
items
|
(package private) int |
lastDataIndex
|
(package private) int |
lastIndexOf
|
(package private) long |
modelHandle
|
| Fields inherited from class org.eclipse.swt.widgets.Composite |
embeddedHandle, imHandle, layout, socketHandle, tabList |
| Fields inherited from class org.eclipse.swt.widgets.Scrollable |
horizontalBar, scrolledHandle, verticalBar |
| Fields inherited from class org.eclipse.swt.widgets.Control |
accessible, cursor, drawCount, enableWindow, fixedHandle, font, layoutData, menu, parent, redrawWindow, toolTipText |
| Fields inherited from class org.eclipse.swt.widgets.Widget |
ACTIVATE, BUTTON_PRESS_EVENT, BUTTON_RELEASE_EVENT, CANVAS, CHANGED, CLICKED, COMMIT, CONFIGURE_EVENT, data, DEFAULT_HEIGHT, DEFAULT_WIDTH, DELETE_EVENT, DELETE_RANGE, DELETE_TEXT, DISABLED, display, DISPOSED, ENTER_NOTIFY_EVENT, EVENT, EVENT_AFTER, eventTable, EXPOSE_EVENT, FOCUS, FOCUS_IN_EVENT, FOCUS_OUT_EVENT, handle, HANDLE, HIDE, INSERT_TEXT, KEY_PRESS_EVENT, KEY_RELEASE_EVENT, KEYED_DATA, LEAVE_NOTIFY_EVENT, MAP_EVENT, MENU, MNEMONIC_ACTIVATE, MOTION_NOTIFY_EVENT, OBSCURED, POPUP_MENU, PREEDIT_CHANGED, REALIZE, ROW_ACTIVATED, SCROLL_CHILD, SELECT, SHOW, SHOW_HELP, SIZE_ALLOCATE, state, style, STYLE_SET, SWITCH_PAGE, TEST_COLLAPSE_ROW, TEST_EXPAND_ROW, TOGGLED, UNMAP_EVENT, UNREALIZE, VALUE_CHANGED, VISIBILITY_NOTIFY_EVENT, WINDOW_STATE_EVENT |
| Constructor Summary | |
Table(Composite parent,
int style)
Constructs a new instance of this class given its parent and a style value describing its behavior and appearance. |
|
| Method Summary | |
(package private) TableItem |
_getItem(int index)
|
void |
addSelectionListener(org.eclipse.swt.events.SelectionListener listener)
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 |
calculateWidth(long column,
long iter)
|
(package private) static int |
checkStyle(int style)
|
void |
clear(int index)
Clears the item at the given zero-relative index in the receiver. |
void |
clear(int[] indices)
Clears the items at the given zero-relative indices in the receiver. |
void |
clear(int start,
int end)
Removes the items from the receiver which are between the given zero-relative start and end indices (inclusive). |
void |
clearAll()
Clears all the items in the receiver. |
org.eclipse.swt.graphics.Point |
computeSize(int wHint,
int hHint,
boolean changed)
Returns the preferred size of the receiver. |
(package private) void |
createColumn(TableColumn column,
int index)
|
(package private) void |
createHandle(int index)
|
(package private) void |
createItem(TableColumn column,
int index)
|
(package private) void |
createItem(TableItem item,
int index)
|
(package private) void |
createRenderers(long columnHandle,
int modelIndex,
boolean check,
int columnStyle)
|
(package private) void |
createWidget(int index)
|
(package private) void |
deregister()
|
void |
deselect(int index)
Deselects the item at the given zero-relative index in the receiver. |
void |
deselect(int[] indices)
Deselects the items at the given zero-relative indices in the receiver. |
void |
deselect(int start,
int end)
Deselects the items at the given zero-relative indices in the receiver. |
void |
deselectAll()
Deselects all selected items in the receiver. |
(package private) void |
destroyItem(TableColumn column)
|
(package private) void |
destroyItem(TableItem item)
|
(package private) org.eclipse.swt.internal.gtk.GdkColor |
getBackgroundColor()
|
TableColumn |
getColumn(int index)
Returns the column at the given, zero-relative index in the receiver. |
int |
getColumnCount()
Returns the number of columns contained in the receiver. |
TableColumn[] |
getColumns()
Returns an array of TableColumns which are the
columns in the receiver. |
(package private) long[] |
getColumnTypes(int n)
|
(package private) TableItem |
getFocusItem()
|
(package private) org.eclipse.swt.internal.gtk.GdkColor |
getForegroundColor()
|
int |
getGridLineWidth()
Returns the width in pixels of a grid line. |
int |
getHeaderHeight()
Returns the height of the receiver's header |
boolean |
getHeaderVisible()
Returns true if the receiver's header is visible,
and false otherwise. |
TableItem |
getItem(int index)
Returns the item at the given, zero-relative index in the receiver. |
TableItem |
getItem(org.eclipse.swt.graphics.Point pt)
Returns the item at the given point in the receiver or null if no such item exists. |
int |
getItemCount()
Returns the number of items contained in the receiver. |
int |
getItemHeight()
Returns the height of the area which would be used to display one of the items in the receiver's. |
TableItem[] |
getItems()
Returns an array of TableItems which are the items
in the receiver. |
boolean |
getLinesVisible()
Returns true if the receiver's lines are visible,
and false otherwise. |
TableItem[] |
getSelection()
Returns an array of TableItems that are currently
selected in the receiver. |
int |
getSelectionCount()
Returns the number of selected items contained in the receiver. |
int |
getSelectionIndex()
Returns the zero-relative index of the item which is currently selected in the receiver, or -1 if no item is selected. |
int[] |
getSelectionIndices()
Returns the zero-relative indices of the items which are currently selected in the receiver. |
int |
getTopIndex()
Returns the zero-relative index of the item which is currently at the top of the receiver. |
(package private) long |
gtk_button_press_event(long widget,
long event)
|
(package private) long |
gtk_button_release_event(long widget,
long event)
|
(package private) long |
gtk_changed(long widget)
|
(package private) long |
gtk_key_press_event(long widget,
long eventPtr)
|
(package private) long |
gtk_motion_notify_event(long widget,
long event)
|
(package private) long |
gtk_row_activated(long tree,
long path,
long column)
|
(package private) long |
gtk_toggled(long renderer,
long pathStr)
|
(package private) void |
hookEvents()
|
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. |
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. |
boolean |
isSelected(int index)
Returns true if the item is selected,
and false otherwise. |
(package private) boolean |
mnemonicHit(char key)
|
(package private) boolean |
mnemonicMatch(char key)
|
(package private) long |
paintWindow()
|
(package private) long |
pixbufCellDataProc(long tree_column,
long cell,
long tree_model,
long iter,
long data)
|
(package private) void |
register()
|
(package private) void |
releaseWidget()
|
void |
remove(int index)
Removes the item from the receiver at the given zero-relative index. |
void |
remove(int[] indices)
Removes the items from the receiver's list at the given zero-relative indices. |
void |
remove(int start,
int end)
Removes the items from the receiver which are between the given zero-relative start and end indices (inclusive). |
void |
removeAll()
Removes all of the items from the receiver. |
void |
removeSelectionListener(org.eclipse.swt.events.SelectionListener listener)
Removes the listener from the collection of listeners who will be notified when the receiver's selection changes. |
(package private) void |
resetCustomDraw()
|
void |
select(int index)
Selects the item at the given zero-relative index in the receiver. |
void |
select(int[] indices)
Selects the items at the given zero-relative indices in the receiver. |
void |
select(int start,
int end)
Selects the items in the range specified by the given zero-relative indices in the receiver. |
void |
selectAll()
Selects all of the items in the receiver. |
(package private) void |
setBackgroundColor(org.eclipse.swt.internal.gtk.GdkColor color)
|
(package private) boolean |
setBounds(int x,
int y,
int width,
int height,
boolean move,
boolean resize)
|
(package private) boolean |
setCellData(long tree_model,
long iter)
|
(package private) void |
setFontDescription(long font)
|
(package private) void |
setForegroundColor(org.eclipse.swt.internal.gtk.GdkColor color)
|
void |
setHeaderVisible(boolean show)
Marks the receiver's header as visible if the argument is true,
and marks it invisible otherwise. |
void |
setItemCount(int count)
Sets the number of items contained in the receiver. |
void |
setLinesVisible(boolean show)
Marks the receiver's lines as visible if the argument is true,
and marks it invisible otherwise. |
void |
setRedraw(boolean redraw)
If the argument is false, causes subsequent drawing
operations in the receiver to be ignored. |
(package private) void |
setScrollWidth(long column,
long iter)
|
void |
setSelection(int index)
Selects the item at the given zero-relative index in the receiver. |
void |
setSelection(int[] indices)
Selects the items at the given zero-relative indices in the receiver. |
void |
setSelection(int start,
int end)
Selects the items in the range specified by the given zero-relative indices in the receiver. |
void |
setSelection(TableItem[] items)
Sets the receiver's selection to be the given array of items. |
void |
setTopIndex(int index)
Sets the zero-relative index of the item which is currently at the top of the receiver. |
void |
showColumn(TableColumn column)
Shows the column. |
(package private) void |
showItem(long iter)
|
void |
showItem(TableItem item)
Shows the item. |
void |
showSelection()
Shows the selection. |
(package private) long |
textCellDataProc(long tree_column,
long cell,
long tree_model,
long iter,
long data)
|
(package private) long |
treeSelectionProc(long model,
long path,
long iter,
int[] selection,
int length)
|
| Methods inherited from class org.eclipse.swt.widgets.Composite |
_getChildren, _getTabList, checkSubclass, computeTabList, createHandle, enableWidget, findMenus, fixChildren, fixTabList, focusHandle, forceFocus, getChildren, getChildrenCount, getLayout, getTabList, gtk_expose_event, gtk_focus_in_event, gtk_focus_out_event, gtk_focus, gtk_realize, gtk_scroll_child, gtk_style_set, hasBorder, hooksKeys, imHandle, isTabGroup, layout, layout, minimumSize, moveAbove, moveBelow, parentingHandle, releaseChildren, removeControl, resizeHandle, setFocus, setLayout, setTabGroupFocus, setTabItemFocus, setTabList, translateMnemonic, translateTraversal, traversalCode |
| Methods inherited from class org.eclipse.swt.widgets.Scrollable |
clientHandle, computeTrim, createScrollBar, getBorderWidth, getClientArea, getHorizontalBar, getVerticalBar, hScrollBarWidth, releaseHandle, setOrientation, topHandle, vScrollBarWidth |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
modelHandle
long modelHandle
checkRenderer
long checkRenderer
itemCount
int itemCount
columnCount
int columnCount
lastIndexOf
int lastIndexOf
lastDataIndex
int lastDataIndex
ignoreTextCell
long ignoreTextCell
ignorePixbufCell
long ignorePixbufCell
items
TableItem[] items
columns
TableColumn[] columns
imageList
ImageList imageList
firstCustomDraw
boolean firstCustomDraw
CHECKED_COLUMN
static final int CHECKED_COLUMN
- See Also:
- Constant Field Values
GRAYED_COLUMN
static final int GRAYED_COLUMN
- See Also:
- Constant Field Values
FOREGROUND_COLUMN
static final int FOREGROUND_COLUMN
- See Also:
- Constant Field Values
BACKGROUND_COLUMN
static final int BACKGROUND_COLUMN
- See Also:
- Constant Field Values
FONT_COLUMN
static final int FONT_COLUMN
- See Also:
- Constant Field Values
FIRST_COLUMN
static final int FIRST_COLUMN
- See Also:
- Constant Field Values
| Constructor Detail |
Table
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
SWTwhich is applicable to instances of this class, or must be built by bitwise OR'ing together (that is, using theint"|" operator) two or more of thoseSWTstyle constants. The class description lists the style constants that are applicable to the class. Style bits are also inherited from superclasses.
| Method Detail |
_getItem
TableItem _getItem(int index)
checkStyle
static int checkStyle(int style)
addSelectionListener
public void addSelectionListener(org.eclipse.swt.events.SelectionListener listener)
- 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
SelectionListenerinterface.When
widgetSelectedis called, the item field of the event object is valid. If the reciever hasSWT.CHECKstyle set and the check selection changes, the event object detail field contains the valueSWT.CHECK.widgetDefaultSelectedis 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.
textCellDataProc
long textCellDataProc(long tree_column,
long cell,
long tree_model,
long iter,
long data)
- Overrides:
textCellDataProcin classWidget
pixbufCellDataProc
long pixbufCellDataProc(long tree_column,
long cell,
long tree_model,
long iter,
long data)
- Overrides:
pixbufCellDataProcin classWidget
calculateWidth
int calculateWidth(long column,
long iter)
computeSize
public org.eclipse.swt.graphics.Point computeSize(int wHint, int hHint, boolean changed)
- Description copied from class:
Control - Returns the preferred size of the receiver.
The preferred size of a control is the size that it would best be displayed at. The width hint and height hint arguments allow the caller to ask a control questions such as "Given a particular width, how high does the control need to be to show all of the contents?" To indicate that the caller does not wish to constrain a particular dimension, the constant
SWT.DEFAULTis passed for the hint.If the changed flag is
true, it indicates that the receiver's contents have changed, therefore any caches that a layout manager containing the control may have been keeping need to be flushed. When the control is resized, the changed flag will befalse, so layout manager caches can be retained.- Overrides:
computeSizein classComposite
clear
public void clear(int index)
- Clears the item at the given zero-relative index in the receiver.
The text, icon and other attribues 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.
- Since:
- 3.0
clear
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 attribues 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.
- Since:
- 3.0
clear
public void clear(int[] indices)
- Clears the items at the given zero-relative indices in the receiver.
The text, icon and other attribues 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.
- Since:
- 3.0
clearAll
public void clearAll()
- Clears all the items in the receiver. The text, icon and other
attribues 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.
- Since:
- 3.0
createHandle
void createHandle(int index)
- Overrides:
createHandlein classComposite
createColumn
void createColumn(TableColumn column, int index)
createRenderers
void createRenderers(long columnHandle,
int modelIndex,
boolean check,
int columnStyle)
createItem
void createItem(TableColumn column, int index)
createItem
void createItem(TableItem item, int index)
createWidget
void createWidget(int index)
- Overrides:
createWidgetin classScrollable
deregister
void deregister()
- Overrides:
deregisterin classComposite
deselect
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.
deselect
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.
deselect
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.
deselectAll
public void deselectAll()
- Deselects all selected items in the receiver.
destroyItem
void destroyItem(TableColumn column)
destroyItem
void destroyItem(TableItem item)
getBackgroundColor
org.eclipse.swt.internal.gtk.GdkColor getBackgroundColor()
- Overrides:
getBackgroundColorin classControl
getColumn
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.
If no
TableColumns were created by the programmer, this method will throwERROR_INVALID_RANGEdespite 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.
getColumnCount
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 is may be visible. This occurs when the programmer uses the table like a list, adding items but never creating a column.
getColumnTypes
long[] getColumnTypes(int n)
getColumns
public TableColumn[] getColumns()
- Returns an array of
TableColumns which are the columns in the receiver. If noTableColumns 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.
getFocusItem
TableItem getFocusItem()
getForegroundColor
org.eclipse.swt.internal.gtk.GdkColor getForegroundColor()
- Overrides:
getForegroundColorin classControl
getGridLineWidth
public int getGridLineWidth()
- Returns the width in pixels of a grid line.
getHeaderHeight
public int getHeaderHeight()
- Returns the height of the receiver's header
- Since:
- 2.0
getHeaderVisible
public boolean getHeaderVisible()
- Returns
trueif the receiver's header is visible, andfalseotherwise.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.
getItem
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.
getItem
public TableItem getItem(org.eclipse.swt.graphics.Point pt)
- 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.
getItemCount
public int getItemCount()
- Returns the number of items contained in the receiver.
getItemHeight
public int getItemHeight()
- Returns the height of the area which would be used to
display one of the items in the receiver's.
getItems
public TableItem[] getItems()
- 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.
getLinesVisible
public boolean getLinesVisible()
- Returns
trueif the receiver's lines are visible, andfalseotherwise.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.
getSelection
public TableItem[] getSelection()
- 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.
getSelectionCount
public int getSelectionCount()
- Returns the number of selected items contained in the receiver.
getSelectionIndex
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.
getSelectionIndices
public int[] getSelectionIndices()
- 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.
getTopIndex
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.
gtk_button_press_event
long gtk_button_press_event(long widget,
long event)
- Overrides:
gtk_button_press_eventin classComposite
gtk_button_release_event
long gtk_button_release_event(long widget,
long event)
- Overrides:
gtk_button_release_eventin classControl
gtk_changed
long gtk_changed(long widget)
- Overrides:
gtk_changedin classWidget
gtk_key_press_event
long gtk_key_press_event(long widget,
long eventPtr)
- Overrides:
gtk_key_press_eventin classComposite
gtk_motion_notify_event
long gtk_motion_notify_event(long widget,
long event)
- Overrides:
gtk_motion_notify_eventin classControl
gtk_row_activated
long gtk_row_activated(long tree,
long path,
long column)
- Overrides:
gtk_row_activatedin classWidget
gtk_toggled
long gtk_toggled(long renderer,
long pathStr)
- Overrides:
gtk_toggledin classWidget
hookEvents
void hookEvents()
- Overrides:
hookEventsin classComposite
indexOf
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.
indexOf
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.
isSelected
public boolean isSelected(int index)
- Returns
trueif the item is selected, andfalseotherwise. Indices out of range are ignored.
mnemonicHit
boolean mnemonicHit(char key)
- Overrides:
mnemonicHitin classControl
mnemonicMatch
boolean mnemonicMatch(char key)
- Overrides:
mnemonicMatchin classControl
paintWindow
long paintWindow()
- Overrides:
paintWindowin classControl
releaseWidget
void releaseWidget()
- Overrides:
releaseWidgetin classComposite
register
void register()
remove
public void remove(int index)
- Removes the item from the receiver at the given
zero-relative index.
remove
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).
remove
public void remove(int[] indices)
- Removes the items from the receiver's list at the given
zero-relative indices.
removeAll
public void removeAll()
- Removes all of the items from the receiver.
removeSelectionListener
public void removeSelectionListener(org.eclipse.swt.events.SelectionListener listener)
- Removes the listener from the collection of listeners who will
be notified when the receiver's selection changes.
resetCustomDraw
void resetCustomDraw()
select
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.
select
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.
select
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.
selectAll
public void selectAll()
- Selects all of the items in the receiver.
If the receiver is single-select, do nothing.
setBackgroundColor
void setBackgroundColor(org.eclipse.swt.internal.gtk.GdkColor color)
- Overrides:
setBackgroundColorin classControl
setBounds
boolean setBounds(int x,
int y,
int width,
int height,
boolean move,
boolean resize)
JAVADOC