SwingButton extends SwingElement implements XulButton { public String getDir() { if ( dir == null ) { return null; } return dir.toString().toLowerCase(); } 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 testGetDir() { XulButton button1 = (XulButton) container.getDocumentRoot().getElementById( "firstButton" ); assertEquals( "reverse", button1.getDir() ); }