[codenameone-discussions] Re: action event on a Table so that when I access a cell I can take an action like popup a dialog of choices

2017-08-07 Thread shop . service . assistant
overriding createCell and adding action listener to the individual cells does the job. cell.addPointerPressedListener(new ActionListener() { public void actionPerformed(ActionEvent evt) {

[codenameone-discussions] Re: action event on a Table so that when I access a cell I can take an action like popup a dialog of choices

2017-08-06 Thread Shai Almog
The demo code there includes a picker cell. When you bind the listener you have the cell row/column information right there in the method. -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop

[codenameone-discussions] Re: action event on a Table so that when I access a cell I can take an action like popup a dialog of choices

2017-08-06 Thread shop . service . assistant
My app will contain perhaps 20 rows in this instance. Using the method described in Table.html, processing an Table event with createCell(Object value, int row, int column, boolean editable) iterates all rows and super.getSelectedRow() does not return the row In the table I touched. 1) I

[codenameone-discussions] Re: action event on a Table so that when I access a cell I can take an action like popup a dialog of choices

2017-08-06 Thread Shai Almog
Focus is a bad approach for touch devices so we don't usually use it. If you look at the sample code in the Table JavaDoc https://www.codenameone.com/javadoc/com/codename1/ui/table/Table.html You will see how we work with cells individually. Unlike the swing approach of renderer/editor we