Class CompoundControlSWTRenderer

    • Method Detail

      • getDataBindingContext

        protected org.eclipse.core.databinding.DataBindingContext getDataBindingContext()
        Returns the DataBindingContext.
        Returns:
        the databining context
        Since:
        1.8
      • getViewTemplateProvider

        protected VTViewTemplateProvider getViewTemplateProvider()
        Returns:
        the viewTemplateProvider
        Since:
        1.16
      • createLabel

        protected org.eclipse.swt.widgets.Control createLabel​(org.eclipse.swt.widgets.Composite parent)
        Creates the label composite.
        Parameters:
        parent - the parent composite
        Returns:
        the label
        Since:
        1.8
      • getLabelStyleBits

        protected int getLabelStyleBits()
        Returns:
        the style bits for the control's label
        Since:
        1.17
      • getLabelWidth

        protected Optional<java.lang.Integer> getLabelWidth()
        Returns:
        an optional width for the control's label
        Since:
        1.16
      • createValidationIcon

        protected org.eclipse.swt.widgets.Control createValidationIcon​(org.eclipse.swt.widgets.Composite parent)
                                                                throws NoRendererFoundException,
                                                                       NoPropertyDescriptorFoundExeption
        Return the validation cell of the fist child. If no children or strange first cell, return a dummy validation icon.
        Parameters:
        parent - the parent to render on
        Returns:
        the validation control
        Throws:
        NoRendererFoundException - this is thrown when a renderer cannot be found
        NoPropertyDescriptorFoundExeption - this is thrown when no property descriptor can be found
        Since:
        1.17
      • setFirstControlValidationIconUsed

        protected void setFirstControlValidationIconUsed​(boolean used)
        Whether the first cell of the first child control was used to renderer our validation icon.
        Parameters:
        used - true if used, false otherwise
        Since:
        1.17
      • createDummyValidationIcon

        protected org.eclipse.swt.widgets.Control createDummyValidationIcon​(org.eclipse.swt.widgets.Composite parent)
        Creates the validation icon of the first cell of the first child may not be used as the validation icon.
        Parameters:
        parent - the parent
        Returns:
        the validation icon
        Since:
        1.17
      • createControls

        protected org.eclipse.swt.widgets.Control createControls​(org.eclipse.swt.widgets.Composite parent)
        Creates the controls composite.
        Parameters:
        parent - the parent composite
        Returns:
        the controls
        Since:
        1.8
      • createControls

        protected org.eclipse.swt.widgets.Control createControls​(org.eclipse.swt.widgets.Composite parent,
                                                                 int cellsToSkip)
        Creates the controls composite. May skip the first cell(s).
        Parameters:
        parent - the parent composite
        cellsToSkip - number of cells to skip
        Returns:
        the controls
        Since:
        1.16
      • initChildRendererMap

        protected void initChildRendererMap()
        Initialises the child control to renderer map.
        Since:
        1.16
      • getColumnLayout

        protected org.eclipse.swt.widgets.Layout getColumnLayout​(int numColumns,
                                                                 boolean equalWidth)
        For testing purposes.
        Parameters:
        numColumns - numColumns
        equalWidth - equalWidth
        Returns:
        ColumnLayout
        Since:
        1.8
      • getSpanningLayoutData

        protected java.lang.Object getSpanningLayoutData​(VContainedElement child,
                                                         int spanX,
                                                         int spanY)
        For testing purposes.
        Parameters:
        child - the element for which the spanning layout is requested
        spanX - spanX
        spanY - spanY
        Returns:
        SpanningLayoutData
        Since:
        1.8
      • getLayoutData

        protected java.lang.Object getLayoutData​(SWTGridCell gridCell,
                                                 SWTGridDescription controlGridDescription,
                                                 SWTGridDescription currentRowGridDescription,
                                                 SWTGridDescription fullGridDescription,
                                                 VElement vElement,
                                                 org.eclipse.emf.ecore.EObject domainModel,
                                                 org.eclipse.swt.widgets.Control control)
        For testing purposes.
        Parameters:
        gridCell - gridCell
        controlGridDescription - controlGridDescription
        currentRowGridDescription - currentRowGridDescription
        fullGridDescription - fullGridDescription
        vElement - vElement
        domainModel - domainModel
        control - control
        Returns:
        LayoutData
        Since:
        1.8