Package com._1c.g5.v8.dt.form.ui.editor
Class FormTableViewer
- All Implemented Interfaces:
IDomainSelectionProvider
,IInputProvider
,IInputSelectionProvider
,IPostSelectionProvider
,ISelectionProvider
- Direct Known Subclasses:
FormCommandsTableViewer
,FormParametersTableViewer
This
TableViewer
automatically exposes the selection.
If an element adding on this view, set selection on it.
If an element removal selection sets on the next suitable element.-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jface.viewers.StructuredViewer
StructuredViewer.ColorAndFontCollector, StructuredViewer.ColorAndFontCollectorWithProviders
-
Field Summary
Fields inherited from class org.eclipse.jface.viewers.Viewer
WIDGET_DATA_KEY
-
Constructor Summary
ConstructorsConstructorDescriptionFormTableViewer
(org.eclipse.swt.widgets.Composite parent) Creates a table viewer on a newly-created table control under the given parent.FormTableViewer
(org.eclipse.swt.widgets.Composite parent, int style) Creates a table viewer on a newly-created table control under the given parent.FormTableViewer
(org.eclipse.swt.widgets.Table table) Creates a table viewer on the given table control. -
Method Summary
Modifier and TypeMethodDescriptionReturns current domain selection.void
protected void
preservingSelection
(Runnable updateCode) void
protected void
Sets the named element table viewer comparator.void
setDomainSelection
(DomainSelection selection) Sets new domain selection.Methods inherited from class org.eclipse.jface.viewers.TableViewer
createViewerEditor, doClear, doClearAll, doDeselectAll, doFindItem, doGetColumn, doGetColumnCount, doGetItem, doGetItemCount, doGetItems, doGetSelection, doGetSelectionIndices, doIndexOf, doRemove, doRemove, doRemoveAll, doResetItem, doSelect, doSetItemCount, doSetSelection, doSetSelection, doShowItem, doShowSelection, getControl, getItemAt, getTable, getViewerRowFromItem, internalCreateNewRowPart, refresh, refresh, setSelection
Methods inherited from class org.eclipse.jface.viewers.AbstractTableViewer
add, add, assertContentProviderType, clear, contains, doFindInputItem, doUpdateItem, getColumnViewerOwner, getElementAt, getLabelProvider, getRawChildren, getSelectionFromWidget, handleDispose, hookControl, indexForElement, inputChanged, internalRefresh, internalRefresh, remove, replace, reveal, setContentProvider, setItemCount, setSelectionToWidget
Methods inherited from class org.eclipse.jface.viewers.ColumnViewer
applyEditorValue, cancelEditing, checkBusy, disassociate, editElement, firePostSelectionChanged, getCell, getCellEditors, getCellModifier, getColumnProperties, getColumnViewerEditor, getItem, getLabelProvider, getSortedChildren, getViewerRow, handleDoubleSelect, hookEditingSupport, isBusy, isCellEditorActive, isExpandableNode, refresh, refresh, setBusy, setCellEditors, setCellModifier, setColumnProperties, setColumnViewerEditor, setDisplayIncrementally, setLabelProvider, triggerEditorActivationEvent, update, updateSelection
Methods inherited from class org.eclipse.jface.viewers.StructuredViewer
addDoubleClickListener, addDragSupport, addDropSupport, addFilter, addOpenListener, addPostSelectionChangedListener, assertElementsNotNull, associate, buildLabel, equals, filter, findItem, findItems, fireDoubleClick, fireOpen, getColorAndFontCollector, getComparator, getComparer, getFilteredChildren, getFilters, getRoot, getSelection, getSorter, getStructuredSelection, handleInvalidSelection, handleLabelProviderChanged, handleOpen, handlePostSelect, handleSelect, hasFilters, internalUpdate, mapElement, needsRefilter, refresh, refresh, refreshItem, removeDoubleClickListener, removeFilter, removeOpenListener, removePostSelectionChangedListener, resetFilters, setComparator, setComparer, setFilters, setInput, setSelectionToWidget, setSorter, setUseHashlookup, testFindItem, testFindItems, unmapAllElements, unmapElement, unmapElement, update, updateItem, usingElementMap
Methods inherited from class org.eclipse.jface.viewers.ContentViewer
getContentProvider, getInput, labelProviderChanged
Methods inherited from class org.eclipse.jface.viewers.Viewer
addHelpListener, addSelectionChangedListener, fireHelpRequested, fireSelectionChanged, getData, handleHelpRequest, removeHelpListener, removeSelectionChangedListener, scrollDown, scrollUp, setData, setSelection
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.jface.viewers.ISelectionProvider
addSelectionChangedListener, getSelection, removeSelectionChangedListener, setSelection
-
Constructor Details
-
FormTableViewer
public FormTableViewer(org.eclipse.swt.widgets.Composite parent) Creates a table viewer on a newly-created table control under the given parent. The table control is created using the SWT style bitsMULTI, H_SCROLL, V_SCROLL,
andBORDER
. The viewer has no input, no content provider, a default label provider, no sorter, and no filters. The table has no columns.- Parameters:
parent
- the parent control
-
FormTableViewer
public FormTableViewer(org.eclipse.swt.widgets.Composite parent, int style) Creates a table viewer on a newly-created table control under the given parent. The table control is created using the given style bits. The viewer has no input, no content provider, a default label provider, no sorter, and no filters. The table has no columns.- Parameters:
parent
- the parent controlstyle
- SWT style bits
-
FormTableViewer
public FormTableViewer(org.eclipse.swt.widgets.Table table) Creates a table viewer on the given table control. The viewer has no input, no content provider, a default label provider, no sorter, and no filters.- Parameters:
table
- the table control
-
-
Method Details
-
insert
- Overrides:
insert
in classAbstractTableViewer
-
remove
- Overrides:
remove
in classTableViewer
-
getDomainSelection
Description copied from interface:IDomainSelectionProvider
Returns current domain selection.- Specified by:
getDomainSelection
in interfaceIDomainSelectionProvider
- Returns:
- current domain selection
-
setDomainSelection
Description copied from interface:IDomainSelectionProvider
Sets new domain selection.- Specified by:
setDomainSelection
in interfaceIDomainSelectionProvider
- Parameters:
selection
- new domain selection
-
preservingSelection
- Overrides:
preservingSelection
in classStructuredViewer
-
setComparator
protected void setComparator()Sets the named element table viewer comparator.
-