|
|
Re: DirectMenuItem and their IDs in a handler class [message #1188126 is a reply to message #1188075] |
Fri, 15 November 2013 13:09 |
Michael Relby Messages: 9 Registered: November 2013 |
Junior Member |
|
|
Hi Ozgur,
oh, I've been confused experimenting with Handlers and various menu item implementations and have not noticed the right solution for DirectMenuItem which I provide in first message as an assumption. Thanks for pointing it out and sorry me wasted your time, my assumption really works as I want.
BTW, consider the same situation. How can I figure out things that I am able to use through dependency injection in specific method of handler class? Is there some reference documentation or ability to figure it out at runtime (while debugging)?
For another example, consider model object "Handler" with Class URI linking to particular class. The class has following code:
@Execute
public void execute(MHandler a_hndlr) {
System.out.println(a_hndlr.getElementId());
}
And this doesn't work: when clicking on corresponding HandledMenuItem - nothing happens (no exceptions, no output at all). I think that MHandler injection is not available, so "execute" method is not executed. So the problem: how can I figure out what is available to me, and what is not?
PS. thank you again! DirectMenuItem snippet worked flawlessly.
[Updated on: Fri, 15 November 2013 13:13] Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02971 seconds