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.

Author:
Alex Ruiz

Method Summary
 MouseInputSimulationFixture click()
          Simulates a user clicking this fixture's GUI component.
 MouseInputSimulationFixture click(MouseButton button)
          Simulates a user clicking this fixture's GUI component.
 MouseInputSimulationFixture click(MouseClickInfo mouseClickInfo)
          Simulates a user clicking this fixture's GUI component.
 MouseInputSimulationFixture doubleClick()
          Simulates a user double-clicking this fixture's GUI component.
 MouseInputSimulationFixture rightClick()
          Simulates a user right-clicking this fixture's GUI component.
 

Method Detail

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

MouseInputSimulationFixture click(MouseButton button)
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

MouseInputSimulationFixture click(MouseClickInfo mouseClickInfo)
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 given MouseClickInfo is null.
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.


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