SwingMenuList extends AbstractSwingContainer implements XulMenuList<T> { public Collection<T> getElements() { return (Collection) this.getPopupElement().getChildNodes(); } SwingMenuList( Element self, XulComponent parent, XulDomContainer domContainer, String tagName ); void layout(); void onDomReady(); SwingMenupopup getPopupElement(); @Deprecated void replaceAllItems( Collection<T> tees ); String getSelectedItem(); void setSelectedItem( T t ); void setOncommand( final String command ); Collection<T> getElements(); String getBinding(); void setBinding( String binding ); void setElements( Collection<T> tees ); int getSelectedIndex(); void setSelectedIndex( int idx ); @Override void setWidth( int width ); void setEditable( boolean editable ); boolean getEditable(); String getValue(); void setValue( String value );  }
@Test public void testGetElements() throws Exception { assertEquals( 3, list.getElements().size() ); }