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.ColorgetBackground(int selectionIndex)Returns the background color of the given element at positionselectionIndex.org.eclipse.swt.graphics.FontgetFont(int selectionIndex)Returns the font of the given element at positionselectionIndex.org.eclipse.swt.graphics.ColorgetForeground(int selectionIndex)Returns the foreground color of the given element at positionselectionIndex.org.eclipse.swt.graphics.ImagegetImage(int selectionIndex)Returns the image of the given element at positionselectionIndex.java.lang.StringgetLabel(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:TableComboRendererReturns the text of the given element at positionselectionIndex.- Specified by:
getLabelin 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:TableComboRendererReturns the image of the given element at positionselectionIndex.- Specified by:
getImagein interfaceTableComboRenderer- Parameters:
selectionIndex- index of the selected element- Returns:
- the image (or
nullif there is no image) - See Also:
TableComboRenderer.getImage(int)
-
getBackground
public org.eclipse.swt.graphics.Color getBackground(int selectionIndex)Description copied from interface:TableComboRendererReturns the background color of the given element at positionselectionIndex.- Specified by:
getBackgroundin 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:TableComboRendererReturns the foreground color of the given element at positionselectionIndex.- Specified by:
getForegroundin 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:TableComboRendererReturns the font of the given element at positionselectionIndex.- Specified by:
getFontin 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)
-