Class TableExTreeViewer

    • Constructor Detail

      • TableExTreeViewer

        public TableExTreeViewer​(org.eclipse.swt.widgets.Composite parent,
                                 int style)
        Конструктор
        Parameters:
        parent - родитель
        style - стиль
    • Method Detail

      • getTable

        public TableEx getTable()
        Получить таблицу
        Returns:
        таблица
      • setColumnsInfoProvider

        public void setColumnsInfoProvider​(ITableExColumnsInfoProvider columnsInfoProvider)
        Установить поставщика информации о колонках
        Parameters:
        columnsInfoProvider - поставщик
      • setCheckBoxLabelProvider

        public void setCheckBoxLabelProvider​(ICheckBoxLabelProvider checkLabelProvider)
        Set checkboxes label provider
        Parameters:
        checkLabelProvider - label provider, can't be null
      • setCheckBoxListener

        public void setCheckBoxListener​(ICheckBoxListener checkBoxListener)
        Set checkboxes listener
        Parameters:
        checkBoxListener - listener, can't be null
      • addTreeListener

        protected void addTreeListener​(org.eclipse.swt.widgets.Control control,
                                       org.eclipse.swt.events.TreeListener listener)
        Specified by:
        addTreeListener in class AbstractTreeViewer
      • handleSelect

        protected void handleSelect​(org.eclipse.swt.events.SelectionEvent event)
        Overrides:
        handleSelect in class StructuredViewer
      • getChildren

        protected org.eclipse.swt.widgets.Item[] getChildren​(org.eclipse.swt.widgets.Widget widget)
        Specified by:
        getChildren in class AbstractTreeViewer
      • getItems

        protected org.eclipse.swt.widgets.Item[] getItems​(org.eclipse.swt.widgets.Item item)
        Specified by:
        getItems in class AbstractTreeViewer
      • getParentItem

        protected org.eclipse.swt.widgets.Item getParentItem​(org.eclipse.swt.widgets.Item item)
        Specified by:
        getParentItem in class AbstractTreeViewer
      • getSelection

        protected org.eclipse.swt.widgets.Item[] getSelection​(org.eclipse.swt.widgets.Control control)
        Specified by:
        getSelection in class AbstractTreeViewer
      • newItem

        protected org.eclipse.swt.widgets.Item newItem​(org.eclipse.swt.widgets.Widget parent,
                                                       int style,
                                                       int index)
        Specified by:
        newItem in class AbstractTreeViewer
      • removeAll

        protected void removeAll​(org.eclipse.swt.widgets.Control control)
        Specified by:
        removeAll in class AbstractTreeViewer
      • setExpanded

        protected void setExpanded​(org.eclipse.swt.widgets.Item item,
                                   boolean expand)
        Specified by:
        setExpanded in class AbstractTreeViewer
      • hookEditingSupport

        protected void hookEditingSupport​(org.eclipse.swt.widgets.Control control)
        Overrides:
        hookEditingSupport in class ColumnViewer
      • getGrid

        public org.eclipse.nebula.widgets.grid.Grid getGrid()
      • getControl

        public org.eclipse.swt.widgets.Control getControl()
        Specified by:
        getControl in class Viewer
      • getItemAt

        protected org.eclipse.swt.widgets.Item getItemAt​(org.eclipse.swt.graphics.Point point)
        Overrides:
        getItemAt in class AbstractTreeViewer
      • handleDispose

        protected void handleDispose​(org.eclipse.swt.events.DisposeEvent event)
        Overrides:
        handleDispose in class ColumnViewer
      • refreshAfterNotification

        public void refreshAfterNotification​(org.eclipse.emf.common.notify.Notification notification)
        Refresh viewer after modification of model (set focus and selection on new element)
        Parameters:
        notification - notification about event
      • refreshAfterChanged

        public void refreshAfterChanged()
        Refresh viewer after input or model changed (hack for update checkboxes)
      • getCurrentLocationItem

        public org.eclipse.swt.widgets.Item getCurrentLocationItem()
        Get item for current mouse location
        Returns:
        item or null
      • getCellSelection

        public org.eclipse.swt.graphics.Point[] getCellSelection()
        Get selected cells
        Returns:
        array of selected cells, never null
      • setCellSelection

        public void setCellSelection​(org.eclipse.swt.graphics.Point cellSelection,
                                     Object data)
        Set selected cell
        Parameters:
        cellSelection - selected cell, can't be null
        data - selected item data, can't be null
      • getNextCellSelection

        public org.eclipse.swt.graphics.Point getNextCellSelection​(org.eclipse.swt.graphics.Point cellSelection)
        Get next selected cell
        Parameters:
        cellSelection - selected cell, can't be null
        Returns:
        next selected cell, never null