Package com._1c.g5.v8.dt.ui.dialog
Class CheckBoxLabelProvider
- 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.ui.dialog.CheckBoxLabelProvider
-
- All Implemented Interfaces:
IBaseLabelProvider
,IToolTipProvider
public abstract class CheckBoxLabelProvider extends CenterImageLabelProvider
Checkbox label provider.
-
-
Constructor Summary
Constructors Constructor Description CheckBoxLabelProvider()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract CheckState
getCheckedState(int columnIndex, Object element)
Gets checked state.protected org.eclipse.swt.graphics.Image
getImage(Object element)
Returns the image for the label of the given element.protected void
measure(org.eclipse.swt.widgets.Event event, Object element)
protected void
paint(org.eclipse.swt.widgets.Event event, Object element)
-
Methods inherited from class com._1c.g5.v8.dt.common.ui.jface.viewers.CenterImageLabelProvider
erase, getRectangle
-
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
-
getCheckedState
protected abstract CheckState getCheckedState(int columnIndex, Object element)
Gets checked state.- Parameters:
columnIndex
- the column indexelement
- checked element- Returns:
- the state
-
measure
protected void measure(org.eclipse.swt.widgets.Event event, Object element)
- Overrides:
measure
in classCenterImageLabelProvider
-
paint
protected void paint(org.eclipse.swt.widgets.Event event, Object element)
- Overrides:
paint
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
-
-