Mobile Development 10.11 | webMethods Mobile SuiteWeb Help | webMethods Mobile Designer Native User Interface Reference | Mobile Designer Native User Interface | Using Tabbed Views | Integration in Mobile Designer
 
Integration in Mobile Designer
Content is provided to a nUITabView through an ITabViewProvider interface. You must create a class that implements this interface and assign it to an instance of nUITabView. The nUITabView object queries the methods in ITabViewProvider at run time to determine how to draw its contents. The getNumberOfTabs() method is called to determine how many tabs are required. This method is called only once, near the creation time of the native objects on-screen. For every tab, createTabElement(int index) is called to create the tab's label, and createTabView(int index) is called to create the tab's content. A nUITabViewListener can be used to get notifications when a tab is selected. For example code for nUITabView, see the NativeUIDemoNew sample project.