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
Component
s capable of invoking
JPopupMenu
s.-
Method Details
-
showPopupMenu
JPopupMenuFixture showPopupMenu()Shows a pop-up menu using this fixture's
as the invoker of the pop-up menu.Component
- Returns:
- a fixture that manages the displayed pop-up menu.
- Throws:
IllegalStateException
- if this fixture'sComponent
is disabled.IllegalStateException
- if this fixture'sComponent
is 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's
as 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'sComponent
is disabled.IllegalStateException
- if this fixture'sComponent
is not showing on the screen.ComponentLookupException
- if a pop-up menu cannot be found.
-