SwingListbox extends AbstractSwingContainer implements XulListbox, ListSelectionListener { public void removeItems() { this.model.removeAllElements(); for ( XulComponent c : this.getChildNodes() ) { this.removeChild( c ); } } SwingListbox( Element self, XulComponent parent, XulDomContainer container, String tagName ); Object getManagedObject(); boolean isDisabled(); void setDisabled( boolean disabled ); void setDisabled( String disabled ); int getRows(); void setRows( int rowsToDisplay ); String getSeltype(); void setSeltype( String selType ); Orient getOrientation(); void layout(); String getOnselect(); void setOnselect( String onchange ); void valueChanged( ListSelectionEvent e ); Object getSelectedItem(); Object[] getSelectedItems(); void setSelectedItem( Object item ); void setSelectedItems( Object[] items ); void setSelectedIndices( int[] indices ); void addItem( Object item ); void removeItems(); int getRowCount(); int getSelectedIndex(); int[] getSelectedIndices(); void setSelectedindex( String idx ); void setSelectedIndex( int index ); Collection<T> getElements(); void setElements( Collection<T> elements ); String getBinding(); void setBinding( String binding ); String getCommand(); void setCommand( final String command );  }
@Test public void testRemoveItems() throws Exception { assertEquals( 3, list.getRowCount() ); list.removeItems(); assertEquals( 0, list.getRowCount() ); }