S
- used to simulate "self types." For more information please read "Emulating 'self types' using Java Generics to simplify fluent API implementation."C
- the type of Container
that this fixture can manage.D
- the type of ComponentDriver
that this fixture uses internally.public abstract class AbstractContainerFixture<S,C extends Container,D extends ComponentDriver> extends AbstractComponentFixture<S,C,D> implements ComponentContainerFixture
Component
s contained in a Container
.BACKGROUND_PROPERTY, FONT_PROPERTY, FOREGROUND_PROPERTY
Constructor and Description |
---|
AbstractContainerFixture(Class<S> selfType,
Robot robot,
C target)
Creates a new
AbstractContainerFixture . |
AbstractContainerFixture(Class<S> selfType,
Robot robot,
Class<? extends C> type)
Creates a new
AbstractContainerFixture . |
AbstractContainerFixture(Class<S> selfType,
Robot robot,
String name,
Class<? extends C> type)
Creates a new
AbstractContainerFixture . |
Modifier and Type | Method and Description |
---|---|
JButtonFixture |
button()
Returns a
JButton found in this fixture's Container . |
JButtonFixture |
button(GenericTypeMatcher<? extends JButton> matcher)
Finds a
JButton in this fixture's Container , that matches the specified search criteria. |
JButtonFixture |
button(String name)
Finds a
JButton in this fixture's Container , which name matches the specified one. |
JCheckBoxFixture |
checkBox()
Returns a
JCheckBox found in this fixture's Container . |
JCheckBoxFixture |
checkBox(GenericTypeMatcher<? extends JCheckBox> matcher)
Finds a
JCheckBox in this fixture's Container , that matches the specified search criteria. |
JCheckBoxFixture |
checkBox(String name)
Finds a
JCheckBox in this fixture's Container , which name matches the specified one. |
JComboBoxFixture |
comboBox()
Returns a
JComboBox found in this fixture's Container . |
JComboBoxFixture |
comboBox(GenericTypeMatcher<? extends JComboBox> matcher)
Finds a
JComboBox in this fixture's Container , that matches the specified search criteria. |
JComboBoxFixture |
comboBox(String name)
Finds a
JComboBox in this fixture's Container , which name matches the specified one. |
Timeout |
defaultDialogLookupTimeout() |
DialogFixture |
dialog()
Returns the only
Dialog currently available (if any). |
DialogFixture |
dialog(GenericTypeMatcher<? extends Dialog> matcher)
Finds a
Dialog that matches the specified search criteria. |
DialogFixture |
dialog(GenericTypeMatcher<? extends Dialog> matcher,
Timeout timeout)
Finds a
Dialog that matches the specified search criteria. |
DialogFixture |
dialog(String name)
Finds a
Dialog with a name matching the specified one. |
DialogFixture |
dialog(String name,
Timeout timeout)
Finds a
Dialog with a name matching the specified one. |
DialogFixture |
dialog(Timeout timeout)
Returns the only
Dialog currently available (if any). |
JFileChooserFixture |
fileChooser()
Returns the only
JFileChooser currently available (if any). |
JFileChooserFixture |
fileChooser(GenericTypeMatcher<? extends JFileChooser> matcher)
Finds a
JFileChooser that matches the specified search criteria. |
JFileChooserFixture |
fileChooser(GenericTypeMatcher<? extends JFileChooser> matcher,
Timeout timeout)
Finds a
JFileChooser that matches the specified search criteria. |
JFileChooserFixture |
fileChooser(String name)
Finds a
JFileChooser with a name matching the specified one. |
JFileChooserFixture |
fileChooser(String name,
Timeout timeout)
Finds a
JFileChooser with a name matching the specified one. |
JFileChooserFixture |
fileChooser(Timeout timeout)
Returns the only
JFileChooser currently available (if any). |
protected <T extends Component> |
find(GenericTypeMatcher<? extends T> matcher)
|
protected <T extends Component> |
findByName(String name,
Class<T> type)
Finds a component by name and type, contained in this fixture's
Container . |
protected <T extends Component> |
findByType(Class<T> type)
Finds a component by type, contained in this fixture's
Container . |
protected ComponentFinder |
finder() |
JInternalFrameFixture |
internalFrame()
Returns a
JInternalFrame found in this fixture's Container . |
JInternalFrameFixture |
internalFrame(GenericTypeMatcher<? extends JInternalFrame> matcher)
Finds a
JInternalFrame in this fixture's Container , that matches the specified search criteria. |
JInternalFrameFixture |
internalFrame(String name)
Finds a
JInternalFrame in this fixture's Container whose name matches the specified one. |
JLabelFixture |
label()
Returns a
JLabel found in this fixture's Container . |
JLabelFixture |
label(GenericTypeMatcher<? extends JLabel> matcher)
Finds a
JLabel in this fixture's Container , that matches the specified search criteria. |
JLabelFixture |
label(String name)
Finds a
JLabel in this fixture's Container , which name matches the specified one. |
JListFixture |
list()
Returns a
JList found in this fixture's Container . |
JListFixture |
list(GenericTypeMatcher<? extends JList> matcher)
Finds a
JList in this fixture's Container , that matches the specified search criteria. |
JListFixture |
list(String name)
Finds a
JList in this fixture's Container , which name matches the specified one. |
JMenuItemFixture |
menuItem(GenericTypeMatcher<? extends JMenuItem> matcher)
Finds a
JMenuItem , contained in this fixture's Container , that matches the specified search
criteria. |
JMenuItemFixture |
menuItem(String name)
Finds a
JMenuItem , contained in this fixture's Container , which name matches the specified one. |
JMenuItemFixture |
menuItemWithPath(String... path)
Finds a
JMenuItem in this fixture's Container , which path matches the given one. |
JOptionPaneFixture |
optionPane()
Returns the only
JOptionPane currently available (if any). |
JOptionPaneFixture |
optionPane(Timeout timeout)
Returns the only
JOptionPane currently available (if any). |
JPanelFixture |
panel()
Returns a
JPanel found in this fixture's Container . |
JPanelFixture |
panel(GenericTypeMatcher<? extends JPanel> matcher)
Finds a
JPanel in this fixture's Container , that matches the specified search criteria. |
JPanelFixture |
panel(String name)
Finds a
JPanel in this fixture's Container , which name matches the specified one. |
JProgressBarFixture |
progressBar()
Returns a
JProgressBar found in this fixture's Container . |
JProgressBarFixture |
progressBar(GenericTypeMatcher<? extends JProgressBar> matcher)
Finds a
JProgressBar in this fixture's Container , that matches the specified search criteria. |
JProgressBarFixture |
progressBar(String name)
Finds a
JProgressBar in this fixture's Container , which name matches the specified one. |
JRadioButtonFixture |
radioButton()
Returns a
JRadioButton found in this fixture's Container . |
JRadioButtonFixture |
radioButton(GenericTypeMatcher<? extends JRadioButton> matcher)
Finds a
JRadioButton in this fixture's Container , that matches the specified search criteria. |
JRadioButtonFixture |
radioButton(String name)
Finds a
JRadioButton in this fixture's Container , which name matches the specified one. |
JScrollBarFixture |
scrollBar()
Returns a
JScrollBar found in this fixture's Container . |
JScrollBarFixture |
scrollBar(GenericTypeMatcher<? extends JScrollBar> matcher)
Finds a
JScrollBar in this fixture's Container , that matches the specified search criteria. |
JScrollBarFixture |
scrollBar(String name)
Finds a
JScrollBar in this fixture's Container , which name matches the specified one. |
JScrollPaneFixture |
scrollPane()
Returns a
JScrollPane found in this fixture's Container . |
JScrollPaneFixture |
scrollPane(GenericTypeMatcher<? extends JScrollPane> matcher)
Finds a
JScrollPane in this fixture's Container , that matches the specified search criteria. |
JScrollPaneFixture |
scrollPane(String name)
Finds a
JScrollPane in this fixture's Container , which name matches the specified one. |
JSliderFixture |
slider()
Returns a
JSlider found in this fixture's Container . |
JSliderFixture |
slider(GenericTypeMatcher<? extends JSlider> matcher)
Finds a
JSlider in this fixture's Container , that matches the specified search criteria. |
JSliderFixture |
slider(String name)
Finds a
JSlider in this fixture's Container , which name matches the specified one. |
JSpinnerFixture |
spinner()
Returns a
JSpinner found in this fixture's Container . |
JSpinnerFixture |
spinner(GenericTypeMatcher<? extends JSpinner> matcher)
Finds a
JSpinner in this fixture's Container , that matches the specified search criteria. |
JSpinnerFixture |
spinner(String name)
Finds a
JSpinner in this fixture's Container , which name matches the specified one. |
JSplitPaneFixture |
splitPane()
Returns the
JSplitPane found in this fixture's Container . |
JSplitPaneFixture |
splitPane(GenericTypeMatcher<? extends JSplitPane> matcher)
Finds a
JSplitPane in this fixture's Container , that matches the specified search criteria. |
JSplitPaneFixture |
splitPane(String name)
Finds a
JSplitPane in this fixture's Container , which name matches the specified one. |
JTabbedPaneFixture |
tabbedPane()
Returns a
JTabbedPane found in this fixture's Container . |
JTabbedPaneFixture |
tabbedPane(GenericTypeMatcher<? extends JTabbedPane> matcher)
Finds a
JTabbedPane in this fixture's Container , that matches the specified search criteria. |
JTabbedPaneFixture |
tabbedPane(String name)
Finds a
JTabbedPane in this fixture's Container , which name matches the specified one. |
JTableFixture |
table()
Returns a
JTable found in this fixture's Container . |
JTableFixture |
table(GenericTypeMatcher<? extends JTable> matcher)
Finds a
JTable in this fixture's Container , that matches the specified search criteria. |
JTableFixture |
table(String name)
Finds a
JTable in this fixture's Container , which name matches the specified one. |
JTextComponentFixture |
textBox()
Returns a
JTextComponent found in this fixture's Container . |
JTextComponentFixture |
textBox(GenericTypeMatcher<? extends JTextComponent> matcher)
Finds a
JTextComponent in this fixture's Container managed by this fixture, that matches the
specified search criteria. |
JTextComponentFixture |
textBox(String name)
Finds a
JTextComponent in this fixture's Container managed by this fixture, which name matches the
specified one. |
JToggleButtonFixture |
toggleButton()
Returns a
JToggleButton found in this fixture's Container . |
JToggleButtonFixture |
toggleButton(GenericTypeMatcher<? extends JToggleButton> matcher)
Finds a
JToggleButton in this fixture's Container , that matches the specified search criteria. |
JToggleButtonFixture |
toggleButton(String name)
Finds a
JToggleButton in this fixture's Container , which name matches the specified one. |
JToolBarFixture |
toolBar()
Returns a
JToolBar found in this fixture's Container . |
JToolBarFixture |
toolBar(GenericTypeMatcher<? extends JToolBar> matcher)
Finds a
JToolBar in this fixture's Container , that matches the specified search criteria. |
JToolBarFixture |
toolBar(String name)
Finds a
JToolBar in this fixture's Container , which name matches the specified one. |
JTreeFixture |
tree()
Returns a
JTree found in this fixture's Container . |
JTreeFixture |
tree(GenericTypeMatcher<? extends JTree> matcher)
Finds a
JTree in this fixture's Container , that matches the specified search criteria. |
JTreeFixture |
tree(String name)
Finds a
JTree in this fixture's Container , which name matches the specified one. |
<T extends Component,F extends AbstractComponentFixture<?,T,?>> |
with(ComponentFixtureExtension<T,F> extension)
Returns a
AbstractComponentFixture managing a component inside this fixture's Container . |
background, click, click, click, createDriver, doubleClick, driver, drop, equals, focus, font, foreground, hashCode, isEnabled, myself, pressAndReleaseKey, pressAndReleaseKeys, pressKey, pressKeyWhileRunning, releaseKey, replaceDriverWith, requireDisabled, requireEnabled, requireEnabled, requireFocused, requireNotVisible, requireShowing, requireVisible, rightClick, robot, target, targetCastedTo
public AbstractContainerFixture(@Nonnull Class<S> selfType, @Nonnull Robot robot, @Nonnull Class<? extends C> type)
AbstractContainerFixture
.selfType
- the "self type."robot
- performs simulation of user events on a Container
.type
- the type of the Container
to find using the given Robot
.NullPointerException
- if robot
is null
.NullPointerException
- if type
is null
.ComponentLookupException
- if a matching component could not be found.ComponentLookupException
- if more than one matching component is found.ComponentFinder.findByType(Class)
public AbstractContainerFixture(@Nonnull Class<S> selfType, @Nonnull Robot robot, @Nullable String name, @Nonnull Class<? extends C> type)
AbstractContainerFixture
.selfType
- the "self type."robot
- performs simulation of user events on a Container
.name
- the name of the Container
to find using the given Robot
.type
- the type of the Container
to find using the given Robot
.NullPointerException
- if robot
is null
.NullPointerException
- if type
is null
.ComponentLookupException
- if a matching component could not be found.ComponentLookupException
- if more than one matching component is found.ComponentFinder.findByName(String, Class)
public AbstractContainerFixture(@Nonnull Class<S> selfType, @Nonnull Robot robot, @Nonnull C target)
AbstractContainerFixture
.selfType
- the "self type."robot
- performs simulation of user events on the given Container
.target
- the Container
to be.NullPointerException
- if robot
is null
.NullPointerException
- if target
is null
.@RunsInEDT @Nonnull public JButtonFixture button()
ComponentContainerFixture
JButton
found in this fixture's Container
.button
in interface ComponentContainerFixture
JButton
found.@RunsInEDT @Nonnull public JButtonFixture button(@Nonnull GenericTypeMatcher<? extends JButton> matcher)
ComponentContainerFixture
JButton
in this fixture's Container
, that matches the specified search criteria.button
in interface ComponentContainerFixture
matcher
- contains the search criteria for finding a JButton
.JButton
found.@RunsInEDT @Nonnull public JButtonFixture button(@Nullable String name)
ComponentContainerFixture
JButton
in this fixture's Container
, which name matches the specified one.button
in interface ComponentContainerFixture
name
- the name to match.JButton
found.@RunsInEDT @Nonnull public JCheckBoxFixture checkBox()
ComponentContainerFixture
JCheckBox
found in this fixture's Container
.checkBox
in interface ComponentContainerFixture
JCheckBox
found.@RunsInEDT @Nonnull public JCheckBoxFixture checkBox(@Nonnull GenericTypeMatcher<? extends JCheckBox> matcher)
ComponentContainerFixture
JCheckBox
in this fixture's Container
, that matches the specified search criteria.checkBox
in interface ComponentContainerFixture
matcher
- contains the search criteria for finding a JCheckBox
.JCheckBox
found.@RunsInEDT @Nonnull public JCheckBoxFixture checkBox(@Nullable String name)
ComponentContainerFixture
JCheckBox
in this fixture's Container
, which name matches the specified one.checkBox
in interface ComponentContainerFixture
name
- the name to match.JCheckBox
found.@RunsInEDT @Nonnull public JComboBoxFixture comboBox()
ComponentContainerFixture
JComboBox
found in this fixture's Container
.comboBox
in interface ComponentContainerFixture
JComboBox
found.@RunsInEDT @Nonnull public JComboBoxFixture comboBox(@Nonnull GenericTypeMatcher<? extends JComboBox> matcher)
ComponentContainerFixture
JComboBox
in this fixture's Container
, that matches the specified search criteria.comboBox
in interface ComponentContainerFixture
matcher
- contains the search criteria for finding a JComboBox
.JComboBox
found.@RunsInEDT @Nonnull public JComboBoxFixture comboBox(@Nullable String name)
ComponentContainerFixture
JComboBox
in this fixture's Container
, which name matches the specified one.comboBox
in interface ComponentContainerFixture
name
- the name to match.JComboBox
found.@RunsInEDT @Nonnull public DialogFixture dialog()
ComponentContainerFixture
Dialog
currently available (if any). This method uses the value defined in
ComponentContainerFixture.defaultDialogLookupTimeout()
as the default lookup timeout.dialog
in interface ComponentContainerFixture
Dialog
found.ComponentContainerFixture.dialog(Timeout)
@RunsInEDT @Nonnull public DialogFixture dialog(@Nonnull Timeout timeout)
ComponentContainerFixture
Dialog
currently available (if any).dialog
in interface ComponentContainerFixture
timeout
- the amount of time to wait for a Dialog
to be found.Dialog
found.@RunsInEDT @Nonnull public DialogFixture dialog(@Nonnull GenericTypeMatcher<? extends Dialog> matcher)
ComponentContainerFixture
Dialog
that matches the specified search criteria. This method uses the value defined in
ComponentContainerFixture.defaultDialogLookupTimeout()
as the default lookup timeout.dialog
in interface ComponentContainerFixture
matcher
- contains the search criteria for finding a Dialog
.Dialog
found.ComponentContainerFixture.dialog(GenericTypeMatcher, Timeout)
@RunsInEDT @Nonnull public DialogFixture dialog(@Nonnull GenericTypeMatcher<? extends Dialog> matcher, @Nonnull Timeout timeout)
ComponentContainerFixture
Dialog
that matches the specified search criteria.dialog
in interface ComponentContainerFixture
matcher
- contains the search criteria for finding a Dialog
.timeout
- the amount of time to wait for a Dialog
to be found.Dialog
found.@RunsInEDT @Nonnull public DialogFixture dialog(@Nullable String name)
ComponentContainerFixture
Dialog
with a name matching the specified one. This method uses the value defined in
ComponentContainerFixture.defaultDialogLookupTimeout()
as the default lookup timeout.dialog
in interface ComponentContainerFixture
name
- the name to match.Dialog
found.ComponentContainerFixture.dialog(String, Timeout)
@RunsInEDT @Nonnull public DialogFixture dialog(@Nullable String name, @Nonnull Timeout timeout)
ComponentContainerFixture
Dialog
with a name matching the specified one.dialog
in interface ComponentContainerFixture
name
- the name to match.timeout
- the amount of time to wait for a Dialog
to be found.Dialog
found.@RunsInEDT @Nonnull public JFileChooserFixture fileChooser()
ComponentContainerFixture
JFileChooser
currently available (if any). This method uses the value defined in
ComponentContainerFixture.defaultDialogLookupTimeout()
as the default lookup timeout.fileChooser
in interface ComponentContainerFixture
JFileChooser
found.ComponentContainerFixture.fileChooser(Timeout)
@RunsInEDT @Nonnull public JFileChooserFixture fileChooser(@Nonnull Timeout timeout)
ComponentContainerFixture
JFileChooser
currently available (if any).fileChooser
in interface ComponentContainerFixture
timeout
- the amount of time to wait for a JFileChooser
to be found.JFileChooser
found.@RunsInEDT @Nonnull public JFileChooserFixture fileChooser(@Nonnull GenericTypeMatcher<? extends JFileChooser> matcher)
ComponentContainerFixture
JFileChooser
that matches the specified search criteria. This method uses the value defined in
ComponentContainerFixture.defaultDialogLookupTimeout()
as the default lookup timeout.fileChooser
in interface ComponentContainerFixture
matcher
- contains the search criteria for finding a JFileChooser
.JFileChooser
found.ComponentContainerFixture.fileChooser(GenericTypeMatcher, Timeout)
@RunsInEDT @Nonnull public JFileChooserFixture fileChooser(@Nonnull GenericTypeMatcher<? extends JFileChooser> matcher, @Nonnull Timeout timeout)
ComponentContainerFixture
JFileChooser
that matches the specified search criteria.fileChooser
in interface ComponentContainerFixture
matcher
- contains the search criteria for finding a JFileChooser
.timeout
- the amount of time to wait for a JFileChooser
to be found.JFileChooser
found.@RunsInEDT @Nonnull public JFileChooserFixture fileChooser(@Nullable String name)
ComponentContainerFixture
JFileChooser
with a name matching the specified one. This method uses the value defined in
ComponentContainerFixture.defaultDialogLookupTimeout()
as the default lookup timeout.fileChooser
in interface ComponentContainerFixture
name
- the name to match.JFileChooser
found.ComponentContainerFixture.fileChooser(String, Timeout)
@RunsInEDT @Nonnull public JFileChooserFixture fileChooser(@Nullable String name, @Nonnull Timeout timeout)
ComponentContainerFixture
JFileChooser
with a name matching the specified one.fileChooser
in interface ComponentContainerFixture
name
- the name to match.timeout
- the amount of time to wait for a JFileChooser
to be found.JFileChooser
found.@RunsInEDT @Nonnull public JInternalFrameFixture internalFrame()
ComponentContainerFixture
JInternalFrame
found in this fixture's Container
.internalFrame
in interface ComponentContainerFixture
JInternalFrame
found.@RunsInEDT @Nonnull public JInternalFrameFixture internalFrame(@Nonnull GenericTypeMatcher<? extends JInternalFrame> matcher)
ComponentContainerFixture
JInternalFrame
in this fixture's Container
, that matches the specified search criteria.internalFrame
in interface ComponentContainerFixture
matcher
- contains the search criteria for finding a JInternalFrame
.JInternalFrame
found.@RunsInEDT @Nonnull public JInternalFrameFixture internalFrame(@Nullable String name)
ComponentContainerFixture
JInternalFrame
in this fixture's Container
whose name matches the specified one.internalFrame
in interface ComponentContainerFixture
name
- the name to match.JInternalFrame
found.@RunsInEDT @Nonnull public JLabelFixture label()
ComponentContainerFixture
JLabel
found in this fixture's Container
.label
in interface ComponentContainerFixture
JLabel
found.@RunsInEDT @Nonnull public JLabelFixture label(@Nonnull GenericTypeMatcher<? extends JLabel> matcher)
ComponentContainerFixture
JLabel
in this fixture's Container
, that matches the specified search criteria.label
in interface ComponentContainerFixture
matcher
- contains the search criteria for finding a JLabel
.JLabel
found.@RunsInEDT @Nonnull public JLabelFixture label(@Nullable String name)
ComponentContainerFixture
JLabel
in this fixture's Container
, which name matches the specified one.label
in interface ComponentContainerFixture
name
- the name to match.JLabel
found.@RunsInEDT @Nonnull public JListFixture list()
ComponentContainerFixture
JList
found in this fixture's Container
.list
in interface ComponentContainerFixture
JList
found.@RunsInEDT @Nonnull public JListFixture list(@Nonnull GenericTypeMatcher<? extends JList> matcher)
ComponentContainerFixture
JList
in this fixture's Container
, that matches the specified search criteria.list
in interface ComponentContainerFixture
matcher
- contains the search criteria for finding a JList
.JList
found.@RunsInEDT @Nonnull public JListFixture list(@Nullable String name)
ComponentContainerFixture
JList
in this fixture's Container
, which name matches the specified one.list
in interface ComponentContainerFixture
name
- the name to match.JList
found.@RunsInEDT @Nonnull public JMenuItemFixture menuItemWithPath(@Nonnull String... path)
ComponentContainerFixture
JMenuItem
in this fixture's Container
, which path matches the given one.
For example, if we are looking for the menu with text "New" contained under the menu with text "File", we can simply call
JMenuItemFixture menuItem = container.menuItemWithPath("File", "Menu");
menuItemWithPath
in interface ComponentContainerFixture
path
- the path of the menu to find.JMenuItem
found.@RunsInEDT @Nonnull public JMenuItemFixture menuItem(@Nullable String name)
ComponentContainerFixture
JMenuItem
, contained in this fixture's Container
, which name matches the specified one.menuItem
in interface ComponentContainerFixture
name
- the name to match.JMenuItem
found.@RunsInEDT @Nonnull public JMenuItemFixture menuItem(@Nonnull GenericTypeMatcher<? extends JMenuItem> matcher)
ComponentContainerFixture
JMenuItem
, contained in this fixture's Container
, that matches the specified search
criteria.menuItem
in interface ComponentContainerFixture
matcher
- contains the search criteria for finding a JMenuItem
.JMenuItem
found.@RunsInEDT @Nonnull public JOptionPaneFixture optionPane()
ComponentContainerFixture
JOptionPane
currently available (if any). This method uses the value defined in
ComponentContainerFixture.defaultDialogLookupTimeout()
as the default lookup timeout.optionPane
in interface ComponentContainerFixture
JOptionPane
found.ComponentContainerFixture.optionPane(Timeout)
@RunsInEDT @Nonnull public JOptionPaneFixture optionPane(@Nonnull Timeout timeout)
ComponentContainerFixture
JOptionPane
currently available (if any).optionPane
in interface ComponentContainerFixture
timeout
- the amount of time to wait for a JOptionPane
to be found.JOptionPane
found.@RunsInEDT @Nonnull public JPanelFixture panel()
ComponentContainerFixture
JPanel
found in this fixture's Container
.panel
in interface ComponentContainerFixture
JPanel
found.@RunsInEDT @Nonnull public JPanelFixture panel(@Nonnull GenericTypeMatcher<? extends JPanel> matcher)
ComponentContainerFixture
JPanel
in this fixture's Container
, that matches the specified search criteria.panel
in interface ComponentContainerFixture
matcher
- contains the search criteria for finding a JPanel
.JPanel
found.@RunsInEDT @Nonnull public JPanelFixture panel(@Nullable String name)
ComponentContainerFixture
JPanel
in this fixture's Container
, which name matches the specified one.panel
in interface ComponentContainerFixture
name
- the name to match.JPanel
found.@RunsInEDT @Nonnull public JProgressBarFixture progressBar()
ComponentContainerFixture
JProgressBar
found in this fixture's Container
.progressBar
in interface ComponentContainerFixture
JProgressBar
found.@RunsInEDT @Nonnull public JProgressBarFixture progressBar(@Nonnull GenericTypeMatcher<? extends JProgressBar> matcher)
ComponentContainerFixture
JProgressBar
in this fixture's Container
, that matches the specified search criteria.progressBar
in interface ComponentContainerFixture
matcher
- contains the search criteria for finding a JProgressBar
.JProgressBar
found.@RunsInEDT @Nonnull public JProgressBarFixture progressBar(@Nullable String name)
ComponentContainerFixture
JProgressBar
in this fixture's Container
, which name matches the specified one.progressBar
in interface ComponentContainerFixture
name
- the name to match.JProgressBar
found.@RunsInEDT @Nonnull public JRadioButtonFixture radioButton()
ComponentContainerFixture
JRadioButton
found in this fixture's Container
.radioButton
in interface ComponentContainerFixture
JRadioButton
found.@RunsInEDT @Nonnull public JRadioButtonFixture radioButton(@Nonnull GenericTypeMatcher<? extends JRadioButton> matcher)
ComponentContainerFixture
JRadioButton
in this fixture's Container
, that matches the specified search criteria.radioButton
in interface ComponentContainerFixture
matcher
- contains the search criteria for finding a JRadioButton
.JRadioButton
found.@RunsInEDT @Nonnull public JRadioButtonFixture radioButton(@Nullable String name)
ComponentContainerFixture
JRadioButton
in this fixture's Container
, which name matches the specified one.radioButton
in interface ComponentContainerFixture
name
- the name to match.JRadioButton
found.@RunsInEDT @Nonnull public JScrollBarFixture scrollBar()
ComponentContainerFixture
JScrollBar
found in this fixture's Container
.scrollBar
in interface ComponentContainerFixture
JScrollBar
found.@RunsInEDT @Nonnull public JScrollBarFixture scrollBar(@Nonnull GenericTypeMatcher<? extends JScrollBar> matcher)
ComponentContainerFixture
JScrollBar
in this fixture's Container
, that matches the specified search criteria.scrollBar
in interface ComponentContainerFixture
matcher
- contains the search criteria for finding a JScrollBar
.JScrollBar
found.@RunsInEDT @Nonnull public JScrollBarFixture scrollBar(@Nullable String name)
ComponentContainerFixture
JScrollBar
in this fixture's Container
, which name matches the specified one.scrollBar
in interface ComponentContainerFixture
name
- the name to match.JScrollBar
found.@RunsInEDT @Nonnull public JScrollPaneFixture scrollPane()
ComponentContainerFixture
JScrollPane
found in this fixture's Container
.scrollPane
in interface ComponentContainerFixture
JScrollPane
found.@RunsInEDT @Nonnull public JScrollPaneFixture scrollPane(@Nonnull GenericTypeMatcher<? extends JScrollPane> matcher)
ComponentContainerFixture
JScrollPane
in this fixture's Container
, that matches the specified search criteria.scrollPane
in interface ComponentContainerFixture
matcher
- contains the search criteria for finding a JScrollPane
.JScrollPane
found.@RunsInEDT @Nonnull public JScrollPaneFixture scrollPane(@Nullable String name)
ComponentContainerFixture
JScrollPane
in this fixture's Container
, which name matches the specified one.scrollPane
in interface ComponentContainerFixture
name
- the name to match.JScrollPane
found.@RunsInEDT @Nonnull public JSliderFixture slider()
ComponentContainerFixture
JSlider
found in this fixture's Container
.slider
in interface ComponentContainerFixture
JSlider
found.@RunsInEDT @Nonnull public JSliderFixture slider(@Nonnull GenericTypeMatcher<? extends JSlider> matcher)
ComponentContainerFixture
JSlider
in this fixture's Container
, that matches the specified search criteria.slider
in interface ComponentContainerFixture
matcher
- contains the search criteria for finding a JSlider
.JSlider
found.@RunsInEDT @Nonnull public JSliderFixture slider(@Nullable String name)
ComponentContainerFixture
JSlider
in this fixture's Container
, which name matches the specified one.slider
in interface ComponentContainerFixture
name
- the name to match.JSlider
found.@RunsInEDT @Nonnull public JSpinnerFixture spinner()
ComponentContainerFixture
JSpinner
found in this fixture's Container
.spinner
in interface ComponentContainerFixture
JSpinner
found.@RunsInEDT @Nonnull public JSpinnerFixture spinner(@Nonnull GenericTypeMatcher<? extends JSpinner> matcher)
ComponentContainerFixture
JSpinner
in this fixture's Container
, that matches the specified search criteria.spinner
in interface ComponentContainerFixture
matcher
- contains the search criteria for finding a JSpinner
.JSpinner
found.@RunsInEDT @Nonnull public JSpinnerFixture spinner(@Nullable String name)
ComponentContainerFixture
JSpinner
in this fixture's Container
, which name matches the specified one.spinner
in interface ComponentContainerFixture
name
- the name to match.JSpinner
found.@RunsInEDT @Nonnull public JSplitPaneFixture splitPane()
ComponentContainerFixture
JSplitPane
found in this fixture's Container
.splitPane
in interface ComponentContainerFixture
JSplitPane
found.@RunsInEDT @Nonnull public JSplitPaneFixture splitPane(@Nonnull GenericTypeMatcher<? extends JSplitPane> matcher)
ComponentContainerFixture
JSplitPane
in this fixture's Container
, that matches the specified search criteria.splitPane
in interface ComponentContainerFixture
matcher
- contains the search criteria for finding a JSplitPane
.JSplitPane
found.@RunsInEDT @Nonnull public JSplitPaneFixture splitPane(@Nullable String name)
ComponentContainerFixture
JSplitPane
in this fixture's Container
, which name matches the specified one.splitPane
in interface ComponentContainerFixture
name
- the name to match.JSplitPane
found.@RunsInEDT @Nonnull public JTabbedPaneFixture tabbedPane()
ComponentContainerFixture
JTabbedPane
found in this fixture's Container
.tabbedPane
in interface ComponentContainerFixture
JTabbedPane
found.@RunsInEDT @Nonnull public JTabbedPaneFixture tabbedPane(@Nonnull GenericTypeMatcher<? extends JTabbedPane> matcher)
ComponentContainerFixture
JTabbedPane
in this fixture's Container
, that matches the specified search criteria.tabbedPane
in interface ComponentContainerFixture
matcher
- contains the search criteria for finding a JTabbedPane
.JTabbedPane
found.@RunsInEDT @Nonnull public JTabbedPaneFixture tabbedPane(@Nullable String name)
ComponentContainerFixture
JTabbedPane
in this fixture's Container
, which name matches the specified one.tabbedPane
in interface ComponentContainerFixture
name
- the name to match.JTabbedPane
found.@RunsInEDT @Nonnull public JTableFixture table()
ComponentContainerFixture
JTable
found in this fixture's Container
.table
in interface ComponentContainerFixture
JTable
found.@RunsInEDT @Nonnull public JTableFixture table(@Nonnull GenericTypeMatcher<? extends JTable> matcher)
ComponentContainerFixture
JTable
in this fixture's Container
, that matches the specified search criteria.table
in interface ComponentContainerFixture
matcher
- contains the search criteria for finding a JTable
.JTable
found.@RunsInEDT @Nonnull public JTableFixture table(@Nullable String name)
ComponentContainerFixture
JTable
in this fixture's Container
, which name matches the specified one.table
in interface ComponentContainerFixture
name
- the name to match.JTable
found.@RunsInEDT @Nonnull public JTextComponentFixture textBox()
ComponentContainerFixture
JTextComponent
found in this fixture's Container
.textBox
in interface ComponentContainerFixture
JTextComponent
found.@RunsInEDT @Nonnull public JTextComponentFixture textBox(@Nonnull GenericTypeMatcher<? extends JTextComponent> matcher)
ComponentContainerFixture
JTextComponent
in this fixture's Container
managed by this fixture, that matches the
specified search criteria.textBox
in interface ComponentContainerFixture
matcher
- contains the search criteria for finding a JTextComponent
.JTextComponent
found.@RunsInEDT @Nonnull public JTextComponentFixture textBox(@Nullable String name)
ComponentContainerFixture
JTextComponent
in this fixture's Container
managed by this fixture, which name matches the
specified one.textBox
in interface ComponentContainerFixture
name
- the name to match.JTextComponent
found.@RunsInEDT @Nonnull public JToggleButtonFixture toggleButton()
ComponentContainerFixture
JToggleButton
found in this fixture's Container
.toggleButton
in interface ComponentContainerFixture
JToggleButton
found.@RunsInEDT @Nonnull public JToggleButtonFixture toggleButton(@Nonnull GenericTypeMatcher<? extends JToggleButton> matcher)
ComponentContainerFixture
JToggleButton
in this fixture's Container
, that matches the specified search criteria.toggleButton
in interface ComponentContainerFixture
matcher
- contains the search criteria for finding a JToggleButton
.JToggleButton
found.@RunsInEDT @Nonnull public JToggleButtonFixture toggleButton(@Nullable String name)
ComponentContainerFixture
JToggleButton
in this fixture's Container
, which name matches the specified one.toggleButton
in interface ComponentContainerFixture
name
- the name to match.JToggleButton
found.@RunsInEDT @Nonnull public JToolBarFixture toolBar()
ComponentContainerFixture
JToolBar
found in this fixture's Container
.toolBar
in interface ComponentContainerFixture
JToolBar
found.@RunsInEDT @Nonnull public JToolBarFixture toolBar(@Nonnull GenericTypeMatcher<? extends JToolBar> matcher)
ComponentContainerFixture
JToolBar
in this fixture's Container
, that matches the specified search criteria.toolBar
in interface ComponentContainerFixture
matcher
- contains the search criteria for finding a JToolBar
.JToolBar
found.@RunsInEDT @Nonnull public JToolBarFixture toolBar(@Nullable String name)
ComponentContainerFixture
JToolBar
in this fixture's Container
, which name matches the specified one.toolBar
in interface ComponentContainerFixture
name
- the name to match.JToolBar
found.@RunsInEDT @Nonnull public JTreeFixture tree()
ComponentContainerFixture
JTree
found in this fixture's Container
.tree
in interface ComponentContainerFixture
JTree
found.@RunsInEDT @Nonnull public JTreeFixture tree(@Nonnull GenericTypeMatcher<? extends JTree> matcher)
ComponentContainerFixture
JTree
in this fixture's Container
, that matches the specified search criteria.tree
in interface ComponentContainerFixture
matcher
- contains the search criteria for finding a JTree
.JTree
found.@RunsInEDT @Nonnull public JTreeFixture tree(@Nullable String name)
ComponentContainerFixture
JTree
in this fixture's Container
, which name matches the specified one.tree
in interface ComponentContainerFixture
name
- the name to match.JTree
found.@Nonnull protected final <T extends Component> T findByType(@Nonnull Class<T> type)
Container
.T
- the type of component to find.type
- the class for the type.ComponentLookupException
- if a matching component could not be found.ComponentLookupException
- if more than one matching component is found.@Nonnull protected final <T extends Component> T findByName(@Nullable String name, @Nonnull Class<T> type)
Container
.T
- the type of component to find.name
- the name of the component to find.type
- the class for the type.ComponentLookupException
- if a matching component could not be found.ComponentLookupException
- if more than one matching component is found.@Nonnull protected final <T extends Component> T find(@Nonnull GenericTypeMatcher<? extends T> matcher)
T
- the type of component to find.matcher
- the matcher to use to find the component.ComponentLookupException
- if a matching component could not be found.ComponentLookupException
- if more than one matching component is found.@RunsInEDT @Nonnull public <T extends Component,F extends AbstractComponentFixture<?,T,?>> F with(@Nonnull ComponentFixtureExtension<T,F> extension)
ComponentContainerFixture
AbstractComponentFixture
managing a component inside this fixture's Container
. This is an
extension method, to allow implementations of AbstractContainerFixture
handle custom GUI components.with
in interface ComponentContainerFixture
T
- the type of component to manage.F
- the type of fixture managing the component.extension
- the ComponentFixtureExtension
that creates the ComponentFixture
to return.ComponentFixture
managing a component inside this fixture's Container
.@Nonnull protected final ComponentFinder finder()
ComponentFinder
contained in this fixture's Robot
.@Nonnull public Timeout defaultDialogLookupTimeout()
defaultDialogLookupTimeout
in interface ComponentContainerFixture
Copyright © 2014–2020 AssertJ. All rights reserved.