How to add own CellPainters and Editors to the FilterRowHeaderComposite? [message #1065292] |
Tue, 25 June 2013 09:14 |
Alex Kipling Messages: 260 Registered: July 2012 |
Senior Member |
|
|
I would like to add own painters to the FilterRowHeaderComposite Cells.
I have done which had no effect.
What do I miss?
FilterRowHeaderComposite f= new FilterRowHeaderComposite(...);
f.addConfiguration(new ConfigurationFilterRowTextEditors());
...
class ConfigurationFilterRowTextEditors{
private void configureInputFields(IConfigRegistry configRegistry) {
cellPainter = new ComboBoxPainter();
// Plug in custom painter
configRegistry.registerConfigAttribute(CELL_PAINTER, cellPainter, NORMAL, LABEL_FILTERS);
// Make cells editable
configRegistry.registerConfigAttribute(CELL_EDITABLE_RULE, ALWAYS_EDITABLE, NORMAL, LABEL_FILTERS);
// Default text matching mode
configRegistry.registerConfigAttribute(TEXT_MATCHING_MODE, textMatchingMode);
// Default display converter. Used to convert the values typed into the text boxes into String objects.
configRegistry.registerConfigAttribute(FILTER_DISPLAY_CONVERTER, new DefaultDisplayConverter());
// Default comparator. Used to compare objects in the column during threshold matching.
configRegistry.registerConfigAttribute(FILTER_COMPARATOR, DefaultComparator.getInstance());
}
[Updated on: Tue, 25 June 2013 09:15] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
Re: How to add own CellPainters and Editors to the FilterRowHeaderComposite? [message #1065749 is a reply to message #1065378] |
Thu, 27 June 2013 11:29 |
Alex Kipling Messages: 260 Registered: July 2012 |
Senior Member |
|
|
We are talking at cross purposes, because my question was not formulated precisely. I will reformulate the question:
I registered new editors and painters, using the labels "GridRegion.FILTER_ROW"
"GridRegion.FILTER_ROW" are labels, which are used in registered in FilterRowDataLayer, together with "FILTER_ROW_COLUMN_LABEL_PREFIX + columnPosition" labels
So, it is my understanding using "GridRegion.FILTER_ROW" - should work and the editors editors and painters should apear, but they did not.
Now you have have told me to use the "FILTER_ROW_COLUMN_LABEL_PREFIX + columnPosition" labels, which worked.
So I assume that editors / painters, reigstered using "FILTER_ROW_COLUMN_LABEL_PREFIX + columnPosition" have higher priority, because they have been put into the label stack first. And I assume that somewhere else these "FILTER_ROW_COLUMN_LABEL_PREFIX + columnPosition" are used to register editors/painters,
which have overriden my first editors/painters which were registerred using "GridRegion.FILTER_ROW" painters.
The question is WHERE have the labels "FILTER_ROW_COLUMN_LABEL_PREFIX + columnPosition" been used to register those editors, which have overriden my editors?
I can not see this, by doing STRG+Shift+G!
|
|
|
Powered by
FUDForum. Page generated in 0.04374 seconds