Macadamian/titanium_mobile — pull request #116 by jpl-mac (2012-07-27 08:13:23+00:00)
Title: TIMOB-9961 BlackBerry: Implement UI.View elements necessary for Kitchen ...

...Sink

Reviewer: Harut

This patch implements the UI.createView function and UI.Proxy.removeEventListener native implementation

Changelog:
- removed leftover eventHandler_ from NCO
- Adapted NCO to be the native View class
-- implemented createView, getObjectType, initialize
- added implementation helpers in NCO for Container objects that accept child controls
- did the same for remove for symetry
- Added asserts in methods that use container_ pointer
- cleanup of NativePageObject to use the NCO container
- Implemented native portion of removeEventLstener
- Fixed logic issues in TiProxy::onRemoveEventListener
- Added proper release of the NativeObject in TiProxy methods
- Fixed parent classes of ActivityIndicator and AlertDialog as they don't inherit from View but from Proxy
- Normalized all create* functions to return the proper pointer type
- moved setParametersFromObject to TiProxy as not all controls are Views

Tests:
- app.js posted to JIRA issue
- Create an app with a View and add widgets into it. Verified with an event listener that the controls can be added and removed. Used different colors to see how the widgets layout with each other.
- Verified with events that removeEventListener does indeed remove the listener. listener can be added and removed back and forth.
- Verified that seting opacity on the container rather than on the control yields the correct result.