SwingTabbox extends AbstractSwingContainer implements XulTabbox { public XulTabpanels getTabpanels() { return panels; } SwingTabbox( Element self, XulComponent parent, XulDomContainer domContainer, String tagName ); @Override void addChild( Element ele ); int getSelectedIndex(); XulTabpanel getSelectedPanel(); XulTabpanels getTabpanels(); XulTabs getTabs(); void setSelectedIndex( int index ); @Override void layout(); void setTabDisabledAt( boolean flag, int pos ); void removeTab( int idx ); void removeTabpanel( int idx ); void addTab( int idx ); void addTabpanel( int idx ); void setClosable( boolean flag ); boolean isClosable(); void setOnclose( String command );  }
@Test public void getTabPanelsTest() throws Exception { XulTabpanels panels = (XulTabpanels) doc.getElementById( "tabpanels" ); assertEquals( panels, tabbox.getTabpanels() ); }