|How to correctly use ButtonCellPainter? [message #1137469]
||Mon, 14 October 2013 14:15
| Jens Rabe
Registered: September 2013
I followed the Rendereing_a_cell_as_a_button example and did the following:|
- Added a button cell painter to each cell with a specific label
- Added a ButtonClickConfiguration similar to the one in the example
- Added a click listener to the painter
But the button is neither shown as pressed nor is the click listener even called when clicking the button. What am I missing? When adding a LayerListener to my table which simply logs all received events, it only receives cell selection events.
EDIT: I did some more research:
When adding the configuration to the selection or the data layer of the table body, it is called, but the layer stack only contains the layer BODY, even if I attach the label accumulator right there. The label accumulator works correctly as the labels are used as a base for rendering, and the buttons are rendered correctly. Plus, the button does not appear pressed when I click it.
[Updated on: Mon, 14 October 2013 14:46]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.05735 seconds