Example usage for Java org.eclipse.jface.viewers TableViewer fields, constructors, methods, implement or subclass
The text is from its open source code.
TableViewer(Composite parent) Creates a table viewer on a newly-created table control under the given parent. | |
TableViewer(Table table) Creates a table viewer on the given table control. | |
TableViewer(Composite parent, int style) Creates a table viewer on a newly-created table control under the given parent. |
void | add(Object[] elements) Adds the given elements to this table viewer. |
void | clear(int index) Clear the table item at the specified index |
Control | getControl() |
Object | getElementAt(int index) Returns the element with the given index from this table viewer. |
IBaseLabelProvider | getLabelProvider() The table viewer implementation of this Viewer framework method returns the label provider, which in the case of table viewers will be an instance of either ITableLabelProvider or ILabelProvider . |
Table | getTable() Returns this table viewer's table control. |
void | insert(Object element, int position) Inserts the given element into this table viewer at the given position. |
void | refresh(boolean updateLabels, boolean reveal) Refreshes this viewer with information freshly obtained from this viewer's model. |
void | remove(Object[] elements) |
void | replace(Object element, int index) Replace the element at the given index with the given element. |
void | reveal(Object element) |
void | setContentProvider(IContentProvider provider) Sets the content provider used by this AbstractTableViewer . |
void | setItemCount(int count) Set the item count of the receiver. |
void | setSelection(ISelection selection, boolean reveal) Sets a new selection for this viewer and optionally makes it visible. |