The Phoenix
Posted by Gaurav Vaish on October 16th, 2008
No no… don’t think that Dwt is dead just because there seems no visible activity for last two months.
In fact, I just got so busy that there was hardly any time to look into Dwt. Can’t help, I’m not 100%-time into Dwt.
Anyway… that was recent past.
Ok… now coming to the rebirth of Dwt - that I don’t think should happen again, at least in near future, here are the latest updates:
- Focus continues to have on the core design, for the moment, to ensure that we do not have half-cooked or uncooked design.
- Refactoring of dijit.Widget class: It does not use several class-level fields to store styleClass, dir, lang etc. It uses a
HashMap<String, Object>, and additionally provides get/set apart from getXXX and setXXX. - Added
JavaScriptObjectWrapperclass since interconversion fromJavaScriptObjectto Java-Object was troublesome area in quite a few scenarios. The benefits will be visible at several places. - Refactoring of
IJavaScriptFunctioninterface to useJavaScriptObjectWrapperclass. TemplatedWidgetusesHashMap<String, List<Element>> for dojoAttachPoints and HashMap<String, HashMap<Integer, List<EventListener>>>as event-listeners store.TemplatedWidget, at least for now - until we get the magical wand, does not support dojoAttachEvent.- The immediate next step is get
TemplatedWidgetback in shape because after these changes, the code breaks.
- Subsequently, implement the
replacePropertiesmethod. - And then, provide overloaded addEventListener methods as discussed in the previous entry.
I would be committing the code sometime tomorrow. It’s been quite hectic recently.
Catch up with lot of action…
