Class ColumnConfigurationImpl

    • Constructor Summary

      Constructors 
      Constructor Description
      ColumnConfigurationImpl​(java.util.Set<Feature> enabledFeatures, boolean resizeable, boolean moveable, int styleBits, int weight, int minWidth, org.eclipse.core.databinding.observable.value.IObservableValue columnText, org.eclipse.core.databinding.observable.value.IObservableValue tooltipText, CellLabelProviderFactory labelProviderFactory, EditingSupportCreator editingSupport, org.eclipse.swt.graphics.Image image, java.util.Map<java.lang.String,​java.lang.Object> data, java.util.List<ConfigurationCallback<org.eclipse.jface.viewers.AbstractTableViewer,​org.eclipse.jface.viewers.ViewerColumn>> configurationCallbacks)
      Constructs a new ColumnConfiguration.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Optional<org.eclipse.jface.viewers.EditingSupport> createEditingSupport​(org.eclipse.jface.viewers.AbstractTableViewer columnViewer)
      Called to setup the EditingSupport for the viewer.
      org.eclipse.jface.viewers.CellLabelProvider createLabelProvider​(org.eclipse.jface.viewers.AbstractTableViewer columnViewer)
      The cell label provider which will be set on the column.
      void dispose()
      Dispose this configuration and all its properties.
      Optional<org.eclipse.swt.graphics.Image> getColumnImage()
      The image of the column.
      org.eclipse.core.databinding.observable.value.IObservableValue getColumnText()
      The header text for the column.
      org.eclipse.core.databinding.observable.value.IObservableValue getColumnTooltip()
      The column header tooltip text.
      java.util.List<ConfigurationCallback<org.eclipse.jface.viewers.AbstractTableViewer,​org.eclipse.jface.viewers.ViewerColumn>> getConfigurationCallbacks()
      Get the list of additional ConfigurationCallbacks.
      java.util.Map<java.lang.String,​java.lang.Object> getData()
      Get the underlying data map.
      java.lang.Object getData​(java.lang.String key)
      Get an arbitrary element from the data map.
      java.util.Set<Feature> getEnabledFeatures()
      Returns a static array of enabled features.
      int getMinWidth()
      The minimal width of the column.
      int getStyleBits()
      The SWT style bits which will be used to create the column.
      int getWeight()
      The weight of the column.
      boolean isMoveable()
      true if moveable, false otherwise.
      boolean isResizeable()
      true if resizeable, false otherwise.
      Property<java.lang.Object> matchFilter()
      Set a filter on the current column.
      void setData​(java.util.Map<java.lang.String,​java.lang.Object> data)
      Add the contents of the given map to the data map.
      Property<java.lang.Boolean> showFilterControl()
      Toggle the visible state of the filter control.
      Property<java.lang.Boolean> visible()
      Toggle the visible state of the column.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ColumnConfigurationImpl

        public ColumnConfigurationImpl​(java.util.Set<Feature> enabledFeatures,
                                       boolean resizeable,
                                       boolean moveable,
                                       int styleBits,
                                       int weight,
                                       int minWidth,
                                       org.eclipse.core.databinding.observable.value.IObservableValue columnText,
                                       org.eclipse.core.databinding.observable.value.IObservableValue tooltipText,
                                       CellLabelProviderFactory labelProviderFactory,
                                       EditingSupportCreator editingSupport,
                                       org.eclipse.swt.graphics.Image image,
                                       java.util.Map<java.lang.String,​java.lang.Object> data,
                                       java.util.List<ConfigurationCallback<org.eclipse.jface.viewers.AbstractTableViewer,​org.eclipse.jface.viewers.ViewerColumn>> configurationCallbacks)
        Constructs a new ColumnConfiguration.
        Parameters:
        enabledFeatures - list of enabled features
        resizeable - resizeable
        moveable - moveable
        styleBits - styleBits
        weight - weight
        minWidth - minWidth
        columnText - columnText
        tooltipText - tooltipText
        labelProviderFactory - labelProvider
        editingSupport - editingSupport. May be null to indicate that there is no editing support
    • Method Detail

      • getStyleBits

        public int getStyleBits()
        Description copied from interface: ColumnConfiguration
        The SWT style bits which will be used to create the column.
        Specified by:
        getStyleBits in interface ColumnConfiguration
        Returns:
        the SWT style bits for the column
      • getColumnText

        public org.eclipse.core.databinding.observable.value.IObservableValue getColumnText()
        Description copied from interface: ColumnConfiguration
        The header text for the column.
        Specified by:
        getColumnText in interface ColumnConfiguration
        Returns:
        the column header text
      • getColumnTooltip

        public org.eclipse.core.databinding.observable.value.IObservableValue getColumnTooltip()
        Description copied from interface: ColumnConfiguration
        The column header tooltip text.
        Specified by:
        getColumnTooltip in interface ColumnConfiguration
        Returns:
        the column header tooltip
      • createLabelProvider

        public org.eclipse.jface.viewers.CellLabelProvider createLabelProvider​(org.eclipse.jface.viewers.AbstractTableViewer columnViewer)
        Description copied from interface: ColumnConfiguration
        The cell label provider which will be set on the column.
        Specified by:
        createLabelProvider in interface ColumnConfiguration
        Parameters:
        columnViewer - the column viewer
        Returns:
        the label provider
      • createEditingSupport

        public Optional<org.eclipse.jface.viewers.EditingSupport> createEditingSupport​(org.eclipse.jface.viewers.AbstractTableViewer columnViewer)
        Description copied from interface: ColumnConfiguration
        Called to setup the EditingSupport for the viewer.
        Specified by:
        createEditingSupport in interface ColumnConfiguration
        Parameters:
        columnViewer - the AbstractTableViewer
        Returns:
        the editing support for the column, if present
      • setData

        public void setData​(java.util.Map<java.lang.String,​java.lang.Object> data)
        Description copied from interface: ColumnConfiguration
        Add the contents of the given map to the data map.
        Specified by:
        setData in interface ColumnConfiguration
        Parameters:
        data - object
      • getData

        public java.lang.Object getData​(java.lang.String key)
        Description copied from interface: ColumnConfiguration
        Get an arbitrary element from the data map.
        Specified by:
        getData in interface ColumnConfiguration
        Parameters:
        key - (see constants)
        Returns:
        object
      • getData

        public java.util.Map<java.lang.String,​java.lang.Object> getData()
        Description copied from interface: ColumnConfiguration
        Get the underlying data map.
        Specified by:
        getData in interface ColumnConfiguration
        Returns:
        data map object