Integration in Mobile Designer
Content is provided to a nUITabView through an ITabViewProvider interface. Application developers will need to create a class that implements this interface, and assign it to an instance of nUITabView. The nUITabView Object will query the methods in ITabViewProvider at runtime to determine how to draw its contents. The getNumberOfTabs() method will be called to determine how many tabs are required. This method will be called only once, near the creation time of the native objects on-screen. For every tab, createTabElement(int index) will be called to create the tab's label, and createTabView(int index) will be called to create the tab's contents. A nUITabViewListener can be used to get notifications when a tab is selected. Example code for nUITabView can be seen in the _NativeUIDemo_ Sample Project.