You Are Here:

Community: Developer Discussion Boards

#1 Old handling commands from subclass - 2003-04-17, 17:56

Join Date: Apr 2003
Posts: 5
stoun
Offline
Registered User
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
Reply With Quote

#2 Old 2003-04-20, 15:59

Join Date: Mar 2003
Posts: 2,280
Location: Israel
shmoove
Offline
Forum Nokia Champion
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
}
shmoove
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia