Package org.fest.swing.fixture
Class ContainerFixture<T extends Container>
java.lang.Object
org.fest.swing.fixture.ComponentFixture<T>
org.fest.swing.fixture.ContainerFixture<T>
- Type Parameters:
T
- the type of container handled by this fixture.
- All Implemented Interfaces:
ComponentContainerFixture
- Direct Known Subclasses:
JInternalFrameFixture
,JOptionPaneFixture
,JPanelFixture
,JToolBarFixture
,WindowFixture
public abstract class ContainerFixture<T extends Container>
extends ComponentFixture<T>
implements ComponentContainerFixture
-
Field Summary
FieldsFields inherited from class org.fest.swing.fixture.ComponentFixture
BACKGROUND_PROPERTY, FONT_PROPERTY, FOREGROUND_PROPERTY, robot, target
Fields inherited from interface org.fest.swing.fixture.ComponentContainerFixture
DEFAULT_DIALOG_LOOKUP_TIMEOUT
-
Constructor Summary
ConstructorsConstructorDescriptionContainerFixture
(Robot robot, Class<? extends T> type) Creates a new
.ContainerFixture
ContainerFixture
(Robot robot, String name, Class<? extends T> type) Creates a new
.ContainerFixture
ContainerFixture
(Robot robot, T target) Creates a new
.ContainerFixture
-
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.ComponentContainerFixture.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.ComponentContainerFixture.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
protected final <C extends Component>
Cfind
(GenericTypeMatcher<? extends C> matcher) protected final <C extends Component>
CfindByName
(String name, Class<C> type) Finds a component by name and type, contained in this fixture's
.Container
protected final <C extends Component>
CfindByType
(Class<C> type) Finds a component by type, contained in this fixture's
.Container
private DialogFixture
findDialog
(ComponentMatcher matcher, Timeout timeout) protected final ComponentFinder
finder()
Returns the
contained in this fixture'sComponentFinder
.Robot
private JFileChooserFixture
findFileChooser
(ComponentMatcher matcher, Timeout timeout) 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.ComponentContainerFixture.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
Methods inherited from class org.fest.swing.fixture.ComponentFixture
background, component, font, foreground, requireShowing, targetCastedTo, validateNotNull
-
Field Details
-
Constructor Details
-
ContainerFixture
Creates a new
.ContainerFixture
- Parameters:
robot
- performs simulation of user events on aContainer
.type
- the type of theContainer
to find using the givenRobot
.- Throws:
NullPointerException
- ifrobot
isnull
.NullPointerException
- iftype
isnull
.ComponentLookupException
- if a matching component could not be found.ComponentLookupException
- if more than one matching component is found.- See Also:
-
ContainerFixture
Creates a new
.ContainerFixture
- Parameters:
robot
- performs simulation of user events on aContainer
.name
- the name of theContainer
to find using the givenRobot
.type
- the type of theContainer
to find using the givenRobot
.- Throws:
NullPointerException
- ifrobot
isnull
.NullPointerException
- iftype
isnull
.ComponentLookupException
- if a matching component could not be found.ComponentLookupException
- if more than one matching component is found.- See Also:
-
ContainerFixture
Creates a new
.ContainerFixture
- Parameters:
robot
- performs simulation of user events on the givenContainer
.target
- theContainer
to be.- Throws:
NullPointerException
- ifrobot
isnull
.NullPointerException
- iftarget
isnull
.
-
-
Method Details
-
button
- Specified by:
button
in interfaceComponentContainerFixture
- Returns:
- a fixture that manages the
JButton
found.
-
button
- Specified by:
button
in interfaceComponentContainerFixture
- Parameters:
matcher
- contains the search criteria for finding aJButton
.- Returns:
- a fixture that manages the
JButton
found.
-
button
- Specified by:
button
in interfaceComponentContainerFixture
- Parameters:
name
- the name to match.- Returns:
- a fixture that manages the
JButton
found.
-
checkBox
- Specified by:
checkBox
in interfaceComponentContainerFixture
- Returns:
- a fixture that manages the
JCheckBox
found.
-
checkBox
- Specified by:
checkBox
in interfaceComponentContainerFixture
- Parameters:
matcher
- contains the search criteria for finding aJCheckBox
.- Returns:
- a fixture that manages the
JCheckBox
found.
-
checkBox
- Specified by:
checkBox
in interfaceComponentContainerFixture
- Parameters:
name
- the name to match.- Returns:
- a fixture that manages the
JCheckBox
found.
-
comboBox
- Specified by:
comboBox
in interfaceComponentContainerFixture
- Returns:
- a fixture that manages the
JComboBox
found.
-
comboBox
- Specified by:
comboBox
in interfaceComponentContainerFixture
- Parameters:
matcher
- contains the search criteria for finding aJComboBox
.- Returns:
- a fixture that manages the
JComboBox
found.
-
comboBox
- Specified by:
comboBox
in interfaceComponentContainerFixture
- Parameters:
name
- the name to match.- Returns:
- a fixture that manages the
JComboBox
found.
-
dialog
Returns the only
currently available (if any.) This method uses the value defined inDialog
as the default lookup timeout.ComponentContainerFixture.DEFAULT_DIALOG_LOOKUP_TIMEOUT
- Specified by:
dialog
in interfaceComponentContainerFixture
- Returns:
- a fixture that manages the
Dialog
found. - See Also:
-
dialog
Returns the only
currently available (if any.)Dialog
- Specified by:
dialog
in interfaceComponentContainerFixture
- Parameters:
timeout
- the amount of time to wait for aDialog
to be found.- Returns:
- a fixture that manages the
Dialog
found.
-
dialog
Finds a
that matches the specified search criteria. This method uses the value defined inDialog
as the default lookup timeout.ComponentContainerFixture.DEFAULT_DIALOG_LOOKUP_TIMEOUT
- Specified by:
dialog
in interfaceComponentContainerFixture
- Parameters:
matcher
- contains the search criteria for finding aDialog
.- Returns:
- a fixture that manages the
Dialog
found. - See Also:
-
dialog
Finds a
that matches the specified search criteria.Dialog
- Specified by:
dialog
in interfaceComponentContainerFixture
- 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.
-
dialog
Finds a
with a name matching the specified one. This method uses the value defined inDialog
as the default lookup timeout.ComponentContainerFixture.DEFAULT_DIALOG_LOOKUP_TIMEOUT
- Specified by:
dialog
in interfaceComponentContainerFixture
- Parameters:
name
- the name to match.- Returns:
- a fixture that manages the
Dialog
found. - See Also:
-
dialog
Finds a
with a name matching the specified one.Dialog
- Specified by:
dialog
in interfaceComponentContainerFixture
- 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.
-
findDialog
-
fileChooser
Returns the only
currently available (if any.) This method uses the value defined inJFileChooser
as the default lookup timeout.ComponentContainerFixture.DEFAULT_DIALOG_LOOKUP_TIMEOUT
- Specified by:
fileChooser
in interfaceComponentContainerFixture
- Returns:
- a fixture that manages the
JFileChooser
found. - See Also:
-
fileChooser
Returns the only
currently available (if any.)JFileChooser
- Specified by:
fileChooser
in interfaceComponentContainerFixture
- Parameters:
timeout
- the amount of time to wait for aJFileChooser
to be found.- Returns:
- a fixture that manages the
JFileChooser
found.
-
fileChooser
Finds a
that matches the specified search criteria. This method uses the value defined inJFileChooser
as the default lookup timeout.ComponentContainerFixture.DEFAULT_DIALOG_LOOKUP_TIMEOUT
- Specified by:
fileChooser
in interfaceComponentContainerFixture
- Parameters:
matcher
- contains the search criteria for finding aJFileChooser
.- Returns:
- a fixture that manages the
JFileChooser
found. - See Also:
-
fileChooser
public JFileChooserFixture fileChooser(GenericTypeMatcher<? extends JFileChooser> matcher, Timeout timeout) Finds a
that matches the specified search criteria.JFileChooser
- Specified by:
fileChooser
in interfaceComponentContainerFixture
- 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.
-
fileChooser
Finds a
with a name matching the specified one. This method uses the value defined inJFileChooser
as the default lookup timeout.ComponentContainerFixture.DEFAULT_DIALOG_LOOKUP_TIMEOUT
- Specified by:
fileChooser
in interfaceComponentContainerFixture
- Parameters:
name
- the name to match.- Returns:
- a fixture that manages the
JFileChooser
found. - See Also:
-
fileChooser
Finds a
with a name matching the specified one.JFileChooser
- Specified by:
fileChooser
in interfaceComponentContainerFixture
- 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.
-
findFileChooser
-
label
- Specified by:
label
in interfaceComponentContainerFixture
- Returns:
- a fixture that manages the
JLabel
found.
-
label
- Specified by:
label
in interfaceComponentContainerFixture
- Parameters:
matcher
- contains the search criteria for finding aJLabel
.- Returns:
- a fixture that manages the
JLabel
found.
-
label
- Specified by:
label
in interfaceComponentContainerFixture
- Parameters:
name
- the name to match.- Returns:
- a fixture that manages the
JLabel
found.
-
list
- Specified by:
list
in interfaceComponentContainerFixture
- Returns:
- a fixture that manages the
JList
found.
-
list
- Specified by:
list
in interfaceComponentContainerFixture
- Parameters:
matcher
- contains the search criteria for finding aJList
.- Returns:
- a fixture that manages the
JList
found.
-
list
- Specified by:
list
in interfaceComponentContainerFixture
- Parameters:
name
- the name to match.- Returns:
- a fixture that manages the
JList
found.
-
optionPane
Returns the only
currently available (if any.) This method uses the value defined inJOptionPane
as the default lookup timeout.ComponentContainerFixture.DEFAULT_DIALOG_LOOKUP_TIMEOUT
- Specified by:
optionPane
in interfaceComponentContainerFixture
- Returns:
- a fixture that manages the
JOptionPane
found. - See Also:
-
optionPane
Returns the only
currently available (if any.)JOptionPane
- Specified by:
optionPane
in interfaceComponentContainerFixture
- Parameters:
timeout
- the amount of time to wait for aJOptionPane
to be found.- Returns:
- a fixture that manages the
JOptionPane
found.
-
panel
- Specified by:
panel
in interfaceComponentContainerFixture
- Returns:
- a fixture that manages the
JPanel
found.
-
panel
- Specified by:
panel
in interfaceComponentContainerFixture
- Parameters:
matcher
- contains the search criteria for finding aJPanel
.- Returns:
- a fixture that manages the
JPanel
found.
-
panel
- Specified by:
panel
in interfaceComponentContainerFixture
- Parameters:
name
- the name to match.- Returns:
- a fixture that manages the
JPanel
found.
-
progressBar
Returns a
found in this fixture'sJProgressBar
.Container
- Specified by:
progressBar
in interfaceComponentContainerFixture
- Returns:
- a fixture that manages the
JProgressBar
found.
-
progressBar
Finds a
in this fixture'sJProgressBar
, that matches the specified search criteria.Container
- Specified by:
progressBar
in interfaceComponentContainerFixture
- Parameters:
matcher
- contains the search criteria for finding aJProgressBar
.- Returns:
- a fixture that manages the
JProgressBar
found.
-
progressBar
Finds a
in this fixture'sJProgressBar
, which name matches the specified one.Container
- Specified by:
progressBar
in interfaceComponentContainerFixture
- Parameters:
name
- the name to match.- Returns:
- a fixture that manages the
JProgressBar
found.
-
radioButton
Returns a
found in this fixture'sJRadioButton
.Container
- Specified by:
radioButton
in interfaceComponentContainerFixture
- Returns:
- a fixture that manages the
JRadioButton
found.
-
radioButton
Finds a
in this fixture'sJRadioButton
, that matches the specified search criteria.Container
- Specified by:
radioButton
in interfaceComponentContainerFixture
- Parameters:
matcher
- contains the search criteria for finding aJRadioButton
.- Returns:
- a fixture that manages the
JRadioButton
found.
-
radioButton
Finds a
in this fixture'sJRadioButton
, which name matches the specified one.Container
- Specified by:
radioButton
in interfaceComponentContainerFixture
- Parameters:
name
- the name to match.- Returns:
- a fixture that manages the
JRadioButton
found.
-
scrollBar
Returns a
found in this fixture'sJScrollBar
.Container
- Specified by:
scrollBar
in interfaceComponentContainerFixture
- Returns:
- a fixture that manages the
JScrollBar
found.
-
scrollBar
Finds a
in this fixture'sJScrollBar
, that matches the specified search criteria.Container
- Specified by:
scrollBar
in interfaceComponentContainerFixture
- Parameters:
matcher
- contains the search criteria for finding aJScrollBar
.- Returns:
- a fixture that manages the
JScrollBar
found.
-
scrollBar
Finds a
in this fixture'sJScrollBar
, which name matches the specified one.Container
- Specified by:
scrollBar
in interfaceComponentContainerFixture
- Parameters:
name
- the name to match.- Returns:
- a fixture that manages the
JScrollBar
found.
-
scrollPane
Returns a
found in this fixture'sJScrollPane
.Container
- Specified by:
scrollPane
in interfaceComponentContainerFixture
- Returns:
- a fixture that manages the
JScrollPane
found.
-
scrollPane
Finds a
in this fixture'sJScrollPane
, that matches the specified search criteria.Container
- Specified by:
scrollPane
in interfaceComponentContainerFixture
- Parameters:
matcher
- contains the search criteria for finding aJScrollPane
.- Returns:
- a fixture that manages the
JScrollPane
found.
-
scrollPane
Finds a
in this fixture'sJScrollPane
, which name matches the specified one.Container
- Specified by:
scrollPane
in interfaceComponentContainerFixture
- Parameters:
name
- the name to match.- Returns:
- a fixture that manages the
JScrollPane
found.
-
slider
- Specified by:
slider
in interfaceComponentContainerFixture
- Returns:
- a fixture that manages the
JSlider
found.
-
slider
- Specified by:
slider
in interfaceComponentContainerFixture
- Parameters:
matcher
- contains the search criteria for finding aJSlider
.- Returns:
- a fixture that manages the
JSlider
found.
-
slider
- Specified by:
slider
in interfaceComponentContainerFixture
- Parameters:
name
- the name to match.- Returns:
- a fixture that manages the
JSlider
found.
-
spinner
- Specified by:
spinner
in interfaceComponentContainerFixture
- Returns:
- a fixture that manages the
JSpinner
found.
-
spinner
- Specified by:
spinner
in interfaceComponentContainerFixture
- Parameters:
matcher
- contains the search criteria for finding aJSpinner
.- Returns:
- a fixture that manages the
JSpinner
found.
-
spinner
- Specified by:
spinner
in interfaceComponentContainerFixture
- Parameters:
name
- the name to match.- Returns:
- a fixture that manages the
JSpinner
found.
-
splitPane
Returns the
found in this fixture'sJSplitPane
.Container
- Specified by:
splitPane
in interfaceComponentContainerFixture
- Returns:
- a fixture that manages the
JSplitPane
found.
-
splitPane
Finds a
in this fixture'sJSplitPane
, that matches the specified search criteria.Container
- Specified by:
splitPane
in interfaceComponentContainerFixture
- Parameters:
matcher
- contains the search criteria for finding aJSplitPane
.- Returns:
- a fixture that manages the
JSplitPane
found.
-
splitPane
Finds a
in this fixture'sJSplitPane
, which name matches the specified one.Container
- Specified by:
splitPane
in interfaceComponentContainerFixture
- Parameters:
name
- the name to match.- Returns:
- a fixture that manages the
JSplitPane
found.
-
tabbedPane
Returns a
found in this fixture'sJTabbedPane
.Container
- Specified by:
tabbedPane
in interfaceComponentContainerFixture
- Returns:
- a fixture that manages the
JTabbedPane
found.
-
tabbedPane
Finds a
in this fixture'sJTabbedPane
, that matches the specified search criteria.Container
- Specified by:
tabbedPane
in interfaceComponentContainerFixture
- Parameters:
matcher
- contains the search criteria for finding aJTabbedPane
.- Returns:
- a fixture that manages the
JTabbedPane
found.
-
tabbedPane
Finds a
in this fixture'sJTabbedPane
, which name matches the specified one.Container
- Specified by:
tabbedPane
in interfaceComponentContainerFixture
- Parameters:
name
- the name to match.- Returns:
- a fixture that manages the
JTabbedPane
found.
-
table
- Specified by:
table
in interfaceComponentContainerFixture
- Returns:
- a fixture that manages the
JTable
found.
-
table
- Specified by:
table
in interfaceComponentContainerFixture
- Parameters:
matcher
- contains the search criteria for finding aJTable
.- Returns:
- a fixture that manages the
JTable
found.
-
table
- Specified by:
table
in interfaceComponentContainerFixture
- Parameters:
name
- the name to match.- Returns:
- a fixture that manages the
JTable
found.
-
textBox
Returns a
found in this fixture'sJTextComponent
.Container
- Specified by:
textBox
in interfaceComponentContainerFixture
- Returns:
- a fixture that manages the
JTextComponent
found.
-
textBox
Finds a
in this fixture'sJTextComponent
managed by this fixture, that matches the specified search criteria.Container
- Specified by:
textBox
in interfaceComponentContainerFixture
- Parameters:
matcher
- contains the search criteria for finding aJTextComponent
.- Returns:
- a fixture that manages the
JTextComponent
found.
-
textBox
Finds a
in this fixture'sJTextComponent
managed by this fixture, which name matches the specified one.Container
- Specified by:
textBox
in interfaceComponentContainerFixture
- Parameters:
name
- the name to match.- Returns:
- a fixture that manages the
JTextComponent
found.
-
toggleButton
Returns a
found in this fixture'sJToggleButton
.Container
- Specified by:
toggleButton
in interfaceComponentContainerFixture
- Returns:
- a fixture that manages the
JToggleButton
found.
-
toggleButton
Finds a
in this fixture'sJToggleButton
, that matches the specified search criteria.Container
- Specified by:
toggleButton
in interfaceComponentContainerFixture
- Parameters:
matcher
- contains the search criteria for finding aJToggleButton
.- Returns:
- a fixture that manages the
JToggleButton
found.
-
toggleButton
Finds a
in this fixture'sJToggleButton
, which name matches the specified one.Container
- Specified by:
toggleButton
in interfaceComponentContainerFixture
- Parameters:
name
- the name to match.- Returns:
- a fixture that manages the
JToggleButton
found.
-
toolBar
- Specified by:
toolBar
in interfaceComponentContainerFixture
- Returns:
- a fixture that manages the
JToolBar
found.
-
toolBar
- Specified by:
toolBar
in interfaceComponentContainerFixture
- Parameters:
matcher
- contains the search criteria for finding aJToolBar
.- Returns:
- a fixture that manages the
JToolBar
found.
-
toolBar
- Specified by:
toolBar
in interfaceComponentContainerFixture
- Parameters:
name
- the name to match.- Returns:
- a fixture that manages the
JToolBar
found.
-
tree
- Specified by:
tree
in interfaceComponentContainerFixture
- Returns:
- a fixture that manages the
JTree
found.
-
tree
- Specified by:
tree
in interfaceComponentContainerFixture
- Parameters:
matcher
- contains the search criteria for finding aJTree
.- Returns:
- a fixture that manages the
JTree
found.
-
tree
- Specified by:
tree
in interfaceComponentContainerFixture
- Parameters:
name
- the name to match.- Returns:
- a fixture that manages the
JTree
found.
-
findByType
Finds a component by type, contained in this fixture's
.Container
- Type Parameters:
C
- the generic type of the component to find.- Parameters:
type
- the type of component to find.- Returns:
- the found component.
- Throws:
ComponentLookupException
- if a matching component could not be found.ComponentLookupException
- if more than one matching component is found.
-
findByName
Finds a component by name and type, contained in this fixture's
.Container
- Type Parameters:
C
- the generic type of the component to find.- Parameters:
name
- the name of the component to find.type
- the type of component to find.- Returns:
- the found component.
- Throws:
ComponentLookupException
- if a matching component could not be found.ComponentLookupException
- if more than one matching component is found.
-
find
- Type Parameters:
C
- the generic type of component the given matcher can handle.- Parameters:
matcher
- the matcher to use to find the component.- Returns:
- the found component.
- Throws:
ComponentLookupException
- if a matching component could not be found.ComponentLookupException
- if more than one matching component is found.
-
with
public <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
- Specified by:
with
in interfaceComponentContainerFixture
- 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
.
-
finder
Returns the
contained in this fixture'sComponentFinder
.Robot
- Returns:
- the
ComponentFinder
contained in this fixture'sRobot
.
-