Package 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.-
Method Details
-
showPopupMenu
JPopupMenuFixture showPopupMenu()Shows a pop-up menu using this fixture'sas the invoker of the pop-up menu.Component- Returns:
- a fixture that manages the displayed pop-up menu.
- Throws:
IllegalStateException- if this fixture'sComponentis disabled.IllegalStateException- if this fixture'sComponentis not showing on the screen.ComponentLookupException- if a pop-up menu cannot be found.
-
showPopupMenuAt
Shows a pop-up menu at the given point using this fixture'sas the invoker of the pop-up menu.Component- 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'sComponentis disabled.IllegalStateException- if this fixture'sComponentis not showing on the screen.ComponentLookupException- if a pop-up menu cannot be found.
-