Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Why to use Item Attribute with Event in case of some controls

 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A question about Event.Item

When i saw the example of MenuBar , i observed that we can get the data of the MenuBar clciked using a Event.Item@label .

I am having a question here , please tell me why Flex Framework is designed in such a way that getting data from the Controls is different for different controls .

I mean to ask why is it different in ncase of a MenuBar we have to use Event.item@label .

CXan anybody please tell me why what significance does an Item attribute have in case of a Event ??

Thanks in advance .
 
Hongli Li
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you can get the answer by reading flex document from adobe, as most control needs a data provider, so in case of MenuBar, you can provide xml as a data provider, from which MenuBar can then be created, Event.Item@label is a way of retrieving the data from the underlying data provider.
 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Hongli Li , superb explanation .
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic