Package com._1c.g5.v8.dt.qw.ui.controls
Class QueryWizardTreeViewer
- java.lang.Object
-
- org.eclipse.jface.viewers.Viewer
-
- org.eclipse.jface.viewers.ContentViewer
-
- org.eclipse.jface.viewers.StructuredViewer
-
- org.eclipse.jface.viewers.ColumnViewer
-
- org.eclipse.jface.viewers.AbstractTreeViewer
-
- org.eclipse.jface.viewers.TreeViewer
-
- com._1c.g5.v8.dt.qw.ui.controls.QueryWizardTreeViewer
-
- All Implemented Interfaces:
IInputProvider
,IInputSelectionProvider
,IPostSelectionProvider
,ISelectionProvider
public class QueryWizardTreeViewer extends TreeViewer
Tree viewer for query wizard
-
-
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.AbstractTreeViewer
ALL_LEVELS
-
Fields inherited from class org.eclipse.jface.viewers.Viewer
WIDGET_DATA_KEY
-
-
Constructor Summary
Constructors Constructor Description QueryWizardTreeViewer(org.eclipse.swt.widgets.Composite treeComposite, int style)
Constructor.QueryWizardTreeViewer(org.eclipse.swt.widgets.Tree tree)
Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TreeViewer
createDataSetsTree(QueryWizardControl queryWizard, org.eclipse.swt.widgets.Composite parent, QueryWizardToolBarAction[] toolBarActions, String[] columnsLabels)
Create tree viewer for query wizardstatic TreeViewer
createDataSetsTree(QueryWizardControl queryWizard, org.eclipse.swt.widgets.Composite parent, QueryWizardToolBarAction[] toolBarActions, String[] columnsLabels, int style)
Create tree viewer for query wizardstatic TreeViewer
createDataSetsTree(QueryWizardControl queryWizard, org.eclipse.swt.widgets.Composite parent, QueryWizardToolBarAction[] toolBarActions, String[] columnsLabels, int style, boolean isVerticalToolBar)
Create tree viewer for query wizardstatic TreeViewerColumn
createTreeColumn(int position, String label, TreeViewer treeViewer, org.eclipse.jface.layout.TreeColumnLayout layout)
Creates tree columnvoid
disableExpandToLevel()
Enable expand to level modevoid
enableExpandToLevel()
Disable expand to level modevoid
expandAll()
TreePath
getTreePathFromItem(org.eclipse.swt.widgets.Item item)
ViewerRow
getViewerRow(org.eclipse.swt.widgets.Widget item)
protected void
handleTreeExpand(org.eclipse.swt.events.TreeEvent event)
void
refresh()
void
setExpandedState(Object elementOrTreePath, boolean expanded)
void
setExpandedTreePaths(TreePath... treePaths)
void
setLabelProvider(IBaseLabelProvider labelProvider)
-
Methods inherited from class org.eclipse.jface.viewers.TreeViewer
addTreeListener, assertContentProviderType, createViewerEditor, disassociate, doGetColumnCount, editElement, getChild, getChildren, getColumnViewerOwner, getControl, getExpanded, getItemAt, getItemCount, getItemCount, getItems, getLabelProvider, getParentElement, getParentItem, getRawChildren, getSelection, getTree, getViewerRowFromItem, handleTreeCollapse, hookControl, internalAdd, internalInitializeTree, internalRefreshStruct, isExpandable, mapElement, newItem, remove, removeAll, replace, setChildCount, setContentProvider, setExpanded, setHasChildren, setSelection, setSelection, showItem, updatePlus
-
Methods inherited from class org.eclipse.jface.viewers.AbstractTreeViewer
add, add, addSelectionListener, addTreeListener, associate, buildLabel, collapseAll, collapseToLevel, createChildren, createTreeItem, doFindInputItem, doFindItem, doUpdateItem, doUpdateItem, expandAll, expandToLevel, expandToLevel, expandToLevel, expandToLevel, fireTreeCollapsed, fireTreeExpanded, getAutoExpandLevel, getChildren, getExpandedElements, getExpandedState, getExpandedTreePaths, getNextItem, getPreviousItem, getSelection, getSelectionFromWidget, getSortedChildren, getStructuredSelection, getVisibleExpandedElements, handleDoubleSelect, indexForElement, inputChanged, insert, internalCollapseToLevel, internalExpand, internalExpandToLevel, internalFindItems, internalGetWidgetToSelect, internalIsInputOrEmptyPath, internalRefresh, internalRefresh, internalRefresh, internalRemove, internalRemove, isSameSelection, labelProviderChanged, remove, remove, remove, removeTreeListener, reveal, scrollDown, scrollUp, setAutoExpandLevel, setExpandedElements, setExpandPreCheckFilters, setSelectionToWidget, setSelectionToWidget, updateChildren
-
Methods inherited from class org.eclipse.jface.viewers.ColumnViewer
applyEditorValue, cancelEditing, checkBusy, getCell, getCellEditors, getCellModifier, getColumnProperties, getColumnViewerEditor, getItem, getLabelProvider, getViewerRow, handleDispose, hookEditingSupport, isBusy, isCellEditorActive, refresh, refresh, setBusy, setCellEditors, setCellModifier, setColumnProperties, setColumnViewerEditor, triggerEditorActivationEvent, update
-
Methods inherited from class org.eclipse.jface.viewers.StructuredViewer
addDoubleClickListener, addDragSupport, addDropSupport, addFilter, addOpenListener, addPostSelectionChangedListener, assertElementsNotNull, equals, filter, findItem, findItems, fireDoubleClick, fireOpen, firePostSelectionChanged, getColorAndFontCollector, getComparator, getComparer, getFilteredChildren, getFilters, getRoot, getSorter, handleInvalidSelection, handleLabelProviderChanged, handleOpen, handlePostSelect, handleSelect, hasFilters, internalUpdate, needsRefilter, preservingSelection, refresh, refreshItem, removeDoubleClickListener, removeFilter, removeOpenListener, removePostSelectionChangedListener, resetFilters, setComparator, setComparer, setFilters, setInput, setSorter, setUseHashlookup, testFindItem, testFindItems, unmapAllElements, unmapElement, unmapElement, update, updateItem, updateSelection, usingElementMap
-
Methods inherited from class org.eclipse.jface.viewers.ContentViewer
getContentProvider, getInput
-
Methods inherited from class org.eclipse.jface.viewers.Viewer
addHelpListener, addSelectionChangedListener, fireHelpRequested, fireSelectionChanged, getData, handleHelpRequest, removeHelpListener, removeSelectionChangedListener, 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, removeSelectionChangedListener, setSelection
-
-
-
-
Constructor Detail
-
QueryWizardTreeViewer
public QueryWizardTreeViewer(org.eclipse.swt.widgets.Tree tree)
Constructor.- Parameters:
tree
- - tree to create viewer for. Cannot benull
.
-
QueryWizardTreeViewer
public QueryWizardTreeViewer(org.eclipse.swt.widgets.Composite treeComposite, int style)
Constructor.- Parameters:
treeComposite
- - parent composite. Cannot benull
.style
- - tree viewer style.
-
-
Method Detail
-
createDataSetsTree
public static TreeViewer createDataSetsTree(QueryWizardControl queryWizard, org.eclipse.swt.widgets.Composite parent, QueryWizardToolBarAction[] toolBarActions, String[] columnsLabels)
Create tree viewer for query wizard- Parameters:
queryWizard
- - query wizard controlparent
- - parent compositetoolBarActions
- - tool bar actionscolumnsLabels
- - columns labels- Returns:
- new tree viewer
-
createDataSetsTree
public static TreeViewer createDataSetsTree(QueryWizardControl queryWizard, org.eclipse.swt.widgets.Composite parent, QueryWizardToolBarAction[] toolBarActions, String[] columnsLabels, int style)
Create tree viewer for query wizard- Parameters:
queryWizard
- - query wizard controlparent
- - parent compositetoolBarActions
- - tool bar actionscolumnsLabels
- - columns labelsstyle
- - style- Returns:
- new tree viewer
-
createDataSetsTree
public static TreeViewer createDataSetsTree(QueryWizardControl queryWizard, org.eclipse.swt.widgets.Composite parent, QueryWizardToolBarAction[] toolBarActions, String[] columnsLabels, int style, boolean isVerticalToolBar)
Create tree viewer for query wizard- Parameters:
queryWizard
- - query wizard controlparent
- - parent compositetoolBarActions
- - tool bar actionscolumnsLabels
- - columns labelsstyle
- - styleisVerticalToolBar
- - is vertical tool bar- Returns:
- new tree viewer
-
createTreeColumn
public static TreeViewerColumn createTreeColumn(int position, String label, TreeViewer treeViewer, org.eclipse.jface.layout.TreeColumnLayout layout)
Creates tree column- Parameters:
columnsLabels
-treeViewer
-layout
-i
-
-
setExpandedState
public void setExpandedState(Object elementOrTreePath, boolean expanded)
- Overrides:
setExpandedState
in classAbstractTreeViewer
-
setExpandedTreePaths
public void setExpandedTreePaths(TreePath... treePaths)
- Overrides:
setExpandedTreePaths
in classAbstractTreeViewer
-
getTreePathFromItem
public TreePath getTreePathFromItem(org.eclipse.swt.widgets.Item item)
- Overrides:
getTreePathFromItem
in classAbstractTreeViewer
-
setLabelProvider
public void setLabelProvider(IBaseLabelProvider labelProvider)
- Overrides:
setLabelProvider
in classColumnViewer
-
refresh
public void refresh()
- Overrides:
refresh
in classStructuredViewer
-
expandAll
public void expandAll()
- Overrides:
expandAll
in classAbstractTreeViewer
-
getViewerRow
public ViewerRow getViewerRow(org.eclipse.swt.widgets.Widget item)
-
enableExpandToLevel
public void enableExpandToLevel()
Disable expand to level mode
-
disableExpandToLevel
public void disableExpandToLevel()
Enable expand to level mode
-
handleTreeExpand
protected void handleTreeExpand(org.eclipse.swt.events.TreeEvent event)
- Overrides:
handleTreeExpand
in classTreeViewer
-
-