Class PredefinedDataSwtView

    • Constructor Detail

      • PredefinedDataSwtView

        public PredefinedDataSwtView()
    • 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 class DtTreeView
        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 class DtTreeView
        Parameters:
        treeViewer - the tree viewer, cannot be null
        viewModel - the view model, cannot be null
      • handleFocusEvent

        protected void handleFocusEvent​(FocusEvent event,
                                        TreeViewModel viewModel,
                                        org.eclipse.swt.widgets.Composite control)
        Description copied from class: View
        Handles FocusEvent.
        Overrides:
        handleFocusEvent in class DtTreeView
        Parameters:
        event - the focus event, cannot be null.
        viewModel - the view model, cannot be null.
        control - the native control, cannot be null.
      • 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 class DtTreeView
        Parameters:
        viewModel - the view model, cannot be null
        treeViewer - the tree viewer, cannot be null