Class AbstractCheckBoxLabelProvider

    • Constructor Detail

      • AbstractCheckBoxLabelProvider

        public AbstractCheckBoxLabelProvider()
    • Method Detail

      • getImage

        protected org.eclipse.swt.graphics.Image getImage​(Object element)
        Description copied from class: CenterImageLabelProvider
        Returns the image for the label of the given element.
        Specified by:
        getImage in class CenterImageLabelProvider
        Parameters:
        element - the element for which to provide the label image, cannot be null
        Returns:
        the image used to label the element or null if none
      • isCheckable

        protected boolean isCheckable​(Object element)
        Returns whether the given input element is supported to be checkable. If returns true then isChecked method will be called to draw checked or unckeced image. Otherwise nothing will be drawn for the given element.

        Default implementation returns true for all non-null elements.

        Parameters:
        element - the input element or null if input is null
        Returns:
        whether the given input element is supported
      • isChecked

        protected abstract boolean isChecked​(Object element)
        Returns whether the given input element is checked: true to draw check image, false otherwise
        Parameters:
        element - the input element to check state, cannot be null
        Returns:
        whether the given element is checked