SwingMenu extends AbstractSwingContainer implements XulMenu { public String getLabel() { return menu.getText(); } SwingMenu( Element self, XulComponent parent, XulDomContainer domContainer, String tagName ); void layout(); String getAcceltext(); String getAccesskey(); boolean isDisabled(); String getLabel(); void setAcceltext( String accel ); void setAccesskey( String accessKey ); void setDisabled( boolean disabled ); void setLabel( String label ); void resetContainer();  }
@Test public void testMenuItemLabel() throws Exception { XulMenuitem item = (XulMenuitem) doc.getElementById( "paseMenuItem" ); assertEquals( "Paste", item.getLabel() ); }