I have two LWUIT commands on my LWUIT Form : "back" and "Phone". When I click on the "Phone" command then a LWUIT Dialog is shown , this Dialog contains a List of commands :
if (ae.getCommand() == back)
{
backForm.showBack();
}
else if (ae.getCommand() == phoneCmd)
{
Command[] comms = new Command[6];
comms[0] = agrandir;
comms[1] = transferer;
comms[2] = telecharger;
comms[3] = camera;
comms[4] = delete;
comms[5] = annuler;
isMenuShown = true;
new CMenu(comms, "droite").affiche();
}
The CMenu class is a LWUIT Dialog which contains a List of Commands , the commands are passed to the array of commands "comms".
I want a specific command , the "delete" command, of the CMenu Dialog to be executed in my code. How to achieve that ?