Class ComboBoxFilterRowConfiguration
- java.lang.Object
-
- org.eclipse.nebula.widgets.nattable.config.AbstractRegistryConfiguration
-
- org.eclipse.nebula.widgets.nattable.filterrow.combobox.ComboBoxFilterRowConfiguration
-
- All Implemented Interfaces:
IConfiguration
public class ComboBoxFilterRowConfiguration extends AbstractRegistryConfiguration
Special filter row configuration that configures the FilterRowComboBoxCellEditor as editor for the filter row with its necessary configurations regarding matching mode, converter and painter.
-
-
Field Summary
Fields Modifier and Type Field Description protected ICellEditor
cellEditor
The ICellEditor that should be used for the filter cells.protected ImagePainter
filterIconPainter
The ImagePainter that will be registered as the painter of the combobox cells in the filter row.
-
Constructor Summary
Constructors Constructor Description ComboBoxFilterRowConfiguration()
The empty default constructor needed for specialising.ComboBoxFilterRowConfiguration(ICellEditor cellEditor, ImagePainter filterIconPainter)
Create a ComboBoxFilterRowConfiguration with the given filter cell editor and filter icon painter.ComboBoxFilterRowConfiguration(IComboBoxDataProvider comboBoxDataProvider)
Create a ComboBoxFilterRowConfiguration that uses the default FilterRowComboBoxCellEditor showing the maximum number of 10 items at once and the ComboBoxFilterIconPainter with the default filter icon.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configureRegistry(IConfigRegistry configRegistry)
Configure NatTable'sIConfigRegistry
upon receiving this callback.-
Methods inherited from class org.eclipse.nebula.widgets.nattable.config.AbstractRegistryConfiguration
configureLayer, configureUiBindings
-
-
-
-
Field Detail
-
cellEditor
protected ICellEditor cellEditor
The ICellEditor that should be used for the filter cells. Usually it should be the FilterRowComboBoxCellEditor.
-
filterIconPainter
protected ImagePainter filterIconPainter
The ImagePainter that will be registered as the painter of the combobox cells in the filter row.
-
-
Constructor Detail
-
ComboBoxFilterRowConfiguration
public ComboBoxFilterRowConfiguration()
The empty default constructor needed for specialising.Note: On using this constructor you need to ensure that the local member variables for cellEditor and filterIconPainter need to be set manually. Otherwise this configuration will not work correctly!
-
ComboBoxFilterRowConfiguration
public ComboBoxFilterRowConfiguration(IComboBoxDataProvider comboBoxDataProvider)
Create a ComboBoxFilterRowConfiguration that uses the default FilterRowComboBoxCellEditor showing the maximum number of 10 items at once and the ComboBoxFilterIconPainter with the default filter icon.- Parameters:
comboBoxDataProvider
- The IComboBoxDataProvider that is used to fill the filter row comboboxes.
-
ComboBoxFilterRowConfiguration
public ComboBoxFilterRowConfiguration(ICellEditor cellEditor, ImagePainter filterIconPainter)
Create a ComboBoxFilterRowConfiguration with the given filter cell editor and filter icon painter.- Parameters:
cellEditor
- TheICellEditor
that should be used in the filter row.filterIconPainter
- TheImagePainter
that should be used to render a filter icon in the filter row.- Since:
- 2.0
-
-
Method Detail
-
configureRegistry
public void configureRegistry(IConfigRegistry configRegistry)
Description copied from interface:IConfiguration
Configure NatTable'sIConfigRegistry
upon receiving this callback. A mechanism to plug-in customICellPainter
,IDataValidator
etc.- Parameters:
configRegistry
- TheIConfigRegistry
instance to register configuration values to.
-
-