SwingButton extends SwingElement implements XulButton { public String getLabel() { return getButton().getText(); } SwingButton( Element self, XulComponent parent, XulDomContainer domContainer, String tagName );  SwingButton(); @Override void onDomReady(); void setLabel( String label ); void setOnclick( final String method ); String getOnclick(); String getLabel(); boolean isDisabled(); void setDisabled( boolean dis ); String getImage(); void setImage( String src ); String getDir(); void setDir( String dir ); @Override void layout(); String getGroup(); String getType(); void setGroup( final String group ); void setType( String type ); void setSelected( String selected ); boolean isSelected(); void setSelected( boolean selected ); void doClick();  }
@Test public void testGetLabel() { XulButton button1 = (XulButton) container.getDocumentRoot().getElementById( "firstButton" ); assertEquals( "TOP", button1.getLabel() ); }