S
- used to simulate "self types." For more information please read "Emulating 'self types' using Java Generics to simplify fluent API implementation."public interface ItemFixture<S> extends MouseInputSimulationFixture<S>
JComponents
(e.g. a cell in a JTable
or a row in a
JList
).Modifier and Type | Method and Description |
---|---|
S |
drag()
Simulates a user dragging this fixture's item.
|
S |
drop()
Simulates a user dropping into this fixture's item.
|
S |
select()
Simulates a user selecting this fixture's item.
|
JPopupMenuFixture |
showPopupMenu()
Shows a pop-up menu using this fixture's item as the invoker of the pop-up menu.
|
String |
value() |
click, click, click, doubleClick, rightClick
@Nonnull S select()
IllegalStateException
- if the component containing this fixture's item is disabled.IllegalStateException
- if the component containing this fixture's item is not showing on the screen.@Nullable String value()
String
representation of this fixture's item, or null
if one can not be obtained.@Nonnull S drag()
IllegalStateException
- if the component containing this fixture's item is disabled.IllegalStateException
- if the component containing this fixture's item is not showing on the screen.@Nonnull S drop()
IllegalStateException
- if the component containing this fixture's item is disabled.IllegalStateException
- if the component containing this fixture's item is not showing on the screen.ActionFailedException
- if there is no drag action in effect.@Nonnull JPopupMenuFixture showPopupMenu()
IllegalStateException
- if the component containing this fixture's item is disabled.IllegalStateException
- if the component containing this fixture's item is not showing on the screen.ComponentLookupException
- if a pop-up menu cannot be found.Copyright © 2014–2019 AssertJ. All rights reserved.