Class AbstractCheckBoxLabelProvider
- java.lang.Object
-
- org.eclipse.core.commands.common.EventManager
-
- org.eclipse.jface.viewers.BaseLabelProvider
-
- org.eclipse.jface.viewers.CellLabelProvider
-
- org.eclipse.jface.viewers.OwnerDrawLabelProvider
-
- com._1c.g5.v8.dt.common.ui.jface.viewers.CenterImageLabelProvider
-
- com._1c.g5.v8.dt.common.ui.jface.viewers.AbstractCheckBoxLabelProvider
-
- All Implemented Interfaces:
IBaseLabelProvider
,IToolTipProvider
public abstract class AbstractCheckBoxLabelProvider extends CenterImageLabelProvider
Abstract checkbox label provider. Paints platform-depended checkbox image in the center of UI element.
-
-
Constructor Summary
Constructors Constructor Description AbstractCheckBoxLabelProvider()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected org.eclipse.swt.graphics.Image
getImage(Object element)
Returns the image for the label of the given element.protected boolean
isCheckable(Object element)
Returns whether the given input element is supported to be checkable.protected abstract boolean
isChecked(Object element)
Returns whether the given input element is checked:true
to draw check image,false
otherwiseprotected void
measure(org.eclipse.swt.widgets.Event event, Object element)
-
Methods inherited from class com._1c.g5.v8.dt.common.ui.jface.viewers.CenterImageLabelProvider
erase, getRectangle, paint
-
Methods inherited from class org.eclipse.jface.viewers.OwnerDrawLabelProvider
dispose, initialize, initialize, setOwnerDrawEnabled, setUpOwnerDraw, update
-
Methods inherited from class org.eclipse.jface.viewers.CellLabelProvider
getToolTipBackgroundColor, getToolTipDisplayDelayTime, getToolTipFont, getToolTipForegroundColor, getToolTipImage, getToolTipShift, getToolTipStyle, getToolTipText, getToolTipTimeDisplayed, useNativeToolTip
-
Methods inherited from class org.eclipse.jface.viewers.BaseLabelProvider
addListener, dispose, fireLabelProviderChanged, isLabelProperty, removeListener
-
-
-
-
Method Detail
-
measure
protected void measure(org.eclipse.swt.widgets.Event event, Object element)
- Overrides:
measure
in classCenterImageLabelProvider
-
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 classCenterImageLabelProvider
- Parameters:
element
- the element for which to provide the label image, cannot benull
- 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 returnstrue
thenisChecked
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 ornull
if input isnull
- 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 benull
- Returns:
- whether the given
element
is checked
-
-