Package org.fest.swing.fixture
Interface ComponentContainerFixture
- All Known Implementing Classes:
ContainerFixture
,DialogFixture
,FrameFixture
,JInternalFrameFixture
,JOptionPaneFixture
,JPanelFixture
,JToolBarFixture
,WindowFixture
public interface ComponentContainerFixture
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Timeout
The timeout to use when looking for a dialog. -
Method Summary
Modifier and TypeMethodDescriptionbutton()
button
(GenericTypeMatcher<? extends JButton> matcher) checkBox()
checkBox
(GenericTypeMatcher<? extends JCheckBox> matcher) comboBox()
comboBox
(GenericTypeMatcher<? extends JComboBox> matcher) dialog()
Returns the only
currently available (if any.) This method uses the value defined inDialog
as the default lookup timeout.DEFAULT_DIALOG_LOOKUP_TIMEOUT
Finds a
with a name matching the specified one.Dialog
Finds a
with a name matching the specified one.Dialog
dialog
(GenericTypeMatcher<? extends Dialog> matcher) Finds a
that matches the specified search criteria.Dialog
dialog
(GenericTypeMatcher<? extends Dialog> matcher, Timeout timeout) Finds a
that matches the specified search criteria.Dialog
Returns the only
currently available (if any.)Dialog
Returns the only
currently available (if any.) This method uses the value defined inJFileChooser
as the default lookup timeout.DEFAULT_DIALOG_LOOKUP_TIMEOUT
fileChooser
(String name) Finds a
with a name matching the specified one.JFileChooser
fileChooser
(String name, Timeout timeout) Finds a
with a name matching the specified one.JFileChooser
fileChooser
(GenericTypeMatcher<? extends JFileChooser> matcher) Finds a
that matches the specified search criteria.JFileChooser
fileChooser
(GenericTypeMatcher<? extends JFileChooser> matcher, Timeout timeout) Finds a
that matches the specified search criteria.JFileChooser
fileChooser
(Timeout timeout) Returns the only
currently available (if any.)JFileChooser
label()
label
(GenericTypeMatcher<? extends JLabel> matcher) list()
list
(GenericTypeMatcher<? extends JList> matcher) menuItem
(GenericTypeMatcher<? extends JMenuItem> matcher) menuItemWithPath
(String... path) Returns the only
currently available (if any.) This method uses the value defined inJOptionPane
as the default lookup timeout.DEFAULT_DIALOG_LOOKUP_TIMEOUT
optionPane
(Timeout timeout) Returns the only
currently available (if any.)JOptionPane
panel()
panel
(GenericTypeMatcher<? extends JPanel> matcher) Returns a
found in this fixture'sJProgressBar
.Container
progressBar
(String name) Finds a
in this fixture'sJProgressBar
, which name matches the specified one.Container
progressBar
(GenericTypeMatcher<? extends JProgressBar> matcher) Finds a
in this fixture'sJProgressBar
, that matches the specified search criteria.Container
Returns a
found in this fixture'sJRadioButton
.Container
radioButton
(String name) Finds a
in this fixture'sJRadioButton
, which name matches the specified one.Container
radioButton
(GenericTypeMatcher<? extends JRadioButton> matcher) Finds a
in this fixture'sJRadioButton
, that matches the specified search criteria.Container
Returns a
found in this fixture'sJScrollBar
.Container
Finds a
in this fixture'sJScrollBar
, which name matches the specified one.Container
scrollBar
(GenericTypeMatcher<? extends JScrollBar> matcher) Finds a
in this fixture'sJScrollBar
, that matches the specified search criteria.Container
Returns a
found in this fixture'sJScrollPane
.Container
scrollPane
(String name) Finds a
in this fixture'sJScrollPane
, which name matches the specified one.Container
scrollPane
(GenericTypeMatcher<? extends JScrollPane> matcher) Finds a
in this fixture'sJScrollPane
, that matches the specified search criteria.Container
slider()
slider
(GenericTypeMatcher<? extends JSlider> matcher) spinner()
spinner
(GenericTypeMatcher<? extends JSpinner> matcher) Returns the
found in this fixture'sJSplitPane
.Container
Finds a
in this fixture'sJSplitPane
, which name matches the specified one.Container
splitPane
(GenericTypeMatcher<? extends JSplitPane> matcher) Finds a
in this fixture'sJSplitPane
, that matches the specified search criteria.Container
Returns a
found in this fixture'sJTabbedPane
.Container
tabbedPane
(String name) Finds a
in this fixture'sJTabbedPane
, which name matches the specified one.Container
tabbedPane
(GenericTypeMatcher<? extends JTabbedPane> matcher) Finds a
in this fixture'sJTabbedPane
, that matches the specified search criteria.Container
table()
table
(GenericTypeMatcher<? extends JTable> matcher) textBox()
Returns a
found in this fixture'sJTextComponent
.Container
Finds a
in this fixture'sJTextComponent
managed by this fixture, which name matches the specified one.Container
textBox
(GenericTypeMatcher<? extends JTextComponent> matcher) Finds a
in this fixture'sJTextComponent
managed by this fixture, that matches the specified search criteria.Container
Returns a
found in this fixture'sJToggleButton
.Container
toggleButton
(String name) Finds a
in this fixture'sJToggleButton
, which name matches the specified one.Container
toggleButton
(GenericTypeMatcher<? extends JToggleButton> matcher) Finds a
in this fixture'sJToggleButton
, that matches the specified search criteria.Container
toolBar()
toolBar
(GenericTypeMatcher<? extends JToolBar> matcher) tree()
tree
(GenericTypeMatcher<? extends JTree> matcher) <C extends Component,
F extends ComponentFixture<C>>
Fwith
(ComponentFixtureExtension<C, F> extension) Returns a
managing a component inside this fixture'sComponentFixture
.Container
-
Field Details
-
DEFAULT_DIALOG_LOOKUP_TIMEOUT
The timeout to use when looking for a dialog. It's value is 100 ms.
-
-
Method Details
-
button
JButtonFixture button()- Returns:
- a fixture that manages the
JButton
found. - Throws:
ComponentLookupException
- if aJButton
could not be found.ComponentLookupException
- if more than oneJButton
is found.
-
button
- Parameters:
matcher
- contains the search criteria for finding aJButton
.- Returns:
- a fixture that manages the
JButton
found. - Throws:
ComponentLookupException
- if aJButton
that matches the given search criteria could not be found.ComponentLookupException
- if more than oneJButton
that matches the given search criteria is found.
-
button
- Parameters:
name
- the name to match.- Returns:
- a fixture that manages the
JButton
found. - Throws:
ComponentLookupException
- if aJButton
having a matching name could not be found.ComponentLookupException
- if more than oneJButton
having a matching name is found.
-
checkBox
JCheckBoxFixture checkBox()- Returns:
- a fixture that manages the
JCheckBox
found. - Throws:
ComponentLookupException
- if aJCheckBox
could not be found.ComponentLookupException
- if more than oneJCheckBox
is found.
-
checkBox
- Parameters:
matcher
- contains the search criteria for finding aJCheckBox
.- Returns:
- a fixture that manages the
JCheckBox
found. - Throws:
ComponentLookupException
- if aJCheckBox
that matches the given search criteria could not be found.ComponentLookupException
- if more than oneJCheckBox
that matches the given search criteria is found.
-
checkBox
- Parameters:
name
- the name to match.- Returns:
- a fixture that manages the
JCheckBox
found. - Throws:
ComponentLookupException
- if aJCheckBox
having a matching name could not be found.
-
comboBox
JComboBoxFixture comboBox()- Returns:
- a fixture that manages the
JComboBox
found. - Throws:
ComponentLookupException
- if aJComboBox
could not be found.ComponentLookupException
- if more than oneJComboBox
is found.
-
comboBox
- Parameters:
matcher
- contains the search criteria for finding aJComboBox
.- Returns:
- a fixture that manages the
JComboBox
found. - Throws:
ComponentLookupException
- if aJComboBox
that matches the given search criteria could not be found.ComponentLookupException
- if more than oneJComboBox
that matches the given search criteria is found.
-
comboBox
- Parameters:
name
- the name to match.- Returns:
- a fixture that manages the
JComboBox
found. - Throws:
ComponentLookupException
- if aJComboBox
having a matching name could not be found.ComponentLookupException
- if more than oneJComboBox
having a matching name is found.
-
dialog
DialogFixture dialog()Returns the only
currently available (if any.) This method uses the value defined inDialog
as the default lookup timeout.DEFAULT_DIALOG_LOOKUP_TIMEOUT
- Returns:
- a fixture that manages the
Dialog
found. - Throws:
WaitTimedOutError
- if aDialog
could not be found.- See Also:
-
dialog
Returns the only
currently available (if any.)Dialog
- Parameters:
timeout
- the amount of time to wait for aDialog
to be found.- Returns:
- a fixture that manages the
Dialog
found. - Throws:
WaitTimedOutError
- if aDialog
could not be found.- Since:
- 1.2
-
dialog
Finds a
that matches the specified search criteria. This method uses the value defined inDialog
as the default lookup timeout.DEFAULT_DIALOG_LOOKUP_TIMEOUT
- Parameters:
matcher
- contains the search criteria for finding aDialog
.- Returns:
- a fixture that manages the
Dialog
found. - Throws:
WaitTimedOutError
- if aDialog
that matches the given search criteria could not be found.- See Also:
-
dialog
Finds a
that matches the specified search criteria.Dialog
- Parameters:
matcher
- contains the search criteria for finding aDialog
.timeout
- the amount of time to wait for aDialog
to be found.- Returns:
- a fixture that manages the
Dialog
found. - Throws:
WaitTimedOutError
- if aDialog
that matches the given search criteria could not be found.- Since:
- 1.2
-
dialog
Finds a
with a name matching the specified one. This method uses the value defined inDialog
as the default lookup timeout.DEFAULT_DIALOG_LOOKUP_TIMEOUT
- Parameters:
name
- the name to match.- Returns:
- a fixture that manages the
Dialog
found. - Throws:
WaitTimedOutError
- if aDialog
that a matching name could not be found.- See Also:
-
dialog
Finds a
with a name matching the specified one.Dialog
- Parameters:
name
- the name to match.timeout
- the amount of time to wait for aDialog
to be found.- Returns:
- a fixture that manages the
Dialog
found. - Throws:
WaitTimedOutError
- if aDialog
that a matching name could not be found.- Since:
- 1.2
-
fileChooser
JFileChooserFixture fileChooser()Returns the only
currently available (if any.) This method uses the value defined inJFileChooser
as the default lookup timeout.DEFAULT_DIALOG_LOOKUP_TIMEOUT
- Returns:
- a fixture that manages the
JFileChooser
found. - Throws:
WaitTimedOutError
- if aJFileChooser
could not be found.- See Also:
-
fileChooser
Returns the only
currently available (if any.)JFileChooser
- Parameters:
timeout
- the amount of time to wait for aJFileChooser
to be found.- Returns:
- a fixture that manages the
JFileChooser
found. - Throws:
WaitTimedOutError
- if aJFileChooser
could not be found.
-
fileChooser
Finds a
that matches the specified search criteria. This method uses the value defined inJFileChooser
as the default lookup timeout.DEFAULT_DIALOG_LOOKUP_TIMEOUT
- Parameters:
matcher
- contains the search criteria for finding aJFileChooser
.- Returns:
- a fixture that manages the
JFileChooser
found. - Throws:
WaitTimedOutError
- if aJFileChooser
could not be found.- See Also:
-
fileChooser
JFileChooserFixture fileChooser(GenericTypeMatcher<? extends JFileChooser> matcher, Timeout timeout) Finds a
that matches the specified search criteria.JFileChooser
- Parameters:
matcher
- contains the search criteria for finding aJFileChooser
.timeout
- the amount of time to wait for aJFileChooser
to be found.- Returns:
- a fixture that manages the
JFileChooser
found. - Throws:
WaitTimedOutError
- if aJFileChooser
could not be found.
-
fileChooser
Finds a
with a name matching the specified one. This method uses the value defined inJFileChooser
as the default lookup timeout.DEFAULT_DIALOG_LOOKUP_TIMEOUT
- Parameters:
name
- the name to match.- Returns:
- a fixture that manages the
JFileChooser
found. - Throws:
WaitTimedOutError
- if aJFileChooser
could not be found.- See Also:
-
fileChooser
Finds a
with a name matching the specified one.JFileChooser
- Parameters:
name
- the name to match.timeout
- the amount of time to wait for aJFileChooser
to be found.- Returns:
- a fixture that manages the
JFileChooser
found. - Throws:
WaitTimedOutError
- if aJFileChooser
could not be found.
-
label
JLabelFixture label()- Returns:
- a fixture that manages the
JLabel
found. - Throws:
ComponentLookupException
- if aJLabel
could not be found.ComponentLookupException
- if more than oneJLabel
is found.
-
label
- Parameters:
matcher
- contains the search criteria for finding aJLabel
.- Returns:
- a fixture that manages the
JLabel
found. - Throws:
ComponentLookupException
- if aJLabel
that matches the given search criteria could not be found.ComponentLookupException
- if more than oneJLabel
that matches the given search criteria is found.
-
label
- Parameters:
name
- the name to match.- Returns:
- a fixture that manages the
JLabel
found. - Throws:
ComponentLookupException
- if aJLabel
having a matching name could not be found.ComponentLookupException
- if more than oneJLabel
having a matching name could is found.
-
list
JListFixture list()- Returns:
- a fixture that manages the
JList
found. - Throws:
ComponentLookupException
- if aJList
could not be found.ComponentLookupException
- if more than oneJList
is found.
-
list
- Parameters:
matcher
- contains the search criteria for finding aJList
.- Returns:
- a fixture that manages the
JList
found. - Throws:
ComponentLookupException
- if aJList
that matches the given search criteria could not be found.ComponentLookupException
- if more than oneJList
that matches the given search criteria is found.
-
list
- Parameters:
name
- the name to match.- Returns:
- a fixture that manages the
JList
found. - Throws:
ComponentLookupException
- if aJList
having a matching name could not be found.ComponentLookupException
- if more than oneJList
having a matching name is found.
-
optionPane
JOptionPaneFixture optionPane()Returns the only
currently available (if any.) This method uses the value defined inJOptionPane
as the default lookup timeout.DEFAULT_DIALOG_LOOKUP_TIMEOUT
- Returns:
- a fixture that manages the
JOptionPane
found. - Throws:
WaitTimedOutError
- if aJOptionPane
could not be found.- See Also:
-
optionPane
Returns the only
currently available (if any.)JOptionPane
- Parameters:
timeout
- the amount of time to wait for aJOptionPane
to be found.- Returns:
- a fixture that manages the
JOptionPane
found. - Throws:
WaitTimedOutError
- if aJOptionPane
could not be found.
-
panel
JPanelFixture panel()- Returns:
- a fixture that manages the
JPanel
found. - Throws:
ComponentLookupException
- if aJPanel
could not be found.ComponentLookupException
- if more than oneJPanel
is found.
-
panel
- Parameters:
matcher
- contains the search criteria for finding aJPanel
.- Returns:
- a fixture that manages the
JPanel
found. - Throws:
ComponentLookupException
- if aJPanel
that matches the given search criteria could not be found.ComponentLookupException
- if more than oneJPanel
that matches the given search criteria is found.
-
panel
- Parameters:
name
- the name to match.- Returns:
- a fixture that manages the
JPanel
found. - Throws:
ComponentLookupException
- if aJPanel
having a matching name could not be found.
-
progressBar
JProgressBarFixture progressBar()Returns a
found in this fixture'sJProgressBar
.Container
- Returns:
- a fixture that manages the
JProgressBar
found. - Throws:
ComponentLookupException
- if aJProgressBar
could not be found.ComponentLookupException
- if more than oneJProgressBar
is found.
-
progressBar
Finds a
in this fixture'sJProgressBar
, that matches the specified search criteria.Container
- Parameters:
matcher
- contains the search criteria for finding aJProgressBar
.- Returns:
- a fixture that manages the
JProgressBar
found. - Throws:
ComponentLookupException
- if aJProgressBar
that matches the given search criteria could not be found.ComponentLookupException
- if more than oneJProgressBar
that matches the given search criteria is found.
-
progressBar
Finds a
in this fixture'sJProgressBar
, which name matches the specified one.Container
- Parameters:
name
- the name to match.- Returns:
- a fixture that manages the
JProgressBar
found. - Throws:
ComponentLookupException
- if aJProgressBar
having a matching name could not be found.
-
radioButton
JRadioButtonFixture radioButton()Returns a
found in this fixture'sJRadioButton
.Container
- Returns:
- a fixture that manages the
JRadioButton
found. - Throws:
ComponentLookupException
- if aJRadioButton
could not be found.ComponentLookupException
- if more than oneJRadioButton
is found.
-
radioButton
Finds a
in this fixture'sJRadioButton
, that matches the specified search criteria.Container
- Parameters:
matcher
- contains the search criteria for finding aJRadioButton
.- Returns:
- a fixture that manages the
JRadioButton
found. - Throws:
ComponentLookupException
- if aJRadioButton
that matches the given search criteria could not be found.ComponentLookupException
- if more than oneJRadioButton
that matches the given search criteria is found.
-
radioButton
Finds a
in this fixture'sJRadioButton
, which name matches the specified one.Container
- Parameters:
name
- the name to match.- Returns:
- a fixture that manages the
JRadioButton
found. - Throws:
ComponentLookupException
- if aJRadioButton
having a matching name could not be found.ComponentLookupException
- if more than oneJRadioButton
having a matching name is found.
-
scrollBar
JScrollBarFixture scrollBar()Returns a
found in this fixture'sJScrollBar
.Container
- Returns:
- a fixture that manages the
JScrollBar
found. - Throws:
ComponentLookupException
- if aJScrollBar
could not be found.ComponentLookupException
- if more than oneJScrollBar
is found.
-
scrollBar
Finds a
in this fixture'sJScrollBar
, that matches the specified search criteria.Container
- Parameters:
matcher
- contains the search criteria for finding aJScrollBar
.- Returns:
- a fixture that manages the
JScrollBar
found. - Throws:
ComponentLookupException
- if aJScrollBar
that matches the given search criteria could not be found.ComponentLookupException
- if more than oneJScrollBar
that matches the given search criteria is found.
-
scrollBar
Finds a
in this fixture'sJScrollBar
, which name matches the specified one.Container
- Parameters:
name
- the name to match.- Returns:
- a fixture that manages the
JScrollBar
found. - Throws:
ComponentLookupException
- if aJScrollBar
having a matching name could not be found.ComponentLookupException
- if more than oneJScrollBar
having a matching name is found.
-
scrollPane
JScrollPaneFixture scrollPane()Returns a
found in this fixture'sJScrollPane
.Container
- Returns:
- a fixture that manages the
JScrollPane
found. - Throws:
ComponentLookupException
- if aJScrollPane
could not be found.ComponentLookupException
- if more than oneJScrollPane
is found.
-
scrollPane
Finds a
in this fixture'sJScrollPane
, that matches the specified search criteria.Container
- Parameters:
matcher
- contains the search criteria for finding aJScrollPane
.- Returns:
- a fixture that manages the
JScrollPane
found. - Throws:
ComponentLookupException
- if aJScrollPane
that matches the given search criteria could not be found.ComponentLookupException
- if more than oneJScrollPane
that matches the given search criteria is found.
-
scrollPane
Finds a
in this fixture'sJScrollPane
, which name matches the specified one.Container
- Parameters:
name
- the name to match.- Returns:
- a fixture that manages the
JScrollPane
found. - Throws:
ComponentLookupException
- if aJScrollPane
having a matching name could not be found.ComponentLookupException
- if more than oneJScrollPane
having a matching name is found.
-
slider
JSliderFixture slider()- Returns:
- a fixture that manages the
JSlider
found. - Throws:
ComponentLookupException
- if aJSlider
could not be found.ComponentLookupException
- if more than oneJSlider
is found.
-
slider
- Parameters:
matcher
- contains the search criteria for finding aJSlider
.- Returns:
- a fixture that manages the
JSlider
found. - Throws:
ComponentLookupException
- if aJSlider
that matches the given search criteria could not be found.ComponentLookupException
- if more than oneJSlider
that matches the given search criteria is found.
-
slider
- Parameters:
name
- the name to match.- Returns:
- a fixture that manages the
JSlider
found. - Throws:
ComponentLookupException
- if aJSlider
having a matching name could not be found.ComponentLookupException
- if more than oneJSlider
having a matching name is found.
-
spinner
JSpinnerFixture spinner()- Returns:
- a fixture that manages the
JSpinner
found. - Throws:
ComponentLookupException
- if aJSpinner
could not be found.ComponentLookupException
- if more than oneJSpinner
is found.
-
spinner
- Parameters:
matcher
- contains the search criteria for finding aJSpinner
.- Returns:
- a fixture that manages the
JSpinner
found. - Throws:
ComponentLookupException
- if aJSpinner
that matches the given search criteria could not be found.ComponentLookupException
- if more than oneJSpinner
that matches the given search criteria is found.
-
spinner
- Parameters:
name
- the name to match.- Returns:
- a fixture that manages the
JSpinner
found. - Throws:
ComponentLookupException
- if aJSpinner
having a matching name could not be found.ComponentLookupException
- if more than oneJSpinner
having a matching name is found.
-
splitPane
JSplitPaneFixture splitPane()Returns the
found in this fixture'sJSplitPane
.Container
- Returns:
- a fixture that manages the
JSplitPane
found. - Throws:
ComponentLookupException
- if aJSplitPane
could not be found.ComponentLookupException
- if more than oneJSplitPane
is found.
-
splitPane
Finds a
in this fixture'sJSplitPane
, that matches the specified search criteria.Container
- Parameters:
matcher
- contains the search criteria for finding aJSplitPane
.- Returns:
- a fixture that manages the
JSplitPane
found. - Throws:
ComponentLookupException
- if aJSplitPane
that matches the given search criteria could not be found.ComponentLookupException
- if more than oneJSplitPane
that matches the given search criteria is found.
-
splitPane
Finds a
in this fixture'sJSplitPane
, which name matches the specified one.Container
- Parameters:
name
- the name to match.- Returns:
- a fixture that manages the
JSplitPane
found. - Throws:
ComponentLookupException
- if aJSplitPane
having a matching name could not be found.ComponentLookupException
- if more than oneJSplitPane
having a matching name is found.
-
tabbedPane
JTabbedPaneFixture tabbedPane()Returns a
found in this fixture'sJTabbedPane
.Container
- Returns:
- a fixture that manages the
JTabbedPane
found. - Throws:
ComponentLookupException
- if aJTabbedPane
could not be found.ComponentLookupException
- if more than oneJTabbedPane
is found.
-
tabbedPane
Finds a
in this fixture'sJTabbedPane
, that matches the specified search criteria.Container
- Parameters:
matcher
- contains the search criteria for finding aJTabbedPane
.- Returns:
- a fixture that manages the
JTabbedPane
found. - Throws:
ComponentLookupException
- if aJTabbedPane
that matches the given search criteria could not be found.ComponentLookupException
- if more than oneJTabbedPane
that matches the given search criteria is found.
-
tabbedPane
Finds a
in this fixture'sJTabbedPane
, which name matches the specified one.Container
- Parameters:
name
- the name to match.- Returns:
- a fixture that manages the
JTabbedPane
found. - Throws:
ComponentLookupException
- if aJTabbedPane
having a matching name could not be found.ComponentLookupException
- if more than oneJTabbedPane
having a matching name is found.
-
table
JTableFixture table()- Returns:
- a fixture that manages the
JTable
found. - Throws:
ComponentLookupException
- if aJTable
having a matching name could not be found.ComponentLookupException
- if more than oneJTable
having a matching name is found.
-
table
- Parameters:
matcher
- contains the search criteria for finding aJTable
.- Returns:
- a fixture that manages the
JTable
found. - Throws:
ComponentLookupException
- if aJTable
that matches the given search criteria could not be found.ComponentLookupException
- if more than oneJTable
that matches the given search criteria is found.
-
table
- Parameters:
name
- the name to match.- Returns:
- a fixture that manages the
JTable
found. - Throws:
ComponentLookupException
- if aJTable
having a matching name could not be found.ComponentLookupException
- if more than oneJTable
having a matching name is found.
-
textBox
JTextComponentFixture textBox()Returns a
found in this fixture'sJTextComponent
.Container
- Returns:
- a fixture that manages the
JTextComponent
found. - Throws:
ComponentLookupException
- if aJTextComponent
having a matching name could not be found.ComponentLookupException
- if more than oneJTextComponent
having a matching name is found.
-
textBox
Finds a
in this fixture'sJTextComponent
managed by this fixture, that matches the specified search criteria.Container
- Parameters:
matcher
- contains the search criteria for finding aJTextComponent
.- Returns:
- a fixture that manages the
JTextComponent
found. - Throws:
ComponentLookupException
- if aJTextComponent
that matches the given search criteria could not be found.ComponentLookupException
- if more than oneJTextComponent
that matches the given search criteria is found.
-
textBox
Finds a
in this fixture'sJTextComponent
managed by this fixture, which name matches the specified one.Container
- Parameters:
name
- the name to match.- Returns:
- a fixture that manages the
JTextComponent
found. - Throws:
ComponentLookupException
- if aJTextComponent
having a matching name could not be found.ComponentLookupException
- if more than oneJTextComponent
having a matching name is found.
-
toggleButton
JToggleButtonFixture toggleButton()Returns a
found in this fixture'sJToggleButton
.Container
- Returns:
- a fixture that manages the
JToggleButton
found. - Throws:
ComponentLookupException
- if aJToggleButton
could not be found.ComponentLookupException
- if more than oneJToggleButton
is found.
-
toggleButton
Finds a
in this fixture'sJToggleButton
, that matches the specified search criteria.Container
- Parameters:
matcher
- contains the search criteria for finding aJToggleButton
.- Returns:
- a fixture that manages the
JToggleButton
found. - Throws:
ComponentLookupException
- if aJToggleButton
that matches the given search criteria could not be found.ComponentLookupException
- if more than oneJToggleButton
that matches the given search criteria is found.
-
toggleButton
Finds a
in this fixture'sJToggleButton
, which name matches the specified one.Container
- Parameters:
name
- the name to match.- Returns:
- a fixture that manages the
JToggleButton
found. - Throws:
ComponentLookupException
- if aJToggleButton
having a matching name could not be found.ComponentLookupException
- if more than oneJToggleButton
having a matching name is found.
-
toolBar
JToolBarFixture toolBar()- Returns:
- a fixture that manages the
JToolBar
found. - Throws:
ComponentLookupException
- if aJToolBar
having a matching name could not be found.ComponentLookupException
- if more than oneJToolBar
having a matching name could is found.
-
toolBar
- Parameters:
matcher
- contains the search criteria for finding aJToolBar
.- Returns:
- a fixture that manages the
JToolBar
found. - Throws:
ComponentLookupException
- if aJToolBar
that matches the given search criteria could not be found.ComponentLookupException
- if more than oneJToolBar
that matches the given search criteria is found.
-
toolBar
- Parameters:
name
- the name to match.- Returns:
- a fixture that manages the
JToolBar
found. - Throws:
ComponentLookupException
- if aJToolBar
having a matching name could not be found.ComponentLookupException
- if more than oneJToolBar
having a matching name is found.
-
tree
JTreeFixture tree()- Returns:
- a fixture that manages the
JTree
found. - Throws:
ComponentLookupException
- if aJTree
having a matching name could not be found.ComponentLookupException
- if more than oneJTree
having a matching name is found.
-
tree
- Parameters:
matcher
- contains the search criteria for finding aJTree
.- Returns:
- a fixture that manages the
JTree
found. - Throws:
ComponentLookupException
- if aJTree
that matches the given search criteria could not be found.ComponentLookupException
- if more than oneJTree
that matches the given search criteria is found.
-
tree
- Parameters:
name
- the name to match.- Returns:
- a fixture that manages the
JTree
found. - Throws:
ComponentLookupException
- if aJTree
having a matching name could not be found.ComponentLookupException
- if more than oneJTree
having a matching name is found.
-
with
<C extends Component,F extends ComponentFixture<C>> F with(ComponentFixtureExtension<C, F> extension) Returns a
managing a component inside this fixture'sComponentFixture
. This is an extension method, to allow implementations ofContainer
handle custom GUI components.ContainerFixture
- Type Parameters:
C
- the type ofComponent
the fixture to return can handle.F
- the type ofComponentFixture
to return.- Parameters:
extension
- theComponentFixtureExtension
that creates theComponentFixture
to return.- Returns:
- a
ComponentFixture
managing a component inside this fixture'sContainer
.
-