|
A way to know when some changes are made in a list |
|
|
This J2ME tip describes a method that sets a command action whenever
some changes are made in a list. The ItemMIDlet commandAction( ) method
includes a case that detects the List selection change:
public void commandAction(Command c, Displayable d) {
if (c == List.SELECT_COMMAND) {
// Selection made in the IMPLICIT LIST
handleChoiceSelection((Choice)d);
} else {
// Other cases not shown
}
}
|
Related Tips
|
Page 1 of 0 ( 0 comments )
You can share your information about this topic using the form below!
Please do not post your questions with this form! Thanks.