Package gov.nasa.arc.mct.gui.GroupAction

Examples of gov.nasa.arc.mct.gui.GroupAction.RadioAction


        setTargetComponent(housingB);
    testMenu.fireMenuSelected();
    Assert.assertEquals(testMenu.getMenuComponentCount(), 6);

    JMenuItem menuItem = (JMenuItem) testMenu.getMenuComponent(1);
    RadioAction radioActionThis = (RadioAction) menuItem.getAction();
    Assert.assertNotNull(radioActionThis);
    Assert.assertTrue(radioActionThis.isEnabled());
    Assert.assertFalse(radioActionThis.isSelected());

    menuItem = (JMenuItem) testMenu.getMenuComponent(2);
    RadioAction radioActionThat = (RadioAction) menuItem.getAction();
    Assert.assertNotNull(radioActionThat);
    Assert.assertTrue(radioActionThat.isEnabled());
    Assert.assertFalse(radioActionThat.isSelected());

    radioActionThat.actionPerformed(new ActionEvent(testMenu, 0, null));
    testMenu.fireMenuDeselected();
    resetTargetComponent(housingB);
  }
View Full Code Here


        setTargetComponent(housingB);
    testMenu.fireMenuSelected();
    Assert.assertEquals(testMenu.getMenuComponentCount(), 6);

    JMenuItem menuItem = (JMenuItem) testMenu.getMenuComponent(2);
    RadioAction radioActionThat = (RadioAction) menuItem.getAction();
    Assert.assertNotNull(radioActionThat);
    Assert.assertTrue(radioActionThat.isEnabled());
    Assert.assertFalse(radioActionThat.isSelected());

    testMenu.fireMenuDeselected();
    resetTargetComponent(housingB);
  }
View Full Code Here

TOP

Related Classes of gov.nasa.arc.mct.gui.GroupAction.RadioAction

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.