| Reply | « Previous Thread | Next Thread » |
|
Hi guys,
my problem is that I can´t handle commands from my subclass. My superclass implements commandListener and subclass inherites commandListener form superclass. I also overrided commandAction in subclass(in superclass is also one). But there was no response to commands which were handled from subclass´s commandAction. I think I need to set commandListener to subclass to handle subclass´s actionCommand, but I don´t know how and where. Can somebody help me, please? Thanks for your response |
|
You need something like:
Code:
// in the subclass
public void commandAction(Command c, Displayable d) {
super.commandAction(c,d); // handle superclasses' commands
// now add code to handle subclasses' commands
}
|
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|