All Implemented Interfaces:
IColumn<T,V,TreeColumn<T,V>>, IEditableColumn<T,V,TreeColumn<T,V>>, IEMFColumn<T,V,TreeColumn<T,V>>

public class TreeColumn<T,V> extends EmfColumn<T,V,TreeColumn<T,V>> implements IEMFColumn<T,V,TreeColumn<T,V>>
  • Constructor Details

  • Method Details

    • getColumnClass

      public static <T, V> Class<TreeColumn<T,V>> getColumnClass()
    • getColumn

      public org.eclipse.swt.widgets.TreeColumn getColumn()
    • getViewerColumn

      public org.eclipse.jface.viewers.TreeViewerColumn getViewerColumn()
      Description copied from interface: IColumn
      Return the current ViewerColumn of the column
      Specified by:
      getViewerColumn in interface IColumn<T,V,TreeColumn<T,V>>
      Returns:
      the current ViewerColumn of the column
    • getActualWidth

      public int getActualWidth()
      Description copied from interface: IColumn
      Calculates and returns the current column width
      Specified by:
      getActualWidth in interface IColumn<T,V,TreeColumn<T,V>>
    • headerIcon

      public TreeColumn<T,V> headerIcon(org.eclipse.swt.graphics.Image icon)
      Description copied from interface: IColumn
      Set icon for the column
      Specified by:
      headerIcon in interface IColumn<T,V,TreeColumn<T,V>>
      Returns:
      this column
    • name

      public TreeColumn<T,V> name(String name)
      Description copied from interface: IColumn
      Set the column name
      Specified by:
      name in interface IColumn<T,V,TreeColumn<T,V>>
      Returns:
      this column
    • width

      public TreeColumn<T,V> width(int width)
      Description copied from interface: IColumn
      Set the column width
      Specified by:
      width in interface IColumn<T,V,TreeColumn<T,V>>
      Returns:
      this column
    • tooltip

      public TreeColumn<T,V> tooltip(String toolTipText)
      Description copied from interface: IColumn
      Set tool tip for this column
      Specified by:
      tooltip in interface IColumn<T,V,TreeColumn<T,V>>
      Parameters:
      toolTipText -
      Returns:
      this column
    • getColumnIndex

      public int getColumnIndex()
      Description copied from interface: IColumn
      Calculates and returns the current column index
      Specified by:
      getColumnIndex in interface IColumn<T,V,TreeColumn<T,V>>
    • getVisibleColumnIndex

      public int getVisibleColumnIndex()
      Description copied from interface: IColumn
      Calculates and returns the current visual position of this column in the UI after any column reordering by the user.

      This index reflects the visual position after any column reordering by the user, unlike the logical index returned by IColumn.getColumnIndex().

      Specified by:
      getVisibleColumnIndex in interface IColumn<T,V,TreeColumn<T,V>>
      Returns:
      the visible column index
      See Also:
    • moveable

      public TreeColumn<T,V> moveable(boolean moveable)
      Description copied from interface: IColumn
      Sets whether this column can be moved by the user in the UI.

      Default value: false (columns are fixed by default)

      Specified by:
      moveable in interface IColumn<T,V,TreeColumn<T,V>>
      Parameters:
      moveable - true to enable column reordering by user, false to make column position fixed
      Returns:
      this column
      See Also: