Subclassing Text [message #778951] |
Sat, 14 January 2012 02:52  |
Eclipse User |
|
|
|
I need to provide default behavior on all text fields in an application. Examples are selectAll() on gainFocus and restriction to a subset of keys.
My first approach was to build a class hierarchy anchored on Text but it is marked @noextend. The only other way I can come up with is to add the code to each control individually or in a loop. This appears to me to be very non-OO and difficult to support.
Can anyone educate me on the reason that Text is marked @noextend? A link to existing discussion would be great.
Thanks for taking the time to read my question!
Timothy Vogel
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.09130 seconds