org.fest.swing.fixture
Interface JPopupMenuInvokerFixture

All Known Implementing Classes:
DialogFixture, FrameFixture, JButtonFixture, JCheckBoxFixture, JComboBoxFixture, JInternalFrameFixture, JLabelFixture, JListFixture, JPanelFixture, JRadioButtonFixture, JScrollBarFixture, JScrollPaneFixture, JSliderFixture, JSpinnerFixture, JSplitPaneFixture, JTabbedPaneFixture, JTableFixture, JTextComponentFixture, JToggleButtonFixture, JToolBarFixture, JTreeFixture, WindowFixture

public interface JPopupMenuInvokerFixture

Understands input simulation on Components capable of invoking JPopupMenus.

Author:
Alex Ruiz

Method Summary
 JPopupMenuFixture showPopupMenu()
          Shows a pop-up menu using this fixture's Component as the invoker of the pop-up menu.
 JPopupMenuFixture showPopupMenuAt(Point p)
          Shows a pop-up menu at the given point using this fixture's Component as the invoker of the pop-up menu.
 

Method Detail

showPopupMenu

JPopupMenuFixture showPopupMenu()
Shows a pop-up menu using this fixture's Component as the invoker of the pop-up menu.

Returns:
a fixture that manages the displayed pop-up menu.
Throws:
IllegalStateException - if this fixture's Component is disabled.
IllegalStateException - if this fixture's Component is not showing on the screen.
ComponentLookupException - if a pop-up menu cannot be found.

showPopupMenuAt

JPopupMenuFixture showPopupMenuAt(Point p)
Shows a pop-up menu at the given point using this fixture's Component as the invoker of the pop-up menu.

Parameters:
p - the given point where to show the pop-up menu.
Returns:
a fixture that manages the displayed pop-up menu.
Throws:
IllegalStateException - if this fixture's Component is disabled.
IllegalStateException - if this fixture's Component is not showing on the screen.
ComponentLookupException - if a pop-up menu cannot be found.


Copyright © 2007-2011 FEST (Fixtures for Easy Software Testing). All Rights Reserved.