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 int
COLUMN_ALIAS
static int
COLUMN_FIELD
static int
COLUMN_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.Image
getColumnImage(Object element, int columnIndex)
String
getColumnText(Object element, int columnIndex)
static FieldsMapping
getDcsFieldFieldsMapping(Object element, QueryWizardSource source)
Get fields mapping for dcs fieldorg.eclipse.swt.graphics.Font
getFont(Object element, int columnIndex)
String
getToolTipText(Object element, int column)
Get tool tip textboolean
isColumnHaveCustomLabelProvider(int column)
Is column have custom label providervoid
update(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:
getColumnImage
in interfaceITableLabelProvider
- Overrides:
getColumnImage
in classFieldsLabelProvider
-
getColumnText
public String getColumnText(Object element, int columnIndex)
- Specified by:
getColumnText
in interfaceITableLabelProvider
- Overrides:
getColumnText
in classFieldsLabelProvider
-
getFont
public org.eclipse.swt.graphics.Font getFont(Object element, int columnIndex)
- Specified by:
getFont
in interfaceITableFontProvider
-
isColumnHaveCustomLabelProvider
public boolean isColumnHaveCustomLabelProvider(int column)
Description copied from class:AbstractQueryWizardLabelProvider
Is column have custom label provider- Overrides:
isColumnHaveCustomLabelProvider
in 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:AbstractQueryWizardLabelProvider
Update the label for cell. Using for extending "update" method in "CellLabelProvider" class- Overrides:
update
in classAbstractQueryWizardLabelProvider
- Parameters:
column
- - columncell
- - column cellparent
- - parent tree
-
getToolTipText
public String getToolTipText(Object element, int column)
Description copied from class:AbstractQueryWizardLabelProvider
Get tool tip text- Overrides:
getToolTipText
in classFieldsLabelProvider
- Parameters:
element
- - element- Returns:
- tool tip text or null if have no text
-
-