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, targetFields inherited from interface org.fest.swing.fixture.ComponentContainerFixture
DEFAULT_DIALOG_LOOKUP_TIMEOUT -
Constructor Summary
ConstructorsConstructorDescriptionContainerFixture(Robot robot, Class<? extends T> type) Creates a new.ContainerFixtureContainerFixture(Robot robot, String name, Class<? extends T> type) Creates a new.ContainerFixtureContainerFixture(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 onlycurrently available (if any.) This method uses the value defined inDialogas the default lookup timeout.ComponentContainerFixture.DEFAULT_DIALOG_LOOKUP_TIMEOUTFinds awith a name matching the specified one.DialogFinds awith a name matching the specified one.Dialogdialog(GenericTypeMatcher<? extends Dialog> matcher) Finds athat matches the specified search criteria.Dialogdialog(GenericTypeMatcher<? extends Dialog> matcher, Timeout timeout) Finds athat matches the specified search criteria.DialogReturns the onlycurrently available (if any.)DialogReturns the onlycurrently available (if any.) This method uses the value defined inJFileChooseras the default lookup timeout.ComponentContainerFixture.DEFAULT_DIALOG_LOOKUP_TIMEOUTfileChooser(String name) Finds awith a name matching the specified one.JFileChooserfileChooser(String name, Timeout timeout) Finds awith a name matching the specified one.JFileChooserfileChooser(GenericTypeMatcher<? extends JFileChooser> matcher) Finds athat matches the specified search criteria.JFileChooserfileChooser(GenericTypeMatcher<? extends JFileChooser> matcher, Timeout timeout) Finds athat matches the specified search criteria.JFileChooserfileChooser(Timeout timeout) Returns the onlycurrently available (if any.)JFileChooserprotected 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.Containerprotected final <C extends Component>
CfindByType(Class<C> type) Finds a component by type, contained in this fixture's.Containerprivate DialogFixturefindDialog(ComponentMatcher matcher, Timeout timeout) protected final ComponentFinderfinder()Returns thecontained in this fixture'sComponentFinder.Robotprivate JFileChooserFixturefindFileChooser(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 onlycurrently available (if any.) This method uses the value defined inJOptionPaneas the default lookup timeout.ComponentContainerFixture.DEFAULT_DIALOG_LOOKUP_TIMEOUToptionPane(Timeout timeout) Returns the onlycurrently available (if any.)JOptionPanepanel()panel(GenericTypeMatcher<? extends JPanel> matcher) Returns afound in this fixture'sJProgressBar.ContainerprogressBar(String name) Finds ain this fixture'sJProgressBar, which name matches the specified one.ContainerprogressBar(GenericTypeMatcher<? extends JProgressBar> matcher) Finds ain this fixture'sJProgressBar, that matches the specified search criteria.ContainerReturns afound in this fixture'sJRadioButton.ContainerradioButton(String name) Finds ain this fixture'sJRadioButton, which name matches the specified one.ContainerradioButton(GenericTypeMatcher<? extends JRadioButton> matcher) Finds ain this fixture'sJRadioButton, that matches the specified search criteria.ContainerReturns afound in this fixture'sJScrollBar.ContainerFinds ain this fixture'sJScrollBar, which name matches the specified one.ContainerscrollBar(GenericTypeMatcher<? extends JScrollBar> matcher) Finds ain this fixture'sJScrollBar, that matches the specified search criteria.ContainerReturns afound in this fixture'sJScrollPane.ContainerscrollPane(String name) Finds ain this fixture'sJScrollPane, which name matches the specified one.ContainerscrollPane(GenericTypeMatcher<? extends JScrollPane> matcher) Finds ain this fixture'sJScrollPane, that matches the specified search criteria.Containerslider()slider(GenericTypeMatcher<? extends JSlider> matcher) spinner()spinner(GenericTypeMatcher<? extends JSpinner> matcher) Returns thefound in this fixture'sJSplitPane.ContainerFinds ain this fixture'sJSplitPane, which name matches the specified one.ContainersplitPane(GenericTypeMatcher<? extends JSplitPane> matcher) Finds ain this fixture'sJSplitPane, that matches the specified search criteria.ContainerReturns afound in this fixture'sJTabbedPane.ContainertabbedPane(String name) Finds ain this fixture'sJTabbedPane, which name matches the specified one.ContainertabbedPane(GenericTypeMatcher<? extends JTabbedPane> matcher) Finds ain this fixture'sJTabbedPane, that matches the specified search criteria.Containertable()table(GenericTypeMatcher<? extends JTable> matcher) textBox()Returns afound in this fixture'sJTextComponent.ContainerFinds ain this fixture'sJTextComponentmanaged by this fixture, which name matches the specified one.ContainertextBox(GenericTypeMatcher<? extends JTextComponent> matcher) Finds ain this fixture'sJTextComponentmanaged by this fixture, that matches the specified search criteria.ContainerReturns afound in this fixture'sJToggleButton.ContainertoggleButton(String name) Finds ain this fixture'sJToggleButton, which name matches the specified one.ContainertoggleButton(GenericTypeMatcher<? extends JToggleButton> matcher) Finds ain this fixture'sJToggleButton, that matches the specified search criteria.ContainertoolBar()toolBar(GenericTypeMatcher<? extends JToolBar> matcher) tree()tree(GenericTypeMatcher<? extends JTree> matcher) <C extends Component,F extends ComponentFixture<C>>
Fwith(ComponentFixtureExtension<C, F> extension) Returns amanaging a component inside this fixture'sComponentFixture.ContainerMethods 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 theContainerto find using the givenRobot.- Throws:
NullPointerException- ifrobotisnull.NullPointerException- iftypeisnull.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 theContainerto find using the givenRobot.type- the type of theContainerto find using the givenRobot.- Throws:
NullPointerException- ifrobotisnull.NullPointerException- iftypeisnull.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- theContainerto be.- Throws:
NullPointerException- ifrobotisnull.NullPointerException- iftargetisnull.
-
-
Method Details
-
button
- Specified by:
buttonin interfaceComponentContainerFixture- Returns:
- a fixture that manages the
JButtonfound.
-
button
- Specified by:
buttonin interfaceComponentContainerFixture- Parameters:
matcher- contains the search criteria for finding aJButton.- Returns:
- a fixture that manages the
JButtonfound.
-
button
- Specified by:
buttonin interfaceComponentContainerFixture- Parameters:
name- the name to match.- Returns:
- a fixture that manages the
JButtonfound.
-
checkBox
- Specified by:
checkBoxin interfaceComponentContainerFixture- Returns:
- a fixture that manages the
JCheckBoxfound.
-
checkBox
- Specified by:
checkBoxin interfaceComponentContainerFixture- Parameters:
matcher- contains the search criteria for finding aJCheckBox.- Returns:
- a fixture that manages the
JCheckBoxfound.
-
checkBox
- Specified by:
checkBoxin interfaceComponentContainerFixture- Parameters:
name- the name to match.- Returns:
- a fixture that manages the
JCheckBoxfound.
-
comboBox
- Specified by:
comboBoxin interfaceComponentContainerFixture- Returns:
- a fixture that manages the
JComboBoxfound.
-
comboBox
- Specified by:
comboBoxin interfaceComponentContainerFixture- Parameters:
matcher- contains the search criteria for finding aJComboBox.- Returns:
- a fixture that manages the
JComboBoxfound.
-
comboBox
- Specified by:
comboBoxin interfaceComponentContainerFixture- Parameters:
name- the name to match.- Returns:
- a fixture that manages the
JComboBoxfound.
-
dialog
Returns the onlycurrently available (if any.) This method uses the value defined inDialogas the default lookup timeout.ComponentContainerFixture.DEFAULT_DIALOG_LOOKUP_TIMEOUT- Specified by:
dialogin interfaceComponentContainerFixture- Returns:
- a fixture that manages the
Dialogfound. - See Also:
-
dialog
Returns the onlycurrently available (if any.)Dialog- Specified by:
dialogin interfaceComponentContainerFixture- Parameters:
timeout- the amount of time to wait for aDialogto be found.- Returns:
- a fixture that manages the
Dialogfound.
-
dialog
Finds athat matches the specified search criteria. This method uses the value defined inDialogas the default lookup timeout.ComponentContainerFixture.DEFAULT_DIALOG_LOOKUP_TIMEOUT- Specified by:
dialogin interfaceComponentContainerFixture- Parameters:
matcher- contains the search criteria for finding aDialog.- Returns:
- a fixture that manages the
Dialogfound. - See Also:
-
dialog
Finds athat matches the specified search criteria.Dialog- Specified by:
dialogin interfaceComponentContainerFixture- Parameters:
matcher- contains the search criteria for finding aDialog.timeout- the amount of time to wait for aDialogto be found.- Returns:
- a fixture that manages the
Dialogfound.
-
dialog
Finds awith a name matching the specified one. This method uses the value defined inDialogas the default lookup timeout.ComponentContainerFixture.DEFAULT_DIALOG_LOOKUP_TIMEOUT- Specified by:
dialogin interfaceComponentContainerFixture- Parameters:
name- the name to match.- Returns:
- a fixture that manages the
Dialogfound. - See Also:
-
dialog
Finds awith a name matching the specified one.Dialog- Specified by:
dialogin interfaceComponentContainerFixture- Parameters:
name- the name to match.timeout- the amount of time to wait for aDialogto be found.- Returns:
- a fixture that manages the
Dialogfound.
-
findDialog
-
fileChooser
Returns the onlycurrently available (if any.) This method uses the value defined inJFileChooseras the default lookup timeout.ComponentContainerFixture.DEFAULT_DIALOG_LOOKUP_TIMEOUT- Specified by:
fileChooserin interfaceComponentContainerFixture- Returns:
- a fixture that manages the
JFileChooserfound. - See Also:
-
fileChooser
Returns the onlycurrently available (if any.)JFileChooser- Specified by:
fileChooserin interfaceComponentContainerFixture- Parameters:
timeout- the amount of time to wait for aJFileChooserto be found.- Returns:
- a fixture that manages the
JFileChooserfound.
-
fileChooser
Finds athat matches the specified search criteria. This method uses the value defined inJFileChooseras the default lookup timeout.ComponentContainerFixture.DEFAULT_DIALOG_LOOKUP_TIMEOUT- Specified by:
fileChooserin interfaceComponentContainerFixture- Parameters:
matcher- contains the search criteria for finding aJFileChooser.- Returns:
- a fixture that manages the
JFileChooserfound. - See Also:
-
fileChooser
public JFileChooserFixture fileChooser(GenericTypeMatcher<? extends JFileChooser> matcher, Timeout timeout) Finds athat matches the specified search criteria.JFileChooser- Specified by:
fileChooserin interfaceComponentContainerFixture- Parameters:
matcher- contains the search criteria for finding aJFileChooser.timeout- the amount of time to wait for aJFileChooserto be found.- Returns:
- a fixture that manages the
JFileChooserfound.
-
fileChooser
Finds awith a name matching the specified one. This method uses the value defined inJFileChooseras the default lookup timeout.ComponentContainerFixture.DEFAULT_DIALOG_LOOKUP_TIMEOUT- Specified by:
fileChooserin interfaceComponentContainerFixture- Parameters:
name- the name to match.- Returns:
- a fixture that manages the
JFileChooserfound. - See Also:
-
fileChooser
Finds awith a name matching the specified one.JFileChooser- Specified by:
fileChooserin interfaceComponentContainerFixture- Parameters:
name- the name to match.timeout- the amount of time to wait for aJFileChooserto be found.- Returns:
- a fixture that manages the
JFileChooserfound.
-
findFileChooser
-
label
- Specified by:
labelin interfaceComponentContainerFixture- Returns:
- a fixture that manages the
JLabelfound.
-
label
- Specified by:
labelin interfaceComponentContainerFixture- Parameters:
matcher- contains the search criteria for finding aJLabel.- Returns:
- a fixture that manages the
JLabelfound.
-
label
- Specified by:
labelin interfaceComponentContainerFixture- Parameters:
name- the name to match.- Returns:
- a fixture that manages the
JLabelfound.
-
list
- Specified by:
listin interfaceComponentContainerFixture- Returns:
- a fixture that manages the
JListfound.
-
list
- Specified by:
listin interfaceComponentContainerFixture- Parameters:
matcher- contains the search criteria for finding aJList.- Returns:
- a fixture that manages the
JListfound.
-
list
- Specified by:
listin interfaceComponentContainerFixture- Parameters:
name- the name to match.- Returns:
- a fixture that manages the
JListfound.
-
optionPane
Returns the onlycurrently available (if any.) This method uses the value defined inJOptionPaneas the default lookup timeout.ComponentContainerFixture.DEFAULT_DIALOG_LOOKUP_TIMEOUT- Specified by:
optionPanein interfaceComponentContainerFixture- Returns:
- a fixture that manages the
JOptionPanefound. - See Also:
-
optionPane
Returns the onlycurrently available (if any.)JOptionPane- Specified by:
optionPanein interfaceComponentContainerFixture- Parameters:
timeout- the amount of time to wait for aJOptionPaneto be found.- Returns:
- a fixture that manages the
JOptionPanefound.
-
panel
- Specified by:
panelin interfaceComponentContainerFixture- Returns:
- a fixture that manages the
JPanelfound.
-
panel
- Specified by:
panelin interfaceComponentContainerFixture- Parameters:
matcher- contains the search criteria for finding aJPanel.- Returns:
- a fixture that manages the
JPanelfound.
-
panel
- Specified by:
panelin interfaceComponentContainerFixture- Parameters:
name- the name to match.- Returns:
- a fixture that manages the
JPanelfound.
-
progressBar
Returns afound in this fixture'sJProgressBar.Container- Specified by:
progressBarin interfaceComponentContainerFixture- Returns:
- a fixture that manages the
JProgressBarfound.
-
progressBar
Finds ain this fixture'sJProgressBar, that matches the specified search criteria.Container- Specified by:
progressBarin interfaceComponentContainerFixture- Parameters:
matcher- contains the search criteria for finding aJProgressBar.- Returns:
- a fixture that manages the
JProgressBarfound.
-
progressBar
Finds ain this fixture'sJProgressBar, which name matches the specified one.Container- Specified by:
progressBarin interfaceComponentContainerFixture- Parameters:
name- the name to match.- Returns:
- a fixture that manages the
JProgressBarfound.
-
radioButton
Returns afound in this fixture'sJRadioButton.Container- Specified by:
radioButtonin interfaceComponentContainerFixture- Returns:
- a fixture that manages the
JRadioButtonfound.
-
radioButton
Finds ain this fixture'sJRadioButton, that matches the specified search criteria.Container- Specified by:
radioButtonin interfaceComponentContainerFixture- Parameters:
matcher- contains the search criteria for finding aJRadioButton.- Returns:
- a fixture that manages the
JRadioButtonfound.
-
radioButton
Finds ain this fixture'sJRadioButton, which name matches the specified one.Container- Specified by:
radioButtonin interfaceComponentContainerFixture- Parameters:
name- the name to match.- Returns:
- a fixture that manages the
JRadioButtonfound.
-
scrollBar
Returns afound in this fixture'sJScrollBar.Container- Specified by:
scrollBarin interfaceComponentContainerFixture- Returns:
- a fixture that manages the
JScrollBarfound.
-
scrollBar
Finds ain this fixture'sJScrollBar, that matches the specified search criteria.Container- Specified by:
scrollBarin interfaceComponentContainerFixture- Parameters:
matcher- contains the search criteria for finding aJScrollBar.- Returns:
- a fixture that manages the
JScrollBarfound.
-
scrollBar
Finds ain this fixture'sJScrollBar, which name matches the specified one.Container- Specified by:
scrollBarin interfaceComponentContainerFixture- Parameters:
name- the name to match.- Returns:
- a fixture that manages the
JScrollBarfound.
-
scrollPane
Returns afound in this fixture'sJScrollPane.Container- Specified by:
scrollPanein interfaceComponentContainerFixture- Returns:
- a fixture that manages the
JScrollPanefound.
-
scrollPane
Finds ain this fixture'sJScrollPane, that matches the specified search criteria.Container- Specified by:
scrollPanein interfaceComponentContainerFixture- Parameters:
matcher- contains the search criteria for finding aJScrollPane.- Returns:
- a fixture that manages the
JScrollPanefound.
-
scrollPane
Finds ain this fixture'sJScrollPane, which name matches the specified one.Container- Specified by:
scrollPanein interfaceComponentContainerFixture- Parameters:
name- the name to match.- Returns:
- a fixture that manages the
JScrollPanefound.
-
slider
- Specified by:
sliderin interfaceComponentContainerFixture- Returns:
- a fixture that manages the
JSliderfound.
-
slider
- Specified by:
sliderin interfaceComponentContainerFixture- Parameters:
matcher- contains the search criteria for finding aJSlider.- Returns:
- a fixture that manages the
JSliderfound.
-
slider
- Specified by:
sliderin interfaceComponentContainerFixture- Parameters:
name- the name to match.- Returns:
- a fixture that manages the
JSliderfound.
-
spinner
- Specified by:
spinnerin interfaceComponentContainerFixture- Returns:
- a fixture that manages the
JSpinnerfound.
-
spinner
- Specified by:
spinnerin interfaceComponentContainerFixture- Parameters:
matcher- contains the search criteria for finding aJSpinner.- Returns:
- a fixture that manages the
JSpinnerfound.
-
spinner
- Specified by:
spinnerin interfaceComponentContainerFixture- Parameters:
name- the name to match.- Returns:
- a fixture that manages the
JSpinnerfound.
-
splitPane
Returns thefound in this fixture'sJSplitPane.Container- Specified by:
splitPanein interfaceComponentContainerFixture- Returns:
- a fixture that manages the
JSplitPanefound.
-
splitPane
Finds ain this fixture'sJSplitPane, that matches the specified search criteria.Container- Specified by:
splitPanein interfaceComponentContainerFixture- Parameters:
matcher- contains the search criteria for finding aJSplitPane.- Returns:
- a fixture that manages the
JSplitPanefound.
-
splitPane
Finds ain this fixture'sJSplitPane, which name matches the specified one.Container- Specified by:
splitPanein interfaceComponentContainerFixture- Parameters:
name- the name to match.- Returns:
- a fixture that manages the
JSplitPanefound.
-
tabbedPane
Returns afound in this fixture'sJTabbedPane.Container- Specified by:
tabbedPanein interfaceComponentContainerFixture- Returns:
- a fixture that manages the
JTabbedPanefound.
-
tabbedPane
Finds ain this fixture'sJTabbedPane, that matches the specified search criteria.Container- Specified by:
tabbedPanein interfaceComponentContainerFixture- Parameters:
matcher- contains the search criteria for finding aJTabbedPane.- Returns:
- a fixture that manages the
JTabbedPanefound.
-
tabbedPane
Finds ain this fixture'sJTabbedPane, which name matches the specified one.Container- Specified by:
tabbedPanein interfaceComponentContainerFixture- Parameters:
name- the name to match.- Returns:
- a fixture that manages the
JTabbedPanefound.
-
table
- Specified by:
tablein interfaceComponentContainerFixture- Returns:
- a fixture that manages the
JTablefound.
-
table
- Specified by:
tablein interfaceComponentContainerFixture- Parameters:
matcher- contains the search criteria for finding aJTable.- Returns:
- a fixture that manages the
JTablefound.
-
table
- Specified by:
tablein interfaceComponentContainerFixture- Parameters:
name- the name to match.- Returns:
- a fixture that manages the
JTablefound.
-
textBox
Returns afound in this fixture'sJTextComponent.Container- Specified by:
textBoxin interfaceComponentContainerFixture- Returns:
- a fixture that manages the
JTextComponentfound.
-
textBox
Finds ain this fixture'sJTextComponentmanaged by this fixture, that matches the specified search criteria.Container- Specified by:
textBoxin interfaceComponentContainerFixture- Parameters:
matcher- contains the search criteria for finding aJTextComponent.- Returns:
- a fixture that manages the
JTextComponentfound.
-
textBox
Finds ain this fixture'sJTextComponentmanaged by this fixture, which name matches the specified one.Container- Specified by:
textBoxin interfaceComponentContainerFixture- Parameters:
name- the name to match.- Returns:
- a fixture that manages the
JTextComponentfound.
-
toggleButton
Returns afound in this fixture'sJToggleButton.Container- Specified by:
toggleButtonin interfaceComponentContainerFixture- Returns:
- a fixture that manages the
JToggleButtonfound.
-
toggleButton
Finds ain this fixture'sJToggleButton, that matches the specified search criteria.Container- Specified by:
toggleButtonin interfaceComponentContainerFixture- Parameters:
matcher- contains the search criteria for finding aJToggleButton.- Returns:
- a fixture that manages the
JToggleButtonfound.
-
toggleButton
Finds ain this fixture'sJToggleButton, which name matches the specified one.Container- Specified by:
toggleButtonin interfaceComponentContainerFixture- Parameters:
name- the name to match.- Returns:
- a fixture that manages the
JToggleButtonfound.
-
toolBar
- Specified by:
toolBarin interfaceComponentContainerFixture- Returns:
- a fixture that manages the
JToolBarfound.
-
toolBar
- Specified by:
toolBarin interfaceComponentContainerFixture- Parameters:
matcher- contains the search criteria for finding aJToolBar.- Returns:
- a fixture that manages the
JToolBarfound.
-
toolBar
- Specified by:
toolBarin interfaceComponentContainerFixture- Parameters:
name- the name to match.- Returns:
- a fixture that manages the
JToolBarfound.
-
tree
- Specified by:
treein interfaceComponentContainerFixture- Returns:
- a fixture that manages the
JTreefound.
-
tree
- Specified by:
treein interfaceComponentContainerFixture- Parameters:
matcher- contains the search criteria for finding aJTree.- Returns:
- a fixture that manages the
JTreefound.
-
tree
- Specified by:
treein interfaceComponentContainerFixture- Parameters:
name- the name to match.- Returns:
- a fixture that manages the
JTreefound.
-
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 amanaging a component inside this fixture'sComponentFixture. This is an extension method, to allow implementations ofContainerhandle custom GUI components.ContainerFixture- Specified by:
within interfaceComponentContainerFixture- Type Parameters:
C- the type ofComponentthe fixture to return can handle.F- the type ofComponentFixtureto return.- Parameters:
extension- theComponentFixtureExtensionthat creates theComponentFixtureto return.- Returns:
- a
ComponentFixturemanaging a component inside this fixture'sContainer.
-
finder
Returns thecontained in this fixture'sComponentFinder.Robot- Returns:
- the
ComponentFindercontained in this fixture'sRobot.
-