Table

Instances of this class implement a selectable user interface object that displays a list of images and strings and issues notification when selected. <p> The item children that may be added to instances of this class must be of type <code>TableItem</code>. </p><p> Style <code>VIRTUAL</code> is used to create a <code>Table</code> whose <code>TableItem</code>s 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 <code>TableItem</code> population is expensive (for example, retrieving values from an external source). </p><p> Here is an example of using a <code>Table</code> with style <code>VIRTUAL</code>: <code><pre> 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 ()); } }); </pre></code> </p><p> Note that although this class is a subclass of <code>Composite</code>, it does not normally make sense to add <code>Control</code> children to it, or set a layout on it, unless implementing something like a cell editor. </p><p> <dl> <dt><b>Styles:</b></dt> <dd>SINGLE, MULTI, CHECK, FULL_SELECTION, HIDE_SELECTION, VIRTUAL, NO_SCROLL</dd> <dt><b>Events:</b></dt> <dd>Selection, DefaultSelection, SetData, MeasureItem, EraseItem, PaintItem</dd> </dl> </p><p> Note: Only one of the styles SINGLE, and MULTI may be specified. </p><p> IMPORTANT: This class is <em>not</em> intended to be subclassed. </p>

@see <a href="http://www.eclipse.org/swt/snippets/#table">Table, TableItem, TableColumn snippets</a> @see <a href="http://www.eclipse.org/swt/examples.php">SWT Example: ControlExample</a> @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>

class Table : Composite {}

Constructors

this
this(Composite parent, int style)

Constructs a new instance of this class given its parent and a style value describing its behavior and appearance. <p> The style value is either one of the style constants defined in class <code>SWT</code> which is applicable to instances of this class, or must be built by <em>bitwise OR</em>'ing together (that is, using the <code>int</code> "|" operator) two or more of those <code>SWT</code> style constants. The class description lists the style constants that are applicable to the class. Style bits are also inherited from superclasses. </p>

Members

Aliases

computeSize
alias computeSize = Composite.computeSize
Undocumented in source.
createHandle
alias createHandle = Composite.createHandle
Undocumented in source.
dragDetect
alias dragDetect = Composite.dragDetect
Undocumented in source.
mnemonicHit
alias mnemonicHit = Composite.mnemonicHit
Undocumented in source.
mnemonicMatch
alias mnemonicMatch = Composite.mnemonicMatch
Undocumented in source.
setBackgroundColor
alias setBackgroundColor = Composite.setBackgroundColor
Undocumented in source.
setBounds
alias setBounds = Composite.setBounds
Undocumented in source.

Functions

_addListener
void _addListener(int eventType, Listener listener)
Undocumented in source. Be warned that the author may not have intended to support it.
_getItem
TableItem _getItem(int index)
Undocumented in source. Be warned that the author may not have intended to support it.
addSelectionListener
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 <code>SelectionListener</code> interface. <p> When <code>widgetSelected</code> is called, the item field of the event object is valid. If the receiver has the <code>SWT.CHECK</code> style and the check selection changes, the event object detail field contains the value <code>SWT.CHECK</code>. <code>widgetDefaultSelected</code> 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. </p>

calculateWidth
int calculateWidth(GtkTreeViewColumn* column, GtkTreeIter* iter)
Undocumented in source. Be warned that the author may not have intended to support it.
cellDataProc
void cellDataProc(GtkTreeViewColumn* tree_column, GtkCellRenderer* cell, GtkTreeModel* tree_model, GtkTreeIter* iter, void* data)
Undocumented in source. Be warned that the author may not have intended to support it.
checkData
bool checkData(TableItem item)
Undocumented in source. Be warned that the author may not have intended to support it.
checkSubclass
void checkSubclass()
Undocumented in source. Be warned that the author may not have intended to support it.
clear
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 <code>SWT.VIRTUAL</code> style, these attributes are requested again as needed.

clear
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 <code>SWT.VIRTUAL</code> style, these attributes are requested again as needed.

clear
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 <code>SWT.VIRTUAL</code> style, these attributes are requested again as needed.

clearAll
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 <code>SWT.VIRTUAL</code> style, these attributes are requested again as needed.

computeSize
Point computeSize(int wHint, int hHint, bool changed)
Undocumented in source. Be warned that the author may not have intended to support it.
createColumn
void createColumn(TableColumn column, int index)
Undocumented in source. Be warned that the author may not have intended to support it.
createHandle
void createHandle(int index)
Undocumented in source. Be warned that the author may not have intended to support it.
createItem
void createItem(TableItem item, int index)
Undocumented in source. Be warned that the author may not have intended to support it.
createItem
void createItem(TableColumn column, int index)
Undocumented in source. Be warned that the author may not have intended to support it.
createRenderers
void createRenderers(GtkTreeViewColumn* columnHandle, int modelIndex, bool check, int columnStyle)
Undocumented in source. Be warned that the author may not have intended to support it.
createWidget
void createWidget(int index)
Undocumented in source. Be warned that the author may not have intended to support it.
defaultBackground
GdkColor* defaultBackground()
Undocumented in source. Be warned that the author may not have intended to support it.
defaultForeground
GdkColor* defaultForeground()
Undocumented in source. Be warned that the author may not have intended to support it.
deregister
void deregister()
Undocumented in source. Be warned that the author may not have intended to support it.
deselect
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.

deselect
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
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.

deselectAll
void deselectAll()

Deselects all selected items in the receiver.

destroyItem
void destroyItem(TableItem item)
Undocumented in source. Be warned that the author may not have intended to support it.
destroyItem
void destroyItem(TableColumn column)
Undocumented in source. Be warned that the author may not have intended to support it.
dragDetect
bool dragDetect(int x, int y, bool filter, bool* consume)
Undocumented in source. Be warned that the author may not have intended to support it.
eventWindow
GdkDrawable* eventWindow()
Undocumented in source. Be warned that the author may not have intended to support it.
fixChildren
void fixChildren(Shell newShell, Shell oldShell, Decorations newDecorations, Decorations oldDecorations, Menu[] menus)
Undocumented in source. Be warned that the author may not have intended to support it.
getBackgroundColor
GdkColor* getBackgroundColor()
Undocumented in source. Be warned that the author may not have intended to support it.
getClientArea
Rectangle getClientArea()
Undocumented in source. Be warned that the author may not have intended to support it.
getClientWidth
int getClientWidth()
Undocumented in source. Be warned that the author may not have intended to support it.
getColumn
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 <code>TableColumn</code>s were created by the programmer, this method will throw <code>ERROR_INVALID_RANGE</code> 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.

getColumnCount
int getColumnCount()

Returns the number of columns contained in the receiver. If no <code>TableColumn</code>s 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.

getColumnOrder
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. <p> 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. </p><p> 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. </p>

getColumnTypes
size_t[] getColumnTypes(int columnCount)
Undocumented in source. Be warned that the author may not have intended to support it.
getColumns
TableColumn[] getColumns()

Returns an array of <code>TableColumn</code>s which are the columns in the receiver. Columns are returned in the order that they were created. If no <code>TableColumn</code>s 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. <p> 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. </p>

getFocusItem
TableItem getFocusItem()
Undocumented in source. Be warned that the author may not have intended to support it.
getForegroundColor
GdkColor* getForegroundColor()
Undocumented in source. Be warned that the author may not have intended to support it.
getGridLineWidth
int getGridLineWidth()

Returns the width in pixels of a grid line.

getHeaderHeight
int getHeaderHeight()

Returns the height of the receiver's header

getHeaderVisible
bool getHeaderVisible()

Returns <code>true</code> if the receiver's header is visible, and <code>false</code> otherwise. <p> 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. </p>

getItem
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
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. <p> 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. </p>

getItemCount
int getItemCount()

Returns the number of items contained in the receiver.

getItemHeight
int getItemHeight()

Returns the height of the area which would be used to display <em>one</em> of the items in the receiver.

getItems
TableItem[] getItems()

Returns a (possibly empty) array of <code>TableItem</code>s which are the items in the receiver. <p> 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. </p>

getLinesVisible
bool getLinesVisible()

Returns <code>true</code> if the receiver's lines are visible, and <code>false</code> otherwise. <p> 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. </p>

getPixbufRenderer
GtkCellRendererPixbuf* getPixbufRenderer(GtkTreeViewColumn* column)
Undocumented in source. Be warned that the author may not have intended to support it.
getSelection
TableItem[] getSelection()

Returns an array of <code>TableItem</code>s that are currently selected in the receiver. The order of the items is unspecified. An empty array indicates that no items are selected. <p> Note: This is not the actual structure used by the receiver to maintain its selection, so modifying the array will not affect the receiver. </p> @return an array representing the selection

getSelectionCount
int getSelectionCount()

Returns the number of selected items contained in the receiver.

getSelectionIndex
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
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. <p> Note: This is not the actual structure used by the receiver to maintain its selection, so modifying the array will not affect the receiver. </p> @return the array of indices of the selected items

getSortColumn
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.

getSortDirection
int getSortDirection()

Returns the direction of the sort indicator for the receiver. The value will be one of <code>UP</code>, <code>DOWN</code> or <code>NONE</code>.

getTextRenderer
GtkCellRendererText* getTextRenderer(GtkTreeViewColumn* column)
Undocumented in source. Be warned that the author may not have intended to support it.
getTopIndex
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
int gtk_button_press_event(GtkWidget* widget, GdkEventButton* gdkEvent)
Undocumented in source. Be warned that the author may not have intended to support it.
gtk_button_release_event
int gtk_button_release_event(GtkWidget* widget, GdkEventButton* event)
Undocumented in source. Be warned that the author may not have intended to support it.
gtk_changed
int gtk_changed(GtkWidget* widget)
Undocumented in source. Be warned that the author may not have intended to support it.
gtk_key_press_event
int gtk_key_press_event(GtkWidget* widget, GdkEventKey* keyEvent)
Undocumented in source. Be warned that the author may not have intended to support it.
gtk_motion_notify_event
int gtk_motion_notify_event(GtkWidget* widget, GdkEventMotion* event)
Undocumented in source. Be warned that the author may not have intended to support it.
gtk_popup_menu
int gtk_popup_menu(GtkWidget* widget)
Undocumented in source. Be warned that the author may not have intended to support it.
gtk_row_activated
void gtk_row_activated(GtkTreeView* tree, GtkTreePath* path, GtkTreeViewColumn* column)
Undocumented in source. Be warned that the author may not have intended to support it.
gtk_toggled
int gtk_toggled(int renderer, char* pathStr)
Undocumented in source. Be warned that the author may not have intended to support it.
gtk_widget_size_request
void gtk_widget_size_request(GtkWidget* widget, GtkRequisition* requisition)
Undocumented in source. Be warned that the author may not have intended to support it.
hideFirstColumn
void hideFirstColumn()
Undocumented in source. Be warned that the author may not have intended to support it.
hookEvents
void hookEvents()
Undocumented in source. Be warned that the author may not have intended to support it.
indexOf
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
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
bool isSelected(int index)

Returns <code>true</code> if the item is selected, and <code>false</code> otherwise. Indices out of range are ignored.

mnemonicHit
bool mnemonicHit(wchar key)
Undocumented in source. Be warned that the author may not have intended to support it.
mnemonicMatch
bool mnemonicMatch(wchar key)
Undocumented in source. Be warned that the author may not have intended to support it.
paintWindow
GdkDrawable* paintWindow()
Undocumented in source. Be warned that the author may not have intended to support it.
recreateRenderers
void recreateRenderers()
Undocumented in source. Be warned that the author may not have intended to support it.
redrawBackgroundImage
void redrawBackgroundImage()
Undocumented in source. Be warned that the author may not have intended to support it.
register
void register()
Undocumented in source. Be warned that the author may not have intended to support it.
releaseChildren
void releaseChildren(bool destroy)
Undocumented in source. Be warned that the author may not have intended to support it.
releaseWidget
void releaseWidget()
Undocumented in source. Be warned that the author may not have intended to support it.
remove
void remove(int index)

Removes the item from the receiver at the given zero-relative index.

remove
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
void remove(int[] indices)

Removes the items from the receiver's list at the given zero-relative indices.

removeAll
void removeAll()

Removes all of the items from the receiver.

removeSelectionListener
void removeSelectionListener(SelectionListener listener)

Removes the listener from the collection of listeners who will be notified when the user changes the receiver's selection.

rendererGetSizeProc
void rendererGetSizeProc(GtkCellRenderer* cell, GtkWidget* widget, GdkRectangle* cell_area, int* x_offset, int* y_offset, int* width, int* height)
Undocumented in source. Be warned that the author may not have intended to support it.
rendererRenderProc
void rendererRenderProc(GtkCellRenderer* cell, GdkDrawable* window, GtkWidget* widget, GdkRectangle* background_area, GdkRectangle* cell_area, GdkRectangle* expose_area, int flags)
Undocumented in source. Be warned that the author may not have intended to support it.
resetCustomDraw
void resetCustomDraw()
Undocumented in source. Be warned that the author may not have intended to support it.
select
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
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. <p> 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. </p>

select
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. <p> 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. </p>

selectAll
void selectAll()

Selects all of the items in the receiver. <p> If the receiver is single-select, do nothing. </p>

selectFocusIndex
void selectFocusIndex(int index)
Undocumented in source. Be warned that the author may not have intended to support it.
setBackgroundColor
void setBackgroundColor(GdkColor* color)
Undocumented in source. Be warned that the author may not have intended to support it.
setBackgroundPixmap
void setBackgroundPixmap(GdkPixmap* pixmap)
Undocumented in source. Be warned that the author may not have intended to support it.
setBounds
int setBounds(int x, int y, int width, int height, bool move, bool resize)
Undocumented in source. Be warned that the author may not have intended to support it.
setColumnOrder
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.

setFontDescription
void setFontDescription(PangoFontDescription* font)
Undocumented in source. Be warned that the author may not have intended to support it.
setHeaderVisible
void setHeaderVisible(bool show)

Marks the receiver's header as visible if the argument is <code>true</code>, and marks it invisible otherwise. <p> 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. </p>

setItemCount
void setItemCount(int count)

Sets the number of items contained in the receiver.

setLinesVisible
void setLinesVisible(bool show)

Marks the receiver's lines as visible if the argument is <code>true</code>, and marks it invisible otherwise. <p> 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. </p>

setParentBackground
void setParentBackground()
Undocumented in source. Be warned that the author may not have intended to support it.
setParentWindow
void setParentWindow(GtkWidget* widget)
Undocumented in source. Be warned that the author may not have intended to support it.
setRedraw
void setRedraw(bool redraw)
Undocumented in source. Be warned that the author may not have intended to support it.
setScrollWidth
void setScrollWidth(GtkTreeViewColumn* column, TableItem item)
Undocumented in source. Be warned that the author may not have intended to support it.
setSelection
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.

setSelection
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. <p> 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. </p>

setSelection
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. <p> 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. </p>

setSelection
void setSelection(TableItem item)

Sets the receiver's selection to the given item. The current selection is cleared before the new item is selected. <p> If the item is not in the receiver, then it is ignored. </p>

setSelection
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. <p> 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. </p>

setSortColumn
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.

setSortDirection
void setSortDirection(int direction)

Sets the direction of the sort indicator for the receiver. The value can be one of <code>UP</code>, <code>DOWN</code> or <code>NONE</code>.

setTopIndex
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.

showColumn
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.

showFirstColumn
bool showFirstColumn()
Undocumented in source. Be warned that the author may not have intended to support it.
showItem
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.

showItem
void showItem(GtkTreeIter* iter)
Undocumented in source. Be warned that the author may not have intended to support it.
showSelection
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.

treeSelectionProc
void treeSelectionProc(GtkTreeModel* model, GtkTreePath* path, GtkTreeIter* iter, int[] selection, int length_)
Undocumented in source. Be warned that the author may not have intended to support it.
updateScrollBarValue
void updateScrollBarValue(ScrollBar bar)
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

checkStyle
int checkStyle(int style)
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

BACKGROUND_COLUMN
int BACKGROUND_COLUMN;
Undocumented in source.
CELL_BACKGROUND
int CELL_BACKGROUND;
Undocumented in source.
CELL_FONT
int CELL_FONT;
Undocumented in source.
CELL_FOREGROUND
int CELL_FOREGROUND;
Undocumented in source.
CELL_PIXBUF
int CELL_PIXBUF;
Undocumented in source.
CELL_TEXT
int CELL_TEXT;
Undocumented in source.
CELL_TYPES
int CELL_TYPES;
Undocumented in source.
CHECKED_COLUMN
int CHECKED_COLUMN;
Undocumented in source.
FIRST_COLUMN
int FIRST_COLUMN;
Undocumented in source.
FONT_COLUMN
int FONT_COLUMN;
Undocumented in source.
FOREGROUND_COLUMN
int FOREGROUND_COLUMN;
Undocumented in source.
GRAYED_COLUMN
int GRAYED_COLUMN;
checkRenderer
GtkWidget* checkRenderer;
columnCount
int columnCount;
Undocumented in source.

Variables

columns
TableColumn[] columns;
Undocumented in source.
currentItem
TableItem currentItem;
drawFlags
int drawFlags;
Undocumented in source.
drawForeground
GdkColor* drawForeground;
Undocumented in source.
drawState
int drawState;
Undocumented in source.
firstCustomDraw
bool firstCustomDraw;
headerImageList
ImageList headerImageList;
Undocumented in source.
ignoreCell
GtkWidget* ignoreCell;
ignoreSize
bool ignoreSize;
Undocumented in source.
imageList
ImageList imageList;
Undocumented in source.
itemCount
int itemCount;
Undocumented in source.
items
TableItem[] items;
lastIndexOf
int lastIndexOf;
Undocumented in source.
modelHandle
GtkWidget* modelHandle;
Undocumented in source.
ownerDraw
bool ownerDraw;
Undocumented in source.
sortColumn
TableColumn sortColumn;
sortDirection
int sortDirection;
Undocumented in source.
treeSelectionCallbackData
CallbackData treeSelectionCallbackData;
Undocumented in source.

Inherited Members

From Composite

computeSize
alias computeSize = Scrollable.computeSize
Undocumented in source.
fixStyle
alias fixStyle = Scrollable.fixStyle
Undocumented in source.
forceFocus
alias forceFocus = Scrollable.forceFocus
Undocumented in source.
gtk_button_press_event
alias gtk_button_press_event = Scrollable.gtk_button_press_event
Undocumented in source.
moveAbove
alias moveAbove = Scrollable.moveAbove
Undocumented in source.
moveBelow
alias moveBelow = Scrollable.moveBelow
Undocumented in source.
setBounds
alias setBounds = Scrollable.setBounds
Undocumented in source.
translateMnemonic
alias translateMnemonic = Scrollable.translateMnemonic
Undocumented in source.
translateTraversal
alias translateTraversal = Scrollable.translateTraversal
Undocumented in source.
embeddedHandle
size_t embeddedHandle;
Undocumented in source.
imHandle_
GtkIMContext* imHandle_;
Undocumented in source.
socketHandle
GtkWidget* socketHandle;
Undocumented in source.
layout_
Layout layout_;
Undocumented in source.
tabList
Control[] tabList;
Undocumented in source.
layoutCount
int layoutCount;
backgroundMode
int backgroundMode;
Undocumented in source.
NO_INPUT_METHOD
String NO_INPUT_METHOD;
Undocumented in source.
checkStyle
int checkStyle(int style)
Undocumented in source. Be warned that the author may not have intended to support it.
_getChildren
Control[] _getChildren()
Undocumented in source. Be warned that the author may not have intended to support it.
_getTabList
Control[] _getTabList()
Undocumented in source. Be warned that the author may not have intended to support it.
changed
void changed(Control[] changed)

Clears any data that has been cached by a Layout for all widgets that are in the parent hierarchy of the changed control up to and including the receiver. If an ancestor does not have a layout, it is skipped.

checkBuffered
void checkBuffered()
Undocumented in source. Be warned that the author may not have intended to support it.
checkSubclass
void checkSubclass()
Undocumented in source. Be warned that the author may not have intended to support it.
childStyle
GtkStyle* childStyle()
Undocumented in source. Be warned that the author may not have intended to support it.
computeSize
Point computeSize(int wHint, int hHint, bool changed)
Undocumented in source. Be warned that the author may not have intended to support it.
computeTabList
Control[] computeTabList()
Undocumented in source. Be warned that the author may not have intended to support it.
createHandle
void createHandle(int index)
Undocumented in source. Be warned that the author may not have intended to support it.
createHandle
void createHandle(int index, bool fixed, bool scrolled)
Undocumented in source. Be warned that the author may not have intended to support it.
deregister
void deregister()
Undocumented in source. Be warned that the author may not have intended to support it.
drawBackground
void drawBackground(GC gc, int x, int y, int width, int height)
Undocumented in source. Be warned that the author may not have intended to support it.
enableWidget
void enableWidget(bool enabled)
Undocumented in source. Be warned that the author may not have intended to support it.
findDeferredControl
Composite findDeferredControl()
Undocumented in source. Be warned that the author may not have intended to support it.
findMenus
Menu[] findMenus(Control control)
Undocumented in source. Be warned that the author may not have intended to support it.
fixChildren
void fixChildren(Shell newShell, Shell oldShell, Decorations newDecorations, Decorations oldDecorations, Menu[] menus)
Undocumented in source. Be warned that the author may not have intended to support it.
fixModal
void fixModal(GtkWidget* group, GtkWidget* modalGroup)
Undocumented in source. Be warned that the author may not have intended to support it.
fixStyle
void fixStyle()
Undocumented in source. Be warned that the author may not have intended to support it.
fixTabList
void fixTabList(Control control)
Undocumented in source. Be warned that the author may not have intended to support it.
fixZOrder
void fixZOrder()
Undocumented in source. Be warned that the author may not have intended to support it.
focusHandle
GtkWidget* focusHandle()
Undocumented in source. Be warned that the author may not have intended to support it.
forceFocus
bool forceFocus(GtkWidget* focusHandle)
Undocumented in source. Be warned that the author may not have intended to support it.
getBackgroundMode
int getBackgroundMode()

Returns the receiver's background drawing mode. This will be one of the following constants defined in class <code>SWT</code>: <code>INHERIT_NONE</code>, <code>INHERIT_DEFAULT</code>, <code>INHERTIT_FORCE</code>.

getChildren
Control[] getChildren()

Returns a (possibly empty) array containing the receiver's children. Children are returned in the order that they are drawn. The topmost control appears at the beginning of the array. Subsequent controls draw beneath this control and appear later in the array. <p> Note: This is not the actual structure used by the receiver to maintain its list of children, so modifying the array will not affect the receiver. </p>

getChildrenCount
int getChildrenCount()
Undocumented in source. Be warned that the author may not have intended to support it.
getClientArea
Rectangle getClientArea()
Undocumented in source. Be warned that the author may not have intended to support it.
getClientWidth
int getClientWidth()
Undocumented in source. Be warned that the author may not have intended to support it.
getLayout
Layout getLayout()

Returns layout which is associated with the receiver, or null if one has not been set.

getLayoutDeferred
bool getLayoutDeferred()

Returns <code>true</code> if the receiver has deferred the performing of layout, and <code>false</code> otherwise.

getTabList
Control[] getTabList()

Gets the (possibly empty) tabbing order for the control.

gtk_button_press_event
int gtk_button_press_event(GtkWidget* widget, GdkEventButton* event)
Undocumented in source. Be warned that the author may not have intended to support it.
gtk_expose_event
int gtk_expose_event(GtkWidget* widget, GdkEventExpose* eventPtr)
Undocumented in source. Be warned that the author may not have intended to support it.
gtk_key_press_event
int gtk_key_press_event(GtkWidget* widget, GdkEventKey* event)
Undocumented in source. Be warned that the author may not have intended to support it.
gtk_focus
int gtk_focus(GtkWidget* widget, ptrdiff_t directionType)
Undocumented in source. Be warned that the author may not have intended to support it.
gtk_focus_in_event
int gtk_focus_in_event(GtkWidget* widget, GdkEventFocus* event)
Undocumented in source. Be warned that the author may not have intended to support it.
gtk_focus_out_event
int gtk_focus_out_event(GtkWidget* widget, GdkEventFocus* event)
Undocumented in source. Be warned that the author may not have intended to support it.
gtk_map
int gtk_map(GtkWidget* widget)
Undocumented in source. Be warned that the author may not have intended to support it.
gtk_realize
int gtk_realize(GtkWidget* widget)
Undocumented in source. Be warned that the author may not have intended to support it.
gtk_scroll_child
int gtk_scroll_child(GtkWidget* widget, ptrdiff_t scrollType, ptrdiff_t horizontal)
Undocumented in source. Be warned that the author may not have intended to support it.
gtk_style_set
int gtk_style_set(GtkWidget* widget, ptrdiff_t previousStyle)
Undocumented in source. Be warned that the author may not have intended to support it.
hasBorder
bool hasBorder()
Undocumented in source. Be warned that the author may not have intended to support it.
hookEvents
void hookEvents()
Undocumented in source. Be warned that the author may not have intended to support it.
hooksKeys
bool hooksKeys()
Undocumented in source. Be warned that the author may not have intended to support it.
imHandle
GtkIMContext* imHandle()
Undocumented in source. Be warned that the author may not have intended to support it.
isLayoutDeferred
bool isLayoutDeferred()

Returns <code>true</code> if the receiver or any ancestor up to and including the receiver's nearest ancestor shell has deferred the performing of layouts. Otherwise, <code>false</code> is returned.

isTabGroup
bool isTabGroup()
Undocumented in source. Be warned that the author may not have intended to support it.
layout
void layout()

If the receiver has a layout, asks the layout to <em>lay out</em> (that is, set the size and location of) the receiver's children. If the receiver does not have a layout, do nothing. <p> This is equivalent to calling <code>layout(true)</code>. </p> <p> Note: Layout is different from painting. If a child is moved or resized such that an area in the parent is exposed, then the parent will paint. If no child is affected, the parent will not paint. </p>

layout
void layout(bool changed)

If the receiver has a layout, asks the layout to <em>lay out</em> (that is, set the size and location of) the receiver's children. If the argument is <code>true</code> the layout must not rely on any information it has cached about the immediate children. If it is <code>false</code> the layout may (potentially) optimize the work it is doing by assuming that none of the receiver's children has changed state since the last layout. If the receiver does not have a layout, do nothing. <p> If a child is resized as a result of a call to layout, the resize event will invoke the layout of the child. The layout will cascade down through all child widgets in the receiver's widget tree until a child is encountered that does not resize. Note that a layout due to a resize will not flush any cached information (same as <code>layout(false)</code>). </p> <p> Note: Layout is different from painting. If a child is moved or resized such that an area in the parent is exposed, then the parent will paint. If no child is affected, the parent will not paint. </p>

layout
void layout(bool changed, bool all)

If the receiver has a layout, asks the layout to <em>lay out</em> (that is, set the size and location of) the receiver's children. If the changed argument is <code>true</code> the layout must not rely on any information it has cached about its children. If it is <code>false</code> the layout may (potentially) optimize the work it is doing by assuming that none of the receiver's children has changed state since the last layout. If the all argument is <code>true</code> the layout will cascade down through all child widgets in the receiver's widget tree, regardless of whether the child has changed size. The changed argument is applied to all layouts. If the all argument is <code>false</code>, the layout will <em>not</em> cascade down through all child widgets in the receiver's widget tree. However, if a child is resized as a result of a call to layout, the resize event will invoke the layout of the child. Note that a layout due to a resize will not flush any cached information (same as <code>layout(false)</code>). </p> <p> Note: Layout is different from painting. If a child is moved or resized such that an area in the parent is exposed, then the parent will paint. If no child is affected, the parent will not paint. </p>

layout
void layout(Control[] changed)

Forces a lay out (that is, sets the size and location) of all widgets that are in the parent hierarchy of the changed control up to and including the receiver. The layouts in the hierarchy must not rely on any information cached about the changed control or any of its ancestors. The layout may (potentially) optimize the work it is doing by assuming that none of the peers of the changed control have changed state since the last layout. If an ancestor does not have a layout, skip it. <p> Note: Layout is different from painting. If a child is moved or resized such that an area in the parent is exposed, then the parent will paint. If no child is affected, the parent will not paint. </p>

markLayout
void markLayout(bool changed, bool all)
Undocumented in source. Be warned that the author may not have intended to support it.
moveAbove
void moveAbove(GtkWidget* child, GtkWidget* sibling)
Undocumented in source. Be warned that the author may not have intended to support it.
moveBelow
alias moveBelow = Scrollable.moveBelow
Undocumented in source.
moveBelow
void moveBelow(GtkWidget* child, GtkWidget* sibling)
Undocumented in source. Be warned that the author may not have intended to support it.
moveChildren
void moveChildren(int oldWidth)
Undocumented in source. Be warned that the author may not have intended to support it.
minimumSize
Point minimumSize(int wHint, int hHint, bool changed)
Undocumented in source. Be warned that the author may not have intended to support it.
parentingHandle
GtkWidget* parentingHandle()
Undocumented in source. Be warned that the author may not have intended to support it.
printWidget
void printWidget(GC gc, GdkDrawable* drawable, int depth, int x, int y)
Undocumented in source. Be warned that the author may not have intended to support it.
redrawChildren
void redrawChildren()
Undocumented in source. Be warned that the author may not have intended to support it.
register
void register()
Undocumented in source. Be warned that the author may not have intended to support it.
releaseChildren
void releaseChildren(bool destroy)
Undocumented in source. Be warned that the author may not have intended to support it.
releaseHandle
void releaseHandle()
Undocumented in source. Be warned that the author may not have intended to support it.
releaseWidget
void releaseWidget()
Undocumented in source. Be warned that the author may not have intended to support it.
removeControl
void removeControl(Control control)
Undocumented in source. Be warned that the author may not have intended to support it.
resizeHandle
void resizeHandle(int width, int height)
Undocumented in source. Be warned that the author may not have intended to support it.
setBackgroundMode
void setBackgroundMode(int mode)

Sets the background drawing mode to the argument which should be one of the following constants defined in class <code>SWT</code>: <code>INHERIT_NONE</code>, <code>INHERIT_DEFAULT</code>, <code>INHERIT_FORCE</code>.

setBounds
int setBounds(int x, int y, int width, int height, bool move, bool resize)
Undocumented in source. Be warned that the author may not have intended to support it.
setFocus
bool setFocus()
Undocumented in source. Be warned that the author may not have intended to support it.
setLayout
void setLayout(Layout layout)

Sets the layout which is associated with the receiver to be the argument which may be null.

setLayoutDeferred
void setLayoutDeferred(bool defer)

If the argument is <code>true</code>, causes subsequent layout operations in the receiver or any of its children to be ignored. No layout of any kind can occur in the receiver or any of its children until the flag is set to false. Layout operations that occurred while the flag was <code>true</code> are remembered and when the flag is set to <code>false</code>, the layout operations are performed in an optimized manner. Nested calls to this method are stacked.

setScrollBarVisible
bool setScrollBarVisible(ScrollBar bar, bool visible)
Undocumented in source. Be warned that the author may not have intended to support it.
setTabGroupFocus
bool setTabGroupFocus(bool next)
Undocumented in source. Be warned that the author may not have intended to support it.
setTabItemFocus
bool setTabItemFocus(bool next)
Undocumented in source. Be warned that the author may not have intended to support it.
setTabList
void setTabList(Control[] tabList)

Sets the tabbing order for the specified controls to match the order that they occur in the argument list.

showWidget
void showWidget()
Undocumented in source. Be warned that the author may not have intended to support it.
translateMnemonic
bool translateMnemonic(Event event, Control control)
Undocumented in source. Be warned that the author may not have intended to support it.
traversalCode
int traversalCode(int key, GdkEventKey* event)
Undocumented in source. Be warned that the author may not have intended to support it.
translateTraversal
bool translateTraversal(GdkEventKey* keyEvent)
Undocumented in source. Be warned that the author may not have intended to support it.
updateBackgroundMode
void updateBackgroundMode()
Undocumented in source. Be warned that the author may not have intended to support it.
updateLayout
void updateLayout(bool all)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta