Class DefaultTableComboRenderer
java.lang.Object
org.eclipse.nebula.widgets.tablecombo.DefaultTableComboRenderer
- All Implemented Interfaces:
TableComboRenderer
public class DefaultTableComboRenderer extends java.lang.Object implements TableComboRenderer
Default table combo renderer
-
Constructor Summary
Constructors Constructor Description DefaultTableComboRenderer(TableCombo tableCombo)
-
Method Summary
Modifier and Type Method Description org.eclipse.swt.graphics.Color
getBackground(int selectionIndex)
Returns the background color of the given element at positionselectionIndex
.org.eclipse.swt.graphics.Font
getFont(int selectionIndex)
Returns the font of the given element at positionselectionIndex
.org.eclipse.swt.graphics.Color
getForeground(int selectionIndex)
Returns the foreground color of the given element at positionselectionIndex
.org.eclipse.swt.graphics.Image
getImage(int selectionIndex)
Returns the image of the given element at positionselectionIndex
.java.lang.String
getLabel(int selectionIndex)
Returns the text of the given element at positionselectionIndex
.
-
Constructor Details
-
DefaultTableComboRenderer
- Parameters:
tableCombo
-
-
-
Method Details
-
getLabel
public java.lang.String getLabel(int selectionIndex)Description copied from interface:TableComboRenderer
Returns the text of the given element at positionselectionIndex
.- Specified by:
getLabel
in interfaceTableComboRenderer
- Parameters:
selectionIndex
- index of the selected element- Returns:
- the text
- See Also:
TableComboRenderer.getLabel(int)
-
getImage
public org.eclipse.swt.graphics.Image getImage(int selectionIndex)Description copied from interface:TableComboRenderer
Returns the image of the given element at positionselectionIndex
.- Specified by:
getImage
in interfaceTableComboRenderer
- Parameters:
selectionIndex
- index of the selected element- Returns:
- the image (or
null
if there is no image) - See Also:
TableComboRenderer.getImage(int)
-
getBackground
public org.eclipse.swt.graphics.Color getBackground(int selectionIndex)Description copied from interface:TableComboRenderer
Returns the background color of the given element at positionselectionIndex
.- Specified by:
getBackground
in interfaceTableComboRenderer
- Parameters:
selectionIndex
- index of the selected element- Returns:
- the background color (or null if one wants to keep the default color)
- See Also:
TableComboRenderer.getBackground(int)
-
getForeground
public org.eclipse.swt.graphics.Color getForeground(int selectionIndex)Description copied from interface:TableComboRenderer
Returns the foreground color of the given element at positionselectionIndex
.- Specified by:
getForeground
in interfaceTableComboRenderer
- Parameters:
selectionIndex
- index of the selected element *- Returns:
- the foreground color (or null if one wants to keep the default color)
- See Also:
TableComboRenderer.getForeground(int)
-
getFont
public org.eclipse.swt.graphics.Font getFont(int selectionIndex)Description copied from interface:TableComboRenderer
Returns the font of the given element at positionselectionIndex
.- Specified by:
getFont
in interfaceTableComboRenderer
- Parameters:
selectionIndex
- index of the selected element- Returns:
- the font (or null if one wants to keep the default font)
- See Also:
TableComboRenderer.getFont(int)
-