Class GridHeaderEditor


  • class GridHeaderEditor
    extends org.eclipse.swt.custom.ControlEditor
    Manager for a Control that appears below the grid column header. Based on GridEditor.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private GridColumn column  
      private org.eclipse.swt.widgets.Listener columnGroupListener  
      (package private) org.eclipse.swt.events.ControlListener columnListener  
      private org.eclipse.swt.widgets.Listener columnVisibleListener  
      private org.eclipse.swt.widgets.Listener mouseOverListener  
      (package private) org.eclipse.swt.widgets.Listener resizeListener  
      private org.eclipse.swt.widgets.Listener scrollListener  
      private Grid table  
      • Fields inherited from class org.eclipse.swt.custom.ControlEditor

        grabHorizontal, grabVertical, horizontalAlignment, minimumHeight, minimumWidth, verticalAlignment
    • Constructor Summary

      Constructors 
      Constructor Description
      GridHeaderEditor​(GridColumn column)
      Creates a TableEditor for the specified Table.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void dispose()
      Removes all associations between the TableEditor and the cell in the table.
      (package private) void initColumn()
      Sets the zero based index of the column of the cell being tracked by this editor.
      protected org.eclipse.swt.graphics.Rectangle internalComputeBounds()
      Returns the bounds of the editor.
      void layout()
      void setEditor​(org.eclipse.swt.widgets.Control editor)  
      • Methods inherited from class org.eclipse.swt.custom.ControlEditor

        getEditor
      • Methods inherited from class java.lang.Object

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

      • table

        private Grid table
      • columnListener

        org.eclipse.swt.events.ControlListener columnListener
      • resizeListener

        org.eclipse.swt.widgets.Listener resizeListener
      • columnVisibleListener

        private final org.eclipse.swt.widgets.Listener columnVisibleListener
      • columnGroupListener

        private final org.eclipse.swt.widgets.Listener columnGroupListener
      • scrollListener

        private final org.eclipse.swt.widgets.Listener scrollListener
      • mouseOverListener

        private final org.eclipse.swt.widgets.Listener mouseOverListener
    • Constructor Detail

      • GridHeaderEditor

        GridHeaderEditor​(GridColumn column)
        Creates a TableEditor for the specified Table.
        Parameters:
        column - the Table Control above which this editor will be displayed
    • Method Detail

      • internalComputeBounds

        protected org.eclipse.swt.graphics.Rectangle internalComputeBounds()
        Returns the bounds of the editor.
        Returns:
        bounds of the editor.
      • dispose

        public void dispose()
        Removes all associations between the TableEditor and the cell in the table. The Table and the editor Control are not disposed.
        Overrides:
        dispose in class org.eclipse.swt.custom.ControlEditor
      • initColumn

        void initColumn()
        Sets the zero based index of the column of the cell being tracked by this editor.
        Parameters:
        column - the zero based index of the column of the cell being tracked by this editor
      • layout

        public void layout()
        Overrides:
        layout in class org.eclipse.swt.custom.ControlEditor
      • setEditor

        public void setEditor​(org.eclipse.swt.widgets.Control editor)
        Overrides:
        setEditor in class org.eclipse.swt.custom.ControlEditor