Class DcsFieldsLabelProvider
- java.lang.Object
-
- com._1c.g5.v8.dt.qw.ui.labelproviders.AbstractQueryWizardLabelProvider
-
- com._1c.g5.v8.dt.qw.ui.labelproviders.FieldsLabelProvider
-
- com._1c.g5.v8.dt.qw.ui.labelproviders.DcsFieldsLabelProvider
-
- All Implemented Interfaces:
IBaseLabelProvider,ITableFontProvider,ITableLabelProvider
public class DcsFieldsLabelProvider extends FieldsLabelProvider implements ITableFontProvider
Label provider for dcs fields
-
-
Field Summary
Fields Modifier and Type Field Description static intCOLUMN_ALIASstatic intCOLUMN_FIELDstatic intCOLUMN_USE_CHILD-
Fields inherited from class com._1c.g5.v8.dt.qw.ui.labelproviders.FieldsLabelProvider
source
-
Fields inherited from class com._1c.g5.v8.dt.qw.ui.labelproviders.AbstractQueryWizardLabelProvider
EMPTY_STRING
-
-
Constructor Summary
Constructors Constructor Description DcsFieldsLabelProvider(QueryWizardControl queryWizardControl)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.swt.graphics.ImagegetColumnImage(Object element, int columnIndex)StringgetColumnText(Object element, int columnIndex)static FieldsMappinggetDcsFieldFieldsMapping(Object element, QueryWizardSource source)Get fields mapping for dcs fieldorg.eclipse.swt.graphics.FontgetFont(Object element, int columnIndex)StringgetToolTipText(Object element, int column)Get tool tip textbooleanisColumnHaveCustomLabelProvider(int column)Is column have custom label providervoidupdate(int column, ViewerCell cell, org.eclipse.swt.widgets.Tree parent)Update the label for cell.-
Methods inherited from class com._1c.g5.v8.dt.qw.ui.labelproviders.AbstractQueryWizardLabelProvider
addIssueMessage, addListener, addOverlayIcon, dispose, isLabelProperty, isToolTipTextRequired, removeListener
-
-
-
-
Field Detail
-
COLUMN_FIELD
public static final int COLUMN_FIELD
- See Also:
- Constant Field Values
-
COLUMN_USE_CHILD
public static final int COLUMN_USE_CHILD
- See Also:
- Constant Field Values
-
COLUMN_ALIAS
public static final int COLUMN_ALIAS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DcsFieldsLabelProvider
public DcsFieldsLabelProvider(QueryWizardControl queryWizardControl)
- Parameters:
queryWizardControl- - query wizard control
-
-
Method Detail
-
getDcsFieldFieldsMapping
public static FieldsMapping getDcsFieldFieldsMapping(Object element, QueryWizardSource source)
Get fields mapping for dcs field- Parameters:
element- - dcs field expression- Returns:
- source query wizard source
-
getColumnImage
public org.eclipse.swt.graphics.Image getColumnImage(Object element, int columnIndex)
- Specified by:
getColumnImagein interfaceITableLabelProvider- Overrides:
getColumnImagein classFieldsLabelProvider
-
getColumnText
public String getColumnText(Object element, int columnIndex)
- Specified by:
getColumnTextin interfaceITableLabelProvider- Overrides:
getColumnTextin classFieldsLabelProvider
-
getFont
public org.eclipse.swt.graphics.Font getFont(Object element, int columnIndex)
- Specified by:
getFontin interfaceITableFontProvider
-
isColumnHaveCustomLabelProvider
public boolean isColumnHaveCustomLabelProvider(int column)
Description copied from class:AbstractQueryWizardLabelProviderIs column have custom label provider- Overrides:
isColumnHaveCustomLabelProviderin classAbstractQueryWizardLabelProvider- Returns:
- true if have custom label provider
-
update
public void update(int column, ViewerCell cell, org.eclipse.swt.widgets.Tree parent)Description copied from class:AbstractQueryWizardLabelProviderUpdate the label for cell. Using for extending "update" method in "CellLabelProvider" class- Overrides:
updatein classAbstractQueryWizardLabelProvider- Parameters:
column- - columncell- - column cellparent- - parent tree
-
getToolTipText
public String getToolTipText(Object element, int column)
Description copied from class:AbstractQueryWizardLabelProviderGet tool tip text- Overrides:
getToolTipTextin classFieldsLabelProvider- Parameters:
element- - element- Returns:
- tool tip text or null if have no text
-
-