How to make List as an commondList

17 views
Skip to first unread message

zydor - Michał Czaja

unread,
Jan 30, 2014, 7:46:48 AM1/30/14
to codenameone...@googlegroups.com

Hello

I have try to find some examples but without any success.
Could somebody give an example how to treat List as an command list, how and where defined commands and where add event listeners ?
I besed my question on List.setCommandList(), but documentation is to insufficient and I can not see anny other methods enywhere to expand this... 
Could sombody help a bit ?

Shai Almog

unread,
Jan 30, 2014, 12:51:43 PM1/30/14
to codenameone...@googlegroups.com
Hi,
new List(new Command[] { commandA, commandB });

Just create a command object and override its action performed method.
Reply all
Reply to author
Forward
0 new messages