Class ContainerSWTRenderer<VELEMENT extends VElement>

    • Method Detail

      • getCustomVariant

        protected java.lang.String getCustomVariant()
        The custom variant to set for styling.
        Returns:
        the string used by rap for styling
      • getChildren

        protected java.util.Collection<VContainedElement> getChildren()
        The collection of children to iterate over.
        Returns:
        the collection of children to render
      • getComposite

        protected org.eclipse.swt.widgets.Composite getComposite​(org.eclipse.swt.widgets.Composite parent)
        Allows to customize the composite which is used to render the children onto.
        Parameters:
        parent - the parent Composite to use as a parent
        Returns:
        the Composite or a subclass to use
      • getLayout

        protected org.eclipse.swt.widgets.Layout getLayout​(int numControls,
                                                           boolean equalWidth)
        Returns the layout to use.
        Parameters:
        numControls - number of columns to create
        equalWidth - whether the columns should be equal
        Returns:
        the Layout
      • setLayoutDataForControl

        protected void setLayoutDataForControl​(SWTGridCell gridCell,
                                               SWTGridDescription gridDescription,
                                               SWTGridDescription currentRowGridDescription,
                                               SWTGridDescription fullGridDescription,
                                               VElement vElement,
                                               org.eclipse.swt.widgets.Control control)
        Sets the LayoutData for the specified control.
        Parameters:
        gridCell - the GridCell used to render the control
        gridDescription - the GridDescription of the parent which rendered the control
        currentRowGridDescription - the GridDescription of the current row
        fullGridDescription - the GridDescription of the whole container
        vElement - the VElement to set the layoutData for
        control - the control to set the layout to
        Since:
        1.6