Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Invoke getter method on pojo dynamically(Invoke getter method on pojo dynamically)
Invoke getter method on pojo dynamically [message #489443] Sat, 03 October 2009 04:24 Go to next message
Marty Jones is currently offline Marty JonesFriend
Messages: 54
Registered: July 2009
Member
I was wondering if SWT has a utility class like the Jakarta Commons PropertyUtils class that will allow you to invoke a getter method on a POJO object by passing the POJO reference and a string method name?
Re: Invoke getter method on pojo dynamically [message #489676 is a reply to message #489443] Mon, 05 October 2009 14:20 Go to previous messageGo to next message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
No, SWT doesn't provide this. You should be able to implement it with some
Java introspection though.

Grant


"Marty Jones" <martybjones@gmail.com> wrote in message
news:ha6jmj$4rm$1@build.eclipse.org...
> I was wondering if SWT has a utility class like the Jakarta Commons
PropertyUtils class that will allow you to invoke a getter method on a POJO
object by passing the POJO reference and a string method name?
Re: Invoke getter method on pojo dynamically [message #489678 is a reply to message #489676] Mon, 05 October 2009 14:32 Go to previous message
Marty Jones is currently offline Marty JonesFriend
Messages: 54
Registered: July 2009
Member
Grant, Thanks for the input. That is exactly what I ended up doing.
Previous Topic:Some widgets display inconsistently in Windows XP and Vista
Next Topic:CoolBar not appearing in Windows Vista or 7?
Goto Forum:
  


Current Time: Wed Dec 11 06:38:16 GMT 2019

Powered by FUDForum. Page generated in 0.01301 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top