public interface ComponentContainerFixture
Component
s in a Container
.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). |
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. |
<C extends Component,F extends AbstractComponentFixture<?,C,?>> |
with(ComponentFixtureExtension<C,F> extension)
Returns a
AbstractComponentFixture managing a component inside this fixture's Container . |
@RunsInEDT @Nonnull JButtonFixture button()
JButton
found in this fixture's Container
.JButton
found.ComponentLookupException
- if a JButton
could not be found.ComponentLookupException
- if more than one JButton
is found.@RunsInEDT @Nonnull JButtonFixture button(@Nonnull GenericTypeMatcher<? extends JButton> matcher)
JButton
in this fixture's Container
, that matches the specified search criteria.matcher
- contains the search criteria for finding a JButton
.JButton
found.ComponentLookupException
- if a JButton
that matches the given search
criteria could not be found.ComponentLookupException
- if more than one JButton
that matches the
given search criteria is found.@RunsInEDT @Nonnull JButtonFixture button(@Nullable String name)
JButton
in this fixture's Container
, which name matches the specified one.name
- the name to match.JButton
found.ComponentLookupException
- if a JButton
having a matching name could not
be found.ComponentLookupException
- if more than one JButton
having a matching
name is found.@RunsInEDT @Nonnull JCheckBoxFixture checkBox()
JCheckBox
found in this fixture's Container
.JCheckBox
found.ComponentLookupException
- if a JCheckBox
could not be found.ComponentLookupException
- if more than one JCheckBox
is found.@RunsInEDT @Nonnull JCheckBoxFixture checkBox(@Nonnull GenericTypeMatcher<? extends JCheckBox> matcher)
JCheckBox
in this fixture's Container
, that matches the specified search criteria.matcher
- contains the search criteria for finding a JCheckBox
.JCheckBox
found.ComponentLookupException
- if a JCheckBox
that matches the given search
criteria could not be found.ComponentLookupException
- if more than one JCheckBox
that matches the
given search criteria is
found.@RunsInEDT @Nonnull JCheckBoxFixture checkBox(@Nullable String name)
JCheckBox
in this fixture's Container
, which name matches the specified one.name
- the name to match.JCheckBox
found.ComponentLookupException
- if a JCheckBox
having a matching name could
not be found.@RunsInEDT @Nonnull JComboBoxFixture comboBox()
JComboBox
found in this fixture's Container
.JComboBox
found.ComponentLookupException
- if a JComboBox
could not be found.ComponentLookupException
- if more than one JComboBox
is found.@RunsInEDT @Nonnull JComboBoxFixture comboBox(@Nonnull GenericTypeMatcher<? extends JComboBox> matcher)
JComboBox
in this fixture's Container
, that matches the specified search criteria.matcher
- contains the search criteria for finding a JComboBox
.JComboBox
found.ComponentLookupException
- if a JComboBox
that matches the given search
criteria could not be found.ComponentLookupException
- if more than one JComboBox
that matches the
given search criteria is
found.@RunsInEDT @Nonnull JComboBoxFixture comboBox(@Nullable String name)
JComboBox
in this fixture's Container
, which name matches the specified one.name
- the name to match.JComboBox
found.ComponentLookupException
- if a JComboBox
having a matching name could
not be found.ComponentLookupException
- if more than one JComboBox
having a matching
name is found.@RunsInEDT @Nonnull DialogFixture dialog()
Dialog
currently available (if any). This method uses the value defined in
defaultDialogLookupTimeout()
as the default lookup timeout.Dialog
found.WaitTimedOutError
- if a Dialog
could not be found.dialog(Timeout)
@RunsInEDT @Nonnull DialogFixture dialog(@Nonnull Timeout timeout)
Dialog
currently available (if any).timeout
- the amount of time to wait for a Dialog
to be found.Dialog
found.WaitTimedOutError
- if a Dialog
could not be found.@RunsInEDT @Nonnull DialogFixture dialog(@Nonnull GenericTypeMatcher<? extends Dialog> matcher)
Dialog
that matches the specified search criteria. This method uses the value defined in
defaultDialogLookupTimeout()
as the default lookup timeout.matcher
- contains the search criteria for finding a Dialog
.Dialog
found.WaitTimedOutError
- if a Dialog
that matches the given search criteria
could not be found.dialog(GenericTypeMatcher, Timeout)
@RunsInEDT @Nonnull DialogFixture dialog(@Nonnull GenericTypeMatcher<? extends Dialog> matcher, @Nonnull Timeout timeout)
Dialog
that matches the specified search criteria.matcher
- contains the search criteria for finding a Dialog
.timeout
- the amount of time to wait for a Dialog
to be found.Dialog
found.WaitTimedOutError
- if a Dialog
that matches the given search criteria
could not be found.@RunsInEDT @Nonnull DialogFixture dialog(@Nullable String name)
Dialog
with a name matching the specified one. This method uses the value defined in
defaultDialogLookupTimeout()
as the default lookup timeout.name
- the name to match.Dialog
found.WaitTimedOutError
- if a Dialog
that a matching name could not be found.dialog(String, Timeout)
@RunsInEDT @Nonnull DialogFixture dialog(@Nullable String name, @Nonnull Timeout timeout)
Dialog
with a name matching the specified one.name
- the name to match.timeout
- the amount of time to wait for a Dialog
to be found.Dialog
found.WaitTimedOutError
- if a Dialog
that a matching name could not be found.@RunsInEDT @Nonnull JFileChooserFixture fileChooser()
JFileChooser
currently available (if any). This method uses the value defined in
defaultDialogLookupTimeout()
as the default lookup timeout.JFileChooser
found.WaitTimedOutError
- if a JFileChooser
could not be found.fileChooser(Timeout)
@RunsInEDT @Nonnull JFileChooserFixture fileChooser(@Nonnull Timeout timeout)
JFileChooser
currently available (if any).timeout
- the amount of time to wait for a JFileChooser
to be found.JFileChooser
found.WaitTimedOutError
- if a JFileChooser
could not be found.@RunsInEDT @Nonnull JFileChooserFixture fileChooser(@Nonnull GenericTypeMatcher<? extends JFileChooser> matcher)
JFileChooser
that matches the specified search criteria. This method uses the value defined in
defaultDialogLookupTimeout()
as the default lookup timeout.matcher
- contains the search criteria for finding a JFileChooser
.JFileChooser
found.WaitTimedOutError
- if a JFileChooser
could not be found.fileChooser(GenericTypeMatcher, Timeout)
@RunsInEDT @Nonnull JFileChooserFixture fileChooser(@Nonnull GenericTypeMatcher<? extends JFileChooser> matcher, @Nonnull Timeout timeout)
JFileChooser
that matches the specified search criteria.matcher
- contains the search criteria for finding a JFileChooser
.timeout
- the amount of time to wait for a JFileChooser
to be found.JFileChooser
found.WaitTimedOutError
- if a JFileChooser
could not be found.@RunsInEDT @Nonnull JFileChooserFixture fileChooser(@Nullable String name)
JFileChooser
with a name matching the specified one. This method uses the value defined in
defaultDialogLookupTimeout()
as the default lookup timeout.name
- the name to match.JFileChooser
found.WaitTimedOutError
- if a JFileChooser
could not be found.fileChooser(String, Timeout)
@RunsInEDT @Nonnull JFileChooserFixture fileChooser(@Nullable String name, @Nonnull Timeout timeout)
JFileChooser
with a name matching the specified one.name
- the name to match.timeout
- the amount of time to wait for a JFileChooser
to be found.JFileChooser
found.WaitTimedOutError
- if a JFileChooser
could not be found.@RunsInEDT @Nonnull JInternalFrameFixture internalFrame()
JInternalFrame
found in this fixture's Container
.JInternalFrame
found.ComponentLookupException
- if a JInternalFrame
could not be found.ComponentLookupException
- if more than one JInternalFrame
is found.@RunsInEDT @Nonnull JInternalFrameFixture internalFrame(@Nonnull GenericTypeMatcher<? extends JInternalFrame> matcher)
JInternalFrame
in this fixture's Container
, that matches the specified search criteria.matcher
- contains the search criteria for finding a JInternalFrame
.JInternalFrame
found.ComponentLookupException
- if a JInternalFrame
that matches the given
search criteria could not be found.ComponentLookupException
- if more than one JInternalFrame
that matches
the given search criteria is found.@RunsInEDT @Nonnull JInternalFrameFixture internalFrame(@Nullable String name)
JInternalFrame
in this fixture's Container
whose name matches the specified one.name
- the name to match.JInternalFrame
found.ComponentLookupException
- if a JInternalFrame
having a matching name
could not be found.ComponentLookupException
- if more than one JInternalFrame
having a
matching name is found.@RunsInEDT @Nonnull JLabelFixture label()
JLabel
found in this fixture's Container
.JLabel
found.ComponentLookupException
- if a JLabel
could not be found.ComponentLookupException
- if more than one JLabel
is found.@RunsInEDT @Nonnull JLabelFixture label(@Nonnull GenericTypeMatcher<? extends JLabel> matcher)
JLabel
in this fixture's Container
, that matches the specified search criteria.matcher
- contains the search criteria for finding a JLabel
.JLabel
found.ComponentLookupException
- if a JLabel
that matches the given search
criteria could not be found.ComponentLookupException
- if more than one JLabel
that matches the given
search criteria is found.@RunsInEDT @Nonnull JLabelFixture label(@Nullable String name)
JLabel
in this fixture's Container
, which name matches the specified one.name
- the name to match.JLabel
found.ComponentLookupException
- if a JLabel
having a matching name could not
be found.ComponentLookupException
- if more than one JLabel
having a matching name
could is found.@RunsInEDT @Nonnull JListFixture list()
JList
found in this fixture's Container
.JList
found.ComponentLookupException
- if a JList
could not be found.ComponentLookupException
- if more than one JList
is found.@RunsInEDT @Nonnull JListFixture list(@Nonnull GenericTypeMatcher<? extends JList> matcher)
JList
in this fixture's Container
, that matches the specified search criteria.matcher
- contains the search criteria for finding a JList
.JList
found.ComponentLookupException
- if a JList
that matches the given search
criteria could not be found.ComponentLookupException
- if more than one JList
that matches the given
search criteria is found.@RunsInEDT @Nonnull JListFixture list(@Nullable String name)
JList
in this fixture's Container
, which name matches the specified one.name
- the name to match.JList
found.ComponentLookupException
- if a JList
having a matching name could not be
found.ComponentLookupException
- if more than one JList
having a matching name
is found.@RunsInEDT @Nonnull JMenuItemFixture menuItemWithPath(@Nonnull String... path)
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");
path
- the path of the menu to find.JMenuItem
found.ComponentLookupException
- if a JMenuItem
under the given path could not
be found.AssertionError
- if the Component
found under the given path is not a JMenuItem
.@RunsInEDT @Nonnull JMenuItemFixture menuItem(@Nullable String name)
JMenuItem
, contained in this fixture's Container
, which name matches the specified one.name
- the name to match.JMenuItem
found.ComponentLookupException
- if a JMenuItem
having a matching name could
not be found.ComponentLookupException
- if more than one JMenuItem
having a matching
name is found.@RunsInEDT @Nonnull JMenuItemFixture menuItem(@Nonnull GenericTypeMatcher<? extends JMenuItem> matcher)
JMenuItem
, contained in this fixture's Container
, that matches the specified search
criteria.matcher
- contains the search criteria for finding a JMenuItem
.JMenuItem
found.ComponentLookupException
- if a JMenuItem
that matches the given search
criteria could not be found.ComponentLookupException
- if more than one JMenuItem
that matches the
given search criteria is
found.@RunsInEDT @Nonnull JOptionPaneFixture optionPane()
JOptionPane
currently available (if any). This method uses the value defined in
defaultDialogLookupTimeout()
as the default lookup timeout.JOptionPane
found.WaitTimedOutError
- if a JOptionPane
could not be found.optionPane(Timeout)
@RunsInEDT @Nonnull JOptionPaneFixture optionPane(@Nonnull Timeout timeout)
JOptionPane
currently available (if any).timeout
- the amount of time to wait for a JOptionPane
to be found.JOptionPane
found.WaitTimedOutError
- if a JOptionPane
could not be found.@RunsInEDT @Nonnull JPanelFixture panel()
JPanel
found in this fixture's Container
.JPanel
found.ComponentLookupException
- if a JPanel
could not be found.ComponentLookupException
- if more than one JPanel
is found.@RunsInEDT @Nonnull JPanelFixture panel(@Nonnull GenericTypeMatcher<? extends JPanel> matcher)
JPanel
in this fixture's Container
, that matches the specified search criteria.matcher
- contains the search criteria for finding a JPanel
.JPanel
found.ComponentLookupException
- if a JPanel
that matches the given search
criteria could not be found.ComponentLookupException
- if more than one JPanel
that matches the given
search criteria is found.@RunsInEDT @Nonnull JPanelFixture panel(@Nullable String name)
JPanel
in this fixture's Container
, which name matches the specified one.name
- the name to match.JPanel
found.ComponentLookupException
- if a JPanel
having a matching name could not
be found.@RunsInEDT @Nonnull JProgressBarFixture progressBar()
JProgressBar
found in this fixture's Container
.JProgressBar
found.ComponentLookupException
- if a JProgressBar
could not be found.ComponentLookupException
- if more than one JProgressBar
is found.@RunsInEDT @Nonnull JProgressBarFixture progressBar(@Nonnull GenericTypeMatcher<? extends JProgressBar> matcher)
JProgressBar
in this fixture's Container
, that matches the specified search criteria.matcher
- contains the search criteria for finding a JProgressBar
.JProgressBar
found.ComponentLookupException
- if a JProgressBar
that matches the given
search criteria could not be
found.ComponentLookupException
- if more than one JProgressBar
that matches the
given search criteria is
found.@RunsInEDT @Nonnull JProgressBarFixture progressBar(@Nullable String name)
JProgressBar
in this fixture's Container
, which name matches the specified one.name
- the name to match.JProgressBar
found.ComponentLookupException
- if a JProgressBar
having a matching name could
not be found.@RunsInEDT @Nonnull JRadioButtonFixture radioButton()
JRadioButton
found in this fixture's Container
.JRadioButton
found.ComponentLookupException
- if a JRadioButton
could not be found.ComponentLookupException
- if more than one JRadioButton
is found.@RunsInEDT @Nonnull JRadioButtonFixture radioButton(@Nonnull GenericTypeMatcher<? extends JRadioButton> matcher)
JRadioButton
in this fixture's Container
, that matches the specified search criteria.matcher
- contains the search criteria for finding a JRadioButton
.JRadioButton
found.ComponentLookupException
- if a JRadioButton
that matches the given
search criteria could not be
found.ComponentLookupException
- if more than one JRadioButton
that matches the
given search criteria is
found.@RunsInEDT @Nonnull JRadioButtonFixture radioButton(@Nullable String name)
JRadioButton
in this fixture's Container
, which name matches the specified one.name
- the name to match.JRadioButton
found.ComponentLookupException
- if a JRadioButton
having a matching name could
not be found.ComponentLookupException
- if more than one JRadioButton
having a
matching name is found.@RunsInEDT @Nonnull JScrollBarFixture scrollBar()
JScrollBar
found in this fixture's Container
.JScrollBar
found.ComponentLookupException
- if a JScrollBar
could not be found.ComponentLookupException
- if more than one JScrollBar
is found.@RunsInEDT @Nonnull JScrollBarFixture scrollBar(@Nonnull GenericTypeMatcher<? extends JScrollBar> matcher)
JScrollBar
in this fixture's Container
, that matches the specified search criteria.matcher
- contains the search criteria for finding a JScrollBar
.JScrollBar
found.ComponentLookupException
- if a JScrollBar
that matches the given search
criteria could not be found.ComponentLookupException
- if more than one JScrollBar
that matches the
given search criteria is
found.@RunsInEDT @Nonnull JScrollBarFixture scrollBar(@Nullable String name)
JScrollBar
in this fixture's Container
, which name matches the specified one.name
- the name to match.JScrollBar
found.ComponentLookupException
- if a JScrollBar
having a matching name could
not be found.ComponentLookupException
- if more than one JScrollBar
having a matching
name is found.@RunsInEDT @Nonnull JScrollPaneFixture scrollPane()
JScrollPane
found in this fixture's Container
.JScrollPane
found.ComponentLookupException
- if a JScrollPane
could not be found.ComponentLookupException
- if more than one JScrollPane
is found.@RunsInEDT @Nonnull JScrollPaneFixture scrollPane(@Nonnull GenericTypeMatcher<? extends JScrollPane> matcher)
JScrollPane
in this fixture's Container
, that matches the specified search criteria.matcher
- contains the search criteria for finding a JScrollPane
.JScrollPane
found.ComponentLookupException
- if a JScrollPane
that matches the given search
criteria could not be
found.ComponentLookupException
- if more than one JScrollPane
that matches the
given search criteria is
found.@RunsInEDT @Nonnull JScrollPaneFixture scrollPane(@Nullable String name)
JScrollPane
in this fixture's Container
, which name matches the specified one.name
- the name to match.JScrollPane
found.ComponentLookupException
- if a JScrollPane
having a matching name could
not be found.ComponentLookupException
- if more than one JScrollPane
having a matching
name is found.@RunsInEDT @Nonnull JSliderFixture slider()
JSlider
found in this fixture's Container
.JSlider
found.ComponentLookupException
- if a JSlider
could not be found.ComponentLookupException
- if more than one JSlider
is found.@RunsInEDT @Nonnull JSliderFixture slider(@Nonnull GenericTypeMatcher<? extends JSlider> matcher)
JSlider
in this fixture's Container
, that matches the specified search criteria.matcher
- contains the search criteria for finding a JSlider
.JSlider
found.ComponentLookupException
- if a JSlider
that matches the given search
criteria could not be found.ComponentLookupException
- if more than one JSlider
that matches the
given search criteria is found.@RunsInEDT @Nonnull JSliderFixture slider(@Nullable String name)
JSlider
in this fixture's Container
, which name matches the specified one.name
- the name to match.JSlider
found.ComponentLookupException
- if a JSlider
having a matching name could not
be found.ComponentLookupException
- if more than one JSlider
having a matching
name is found.@RunsInEDT @Nonnull JSpinnerFixture spinner()
JSpinner
found in this fixture's Container
.JSpinner
found.ComponentLookupException
- if a JSpinner
could not be found.ComponentLookupException
- if more than one JSpinner
is found.@RunsInEDT @Nonnull JSpinnerFixture spinner(@Nonnull GenericTypeMatcher<? extends JSpinner> matcher)
JSpinner
in this fixture's Container
, that matches the specified search criteria.matcher
- contains the search criteria for finding a JSpinner
.JSpinner
found.ComponentLookupException
- if a JSpinner
that matches the given search
criteria could not be found.ComponentLookupException
- if more than one JSpinner
that matches the
given search criteria is found.@RunsInEDT @Nonnull JSpinnerFixture spinner(@Nullable String name)
JSpinner
in this fixture's Container
, which name matches the specified one.name
- the name to match.JSpinner
found.ComponentLookupException
- if a JSpinner
having a matching name could not
be found.ComponentLookupException
- if more than one JSpinner
having a matching
name is found.@RunsInEDT @Nonnull JSplitPaneFixture splitPane()
JSplitPane
found in this fixture's Container
.JSplitPane
found.ComponentLookupException
- if a JSplitPane
could not be found.ComponentLookupException
- if more than one JSplitPane
is found.@RunsInEDT @Nonnull JSplitPaneFixture splitPane(@Nonnull GenericTypeMatcher<? extends JSplitPane> matcher)
JSplitPane
in this fixture's Container
, that matches the specified search criteria.matcher
- contains the search criteria for finding a JSplitPane
.JSplitPane
found.ComponentLookupException
- if a JSplitPane
that matches the given search
criteria could not be found.ComponentLookupException
- if more than one JSplitPane
that matches the
given search criteria is
found.@RunsInEDT @Nonnull JSplitPaneFixture splitPane(@Nullable String name)
JSplitPane
in this fixture's Container
, which name matches the specified one.name
- the name to match.JSplitPane
found.ComponentLookupException
- if a JSplitPane
having a matching name could
not be found.ComponentLookupException
- if more than one JSplitPane
having a matching
name is found.@RunsInEDT @Nonnull JTabbedPaneFixture tabbedPane()
JTabbedPane
found in this fixture's Container
.JTabbedPane
found.ComponentLookupException
- if a JTabbedPane
could not be found.ComponentLookupException
- if more than one JTabbedPane
is found.@RunsInEDT @Nonnull JTabbedPaneFixture tabbedPane(@Nonnull GenericTypeMatcher<? extends JTabbedPane> matcher)
JTabbedPane
in this fixture's Container
, that matches the specified search criteria.matcher
- contains the search criteria for finding a JTabbedPane
.JTabbedPane
found.ComponentLookupException
- if a JTabbedPane
that matches the given search
criteria could not be
found.ComponentLookupException
- if more than one JTabbedPane
that matches the
given search criteria is
found.@RunsInEDT @Nonnull JTabbedPaneFixture tabbedPane(@Nullable String name)
JTabbedPane
in this fixture's Container
, which name matches the specified one.name
- the name to match.JTabbedPane
found.ComponentLookupException
- if a JTabbedPane
having a matching name could
not be found.ComponentLookupException
- if more than one JTabbedPane
having a matching
name is found.@RunsInEDT @Nonnull JTableFixture table()
JTable
found in this fixture's Container
.JTable
found.ComponentLookupException
- if a JTable
having a matching name could not
be found.ComponentLookupException
- if more than one JTable
having a matching name
is found.@RunsInEDT @Nonnull JTableFixture table(@Nonnull GenericTypeMatcher<? extends JTable> matcher)
JTable
in this fixture's Container
, that matches the specified search criteria.matcher
- contains the search criteria for finding a JTable
.JTable
found.ComponentLookupException
- if a JTable
that matches the given search
criteria could not be found.ComponentLookupException
- if more than one JTable
that matches the given
search criteria is found.@RunsInEDT @Nonnull JTableFixture table(@Nullable String name)
JTable
in this fixture's Container
, which name matches the specified one.name
- the name to match.JTable
found.ComponentLookupException
- if a JTable
having a matching name could not
be found.ComponentLookupException
- if more than one JTable
having a matching name
is found.@RunsInEDT @Nonnull JTextComponentFixture textBox()
JTextComponent
found in this fixture's Container
.JTextComponent
found.ComponentLookupException
- if a JTextComponent
having a matching name
could not be found.ComponentLookupException
- if more than one JTextComponent
having a
matching name is found.@RunsInEDT @Nonnull JTextComponentFixture textBox(@Nonnull GenericTypeMatcher<? extends JTextComponent> matcher)
JTextComponent
in this fixture's Container
managed by this fixture, that matches the
specified search criteria.matcher
- contains the search criteria for finding a JTextComponent
.JTextComponent
found.ComponentLookupException
- if a JTextComponent
that matches the given
search criteria could not be
found.ComponentLookupException
- if more than one JTextComponent
that matches
the given search criteria is
found.JTextComponentFixture textBox(String name)
JTextComponent
in this fixture's Container
managed by this fixture, which name matches the
specified one.name
- the name to match.JTextComponent
found.ComponentLookupException
- if a JTextComponent
having a matching name
could not be found.ComponentLookupException
- if more than one JTextComponent
having a
matching name is found.@RunsInEDT @Nonnull JToggleButtonFixture toggleButton()
JToggleButton
found in this fixture's Container
.JToggleButton
found.ComponentLookupException
- if a JToggleButton
could not be found.ComponentLookupException
- if more than one JToggleButton
is found.@RunsInEDT @Nonnull JToggleButtonFixture toggleButton(@Nonnull GenericTypeMatcher<? extends JToggleButton> matcher)
JToggleButton
in this fixture's Container
, that matches the specified search criteria.matcher
- contains the search criteria for finding a JToggleButton
.JToggleButton
found.ComponentLookupException
- if a JToggleButton
that matches the given
search criteria could not be
found.ComponentLookupException
- if more than one JToggleButton
that matches
the given search criteria is
found.@RunsInEDT @Nonnull JToggleButtonFixture toggleButton(@Nullable String name)
JToggleButton
in this fixture's Container
, which name matches the specified one.name
- the name to match.JToggleButton
found.ComponentLookupException
- if a JToggleButton
having a matching name
could not be found.ComponentLookupException
- if more than one JToggleButton
having a
matching name is found.@RunsInEDT @Nonnull JToolBarFixture toolBar()
JToolBar
found in this fixture's Container
.JToolBar
found.ComponentLookupException
- if a JToolBar
having a matching name could not
be found.ComponentLookupException
- if more than one JToolBar
having a matching
name could is found.@RunsInEDT @Nonnull JToolBarFixture toolBar(@Nonnull GenericTypeMatcher<? extends JToolBar> matcher)
JToolBar
in this fixture's Container
, that matches the specified search criteria.matcher
- contains the search criteria for finding a JToolBar
.JToolBar
found.ComponentLookupException
- if a JToolBar
that matches the given search
criteria could not be found.ComponentLookupException
- if more than one JToolBar
that matches the
given search criteria is found.@RunsInEDT @Nonnull JToolBarFixture toolBar(@Nullable String name)
JToolBar
in this fixture's Container
, which name matches the specified one.name
- the name to match.JToolBar
found.ComponentLookupException
- if a JToolBar
having a matching name could not
be found.ComponentLookupException
- if more than one JToolBar
having a matching
name is found.@RunsInEDT @Nonnull JTreeFixture tree()
JTree
found in this fixture's Container
.JTree
found.ComponentLookupException
- if a JTree
having a matching name could not be
found.ComponentLookupException
- if more than one JTree
having a matching name
is found.@RunsInEDT @Nonnull JTreeFixture tree(@Nonnull GenericTypeMatcher<? extends JTree> matcher)
JTree
in this fixture's Container
, that matches the specified search criteria.matcher
- contains the search criteria for finding a JTree
.JTree
found.ComponentLookupException
- if a JTree
that matches the given search
criteria could not be found.ComponentLookupException
- if more than one JTree
that matches the given
search criteria is found.@RunsInEDT @Nonnull JTreeFixture tree(@Nullable String name)
JTree
in this fixture's Container
, which name matches the specified one.name
- the name to match.JTree
found.ComponentLookupException
- if a JTree
having a matching name could not be
found.ComponentLookupException
- if more than one JTree
having a matching name
is found.@RunsInEDT @Nonnull <C extends Component,F extends AbstractComponentFixture<?,C,?>> F with(@Nonnull ComponentFixtureExtension<C,F> extension)
AbstractComponentFixture
managing a component inside this fixture's Container
. This is an
extension method, to allow implementations of AbstractContainerFixture
handle custom GUI components.C
- 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
.Copyright © 2014–2019 AssertJ. All rights reserved.