• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

implementation of super class and sub class

 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am using a super class MenupopupAdapter and a subclass BackgroundContextMenu. I am using the constructor of super class to add a menu item - "Create new package" which is shared by other sub classes. I am using the constructor of the sub class to add a menu item - "New Root Entry".

As the constructor of the superclass is implemented before that of the sub class, the order of the menu items for Background context menu is: "Create new package" and "New Root Entry". But, only for this particular sub class I want the order to be reversed meaning I want "New Root Entry" as the first menu item. How do I achieve this?

Thanks,
Sony

 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic