Package org.fest.swing.fixture
Interface MouseInputSimulationFixture
- All Known Subinterfaces:
CommonComponentFixture
,ItemFixture
,JTreeNodeFixture
- All Known Implementing Classes:
DialogFixture
,FrameFixture
,GenericComponentFixture
,JButtonFixture
,JCheckBoxFixture
,JComboBoxFixture
,JFileChooserFixture
,JInternalFrameFixture
,JLabelFixture
,JListFixture
,JListItemFixture
,JOptionPaneFixture
,JPanelFixture
,JPopupMenuFixture
,JRadioButtonFixture
,JScrollBarFixture
,JScrollPaneFixture
,JSliderFixture
,JSpinnerFixture
,JSplitPaneFixture
,JTabbedPaneFixture
,JTableCellFixture
,JTableFixture
,JTextComponentFixture
,JToggleButtonFixture
,JToolBarFixture
,JTreeFixture
,JTreePathFixture
,JTreeRowFixture
,WindowFixture
public interface MouseInputSimulationFixture
Understands simulation of mouse input on a GUI component.
-
Method Summary
Modifier and TypeMethodDescriptionclick()
Simulates a user clicking this fixture's GUI component.click
(MouseButton button) Simulates a user clicking this fixture's GUI component.click
(MouseClickInfo mouseClickInfo) Simulates a user clicking this fixture's GUI component.Simulates a user double-clicking this fixture's GUI component.Simulates a user right-clicking this fixture's GUI component.
-
Method Details
-
click
MouseInputSimulationFixture click()Simulates a user clicking this fixture's GUI component.- Returns:
- this fixture.
- Throws:
IllegalStateException
- if the component is disabled.IllegalStateException
- if the component is not showing on the screen.
-
click
Simulates a user clicking this fixture's GUI component.- Parameters:
button
- the button to click.- Returns:
- this fixture.
- Throws:
IllegalStateException
- if the component is disabled.IllegalStateException
- if the component is not showing on the screen.
-
click
Simulates a user clicking this fixture's GUI component.- Parameters:
mouseClickInfo
- specifies the button to click and the times the button should be clicked.- Returns:
- this fixture.
- Throws:
NullPointerException
- if the givenMouseClickInfo
isnull
.IllegalStateException
- if the component is disabled.IllegalStateException
- if the component is not showing on the screen.
-
doubleClick
MouseInputSimulationFixture doubleClick()Simulates a user double-clicking this fixture's GUI component.- Returns:
- this fixture.
- Throws:
IllegalStateException
- if the component is disabled.IllegalStateException
- if the component is not showing on the screen.
-
rightClick
MouseInputSimulationFixture rightClick()Simulates a user right-clicking this fixture's GUI component.- Returns:
- this fixture.
- Throws:
IllegalStateException
- if the component is disabled.IllegalStateException
- if the component is not showing on the screen.
-