PDA

View Full Version : Much inconvenient to encapsulate a new component when extending from one in ext lib



metas
16 Mar 2012, 1:15 AM
1, No function list to choose and overriding. Which could be similar to "events" tab.

2, Cannot support coding in constructor "initComponent()"

ssamayoa
16 Mar 2012, 7:16 AM
Create an override class:

1. Select your class then switch to code view.
2. Create overrdide.
3. Select override class
4. Overrode initComponent() and whatever method or field you want.

32820

32821

Regards.

metas
18 Mar 2012, 6:34 PM
Thanks ssamayoa,

But I'd like to use extending instead of overriding.

ssamayoa
18 Mar 2012, 7:19 PM
I just realized with that limitation in designer.

You should be able to drop a custom component in the same project directly in the view node and an extension should be created, now that confuses designer.

Override for the moment is enough for me but definitely I will need an extend mechanism in the future.

Regards.

metas
18 Mar 2012, 10:36 PM
Correct. I am using "Override" now. It provides us a chance to write a new file. It's not read only.

Thanks,
Metas