Class PredefinedDataSwtView
- java.lang.Object
-
- com._1c.g5.aef2.views.View<SwtRenderingParameters,VM,NC>
-
- com._1c.g5.aef2.swt.views.SwtView<VM,NC>
-
- com._1c.g5.aef2.standard.swt.views.SwtStandardView<TreeViewModel,org.eclipse.swt.widgets.Composite>
-
- com._1c.g5.v8.dt.ui.aef.swt.views.DtTreeView
-
- com._1c.g5.v8.dt.md.ui.editor.predefineddata.PredefinedDataSwtView
-
- All Implemented Interfaces:
IView<SwtRenderingParameters,TreeViewModel,org.eclipse.swt.widgets.Composite>
public class PredefinedDataSwtView extends DtTreeView
DtTableView
extension to show and edit items in granular editor predefined data page.
-
-
Field Summary
-
Fields inherited from class com._1c.g5.v8.dt.ui.aef.swt.views.DtTreeView
TREE_VIEWER_KEY
-
-
Constructor Summary
Constructors Constructor Description PredefinedDataSwtView()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bind(TreeViewModel viewModel, org.eclipse.swt.widgets.Composite nativeControl)
Binds the view model and native control together to this view.protected void
configureTree(TreeViewer treeViewer, TreeViewModel viewModel)
Configure created tree.protected void
createColumns(TreeViewModel viewModel, TreeViewer treeViewer, CellLabelProvider labelProvider)
Create columns for the tree.protected void
handleFocusEvent(FocusEvent event, TreeViewModel viewModel, org.eclipse.swt.widgets.Composite control)
HandlesFocusEvent
.-
Methods inherited from class com._1c.g5.v8.dt.ui.aef.swt.views.DtTreeView
creareTreeViewer, createControl, createTreeViewProvider, handleEventChannelEvent
-
Methods inherited from class com._1c.g5.aef2.standard.swt.views.SwtStandardView
createNativeControl, setEnabledApperance
-
Methods inherited from class com._1c.g5.aef2.swt.views.SwtView
computeNativeStyle, getContentControl, isControlDisposed, setContentControl, uiAsyncExec, uiSyncExec
-
Methods inherited from class com._1c.g5.aef2.views.View
bindListener, bindNativeControl, bindValue, bindValue, bindViewModel, getNativeControl, getParameters, getViewModel, initialize, manageObservable, queueAndWaitEvent, queueEvent, registerEventChannelListener, unbind, unbindNativeControl, unbindViewModel, unmanageObservable, unregisterEventChannelListener
-
-
-
-
Method Detail
-
bind
public void bind(TreeViewModel viewModel, org.eclipse.swt.widgets.Composite nativeControl)
Description copied from class:View
Binds the view model and native control together to this view. Override this method to customize the binding.- Overrides:
bind
in classDtTreeView
- Parameters:
viewModel
- the view model to bind.nativeControl
- the native control to bind.
-
configureTree
protected void configureTree(TreeViewer treeViewer, TreeViewModel viewModel)
Description copied from class:DtTreeView
Configure created tree.- Overrides:
configureTree
in classDtTreeView
- Parameters:
treeViewer
- the tree viewer, cannot benull
viewModel
- the view model, cannot benull
-
handleFocusEvent
protected void handleFocusEvent(FocusEvent event, TreeViewModel viewModel, org.eclipse.swt.widgets.Composite control)
Description copied from class:View
HandlesFocusEvent
.- Overrides:
handleFocusEvent
in classDtTreeView
- Parameters:
event
- the focus event, cannot benull
.viewModel
- the view model, cannot benull
.control
- the native control, cannot benull
.
-
createColumns
protected void createColumns(TreeViewModel viewModel, TreeViewer treeViewer, CellLabelProvider labelProvider)
Description copied from class:DtTreeView
Create columns for the tree. Default implementation creates single column with configured label provider.- Overrides:
createColumns
in classDtTreeView
- Parameters:
viewModel
- the view model, cannot benull
treeViewer
- the tree viewer, cannot benull
-
-