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 TimeoutThe 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 onlycurrently available (if any.) This method uses the value defined inDialogas the default lookup timeout.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.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.)JFileChooserlabel()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.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.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
JButtonfound. - Throws:
ComponentLookupException- if aJButtoncould not be found.ComponentLookupException- if more than oneJButtonis found.
-
button
- Parameters:
matcher- contains the search criteria for finding aJButton.- Returns:
- a fixture that manages the
JButtonfound. - Throws:
ComponentLookupException- if aJButtonthat matches the given search criteria could not be found.ComponentLookupException- if more than oneJButtonthat matches the given search criteria is found.
-
button
- Parameters:
name- the name to match.- Returns:
- a fixture that manages the
JButtonfound. - Throws:
ComponentLookupException- if aJButtonhaving a matching name could not be found.ComponentLookupException- if more than oneJButtonhaving a matching name is found.
-
checkBox
JCheckBoxFixture checkBox()- Returns:
- a fixture that manages the
JCheckBoxfound. - Throws:
ComponentLookupException- if aJCheckBoxcould not be found.ComponentLookupException- if more than oneJCheckBoxis found.
-
checkBox
- Parameters:
matcher- contains the search criteria for finding aJCheckBox.- Returns:
- a fixture that manages the
JCheckBoxfound. - Throws:
ComponentLookupException- if aJCheckBoxthat matches the given search criteria could not be found.ComponentLookupException- if more than oneJCheckBoxthat matches the given search criteria is found.
-
checkBox
- Parameters:
name- the name to match.- Returns:
- a fixture that manages the
JCheckBoxfound. - Throws:
ComponentLookupException- if aJCheckBoxhaving a matching name could not be found.
-
comboBox
JComboBoxFixture comboBox()- Returns:
- a fixture that manages the
JComboBoxfound. - Throws:
ComponentLookupException- if aJComboBoxcould not be found.ComponentLookupException- if more than oneJComboBoxis found.
-
comboBox
- Parameters:
matcher- contains the search criteria for finding aJComboBox.- Returns:
- a fixture that manages the
JComboBoxfound. - Throws:
ComponentLookupException- if aJComboBoxthat matches the given search criteria could not be found.ComponentLookupException- if more than oneJComboBoxthat matches the given search criteria is found.
-
comboBox
- Parameters:
name- the name to match.- Returns:
- a fixture that manages the
JComboBoxfound. - Throws:
ComponentLookupException- if aJComboBoxhaving a matching name could not be found.ComponentLookupException- if more than oneJComboBoxhaving a matching name is found.
-
dialog
DialogFixture dialog()Returns the onlycurrently available (if any.) This method uses the value defined inDialogas the default lookup timeout.DEFAULT_DIALOG_LOOKUP_TIMEOUT- Returns:
- a fixture that manages the
Dialogfound. - Throws:
WaitTimedOutError- if aDialogcould not be found.- See Also:
-
dialog
Returns the onlycurrently available (if any.)Dialog- Parameters:
timeout- the amount of time to wait for aDialogto be found.- Returns:
- a fixture that manages the
Dialogfound. - Throws:
WaitTimedOutError- if aDialogcould not be found.- Since:
- 1.2
-
dialog
Finds athat matches the specified search criteria. This method uses the value defined inDialogas the default lookup timeout.DEFAULT_DIALOG_LOOKUP_TIMEOUT- Parameters:
matcher- contains the search criteria for finding aDialog.- Returns:
- a fixture that manages the
Dialogfound. - Throws:
WaitTimedOutError- if aDialogthat matches the given search criteria could not be found.- See Also:
-
dialog
Finds athat matches the specified search criteria.Dialog- 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. - Throws:
WaitTimedOutError- if aDialogthat matches the given search criteria could not be found.- Since:
- 1.2
-
dialog
Finds awith a name matching the specified one. This method uses the value defined inDialogas the default lookup timeout.DEFAULT_DIALOG_LOOKUP_TIMEOUT- Parameters:
name- the name to match.- Returns:
- a fixture that manages the
Dialogfound. - Throws:
WaitTimedOutError- if aDialogthat a matching name could not be found.- See Also:
-
dialog
Finds awith a name matching the specified one.Dialog- Parameters:
name- the name to match.timeout- the amount of time to wait for aDialogto be found.- Returns:
- a fixture that manages the
Dialogfound. - Throws:
WaitTimedOutError- if aDialogthat a matching name could not be found.- Since:
- 1.2
-
fileChooser
JFileChooserFixture fileChooser()Returns the onlycurrently available (if any.) This method uses the value defined inJFileChooseras the default lookup timeout.DEFAULT_DIALOG_LOOKUP_TIMEOUT- Returns:
- a fixture that manages the
JFileChooserfound. - Throws:
WaitTimedOutError- if aJFileChoosercould not be found.- See Also:
-
fileChooser
Returns the onlycurrently available (if any.)JFileChooser- Parameters:
timeout- the amount of time to wait for aJFileChooserto be found.- Returns:
- a fixture that manages the
JFileChooserfound. - Throws:
WaitTimedOutError- if aJFileChoosercould not be found.
-
fileChooser
Finds athat matches the specified search criteria. This method uses the value defined inJFileChooseras the default lookup timeout.DEFAULT_DIALOG_LOOKUP_TIMEOUT- Parameters:
matcher- contains the search criteria for finding aJFileChooser.- Returns:
- a fixture that manages the
JFileChooserfound. - Throws:
WaitTimedOutError- if aJFileChoosercould not be found.- See Also:
-
fileChooser
JFileChooserFixture fileChooser(GenericTypeMatcher<? extends JFileChooser> matcher, Timeout timeout) Finds athat matches the specified search criteria.JFileChooser- 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. - Throws:
WaitTimedOutError- if aJFileChoosercould not be found.
-
fileChooser
Finds awith a name matching the specified one. This method uses the value defined inJFileChooseras the default lookup timeout.DEFAULT_DIALOG_LOOKUP_TIMEOUT- Parameters:
name- the name to match.- Returns:
- a fixture that manages the
JFileChooserfound. - Throws:
WaitTimedOutError- if aJFileChoosercould not be found.- See Also:
-
fileChooser
Finds awith a name matching the specified one.JFileChooser- Parameters:
name- the name to match.timeout- the amount of time to wait for aJFileChooserto be found.- Returns:
- a fixture that manages the
JFileChooserfound. - Throws:
WaitTimedOutError- if aJFileChoosercould not be found.
-
label
JLabelFixture label()- Returns:
- a fixture that manages the
JLabelfound. - Throws:
ComponentLookupException- if aJLabelcould not be found.ComponentLookupException- if more than oneJLabelis found.
-
label
- Parameters:
matcher- contains the search criteria for finding aJLabel.- Returns:
- a fixture that manages the
JLabelfound. - Throws:
ComponentLookupException- if aJLabelthat matches the given search criteria could not be found.ComponentLookupException- if more than oneJLabelthat matches the given search criteria is found.
-
label
- Parameters:
name- the name to match.- Returns:
- a fixture that manages the
JLabelfound. - Throws:
ComponentLookupException- if aJLabelhaving a matching name could not be found.ComponentLookupException- if more than oneJLabelhaving a matching name could is found.
-
list
JListFixture list()- Returns:
- a fixture that manages the
JListfound. - Throws:
ComponentLookupException- if aJListcould not be found.ComponentLookupException- if more than oneJListis found.
-
list
- Parameters:
matcher- contains the search criteria for finding aJList.- Returns:
- a fixture that manages the
JListfound. - Throws:
ComponentLookupException- if aJListthat matches the given search criteria could not be found.ComponentLookupException- if more than oneJListthat matches the given search criteria is found.
-
list
- Parameters:
name- the name to match.- Returns:
- a fixture that manages the
JListfound. - Throws:
ComponentLookupException- if aJListhaving a matching name could not be found.ComponentLookupException- if more than oneJListhaving a matching name is found.
-
optionPane
JOptionPaneFixture optionPane()Returns the onlycurrently available (if any.) This method uses the value defined inJOptionPaneas the default lookup timeout.DEFAULT_DIALOG_LOOKUP_TIMEOUT- Returns:
- a fixture that manages the
JOptionPanefound. - Throws:
WaitTimedOutError- if aJOptionPanecould not be found.- See Also:
-
optionPane
Returns the onlycurrently available (if any.)JOptionPane- Parameters:
timeout- the amount of time to wait for aJOptionPaneto be found.- Returns:
- a fixture that manages the
JOptionPanefound. - Throws:
WaitTimedOutError- if aJOptionPanecould not be found.
-
panel
JPanelFixture panel()- Returns:
- a fixture that manages the
JPanelfound. - Throws:
ComponentLookupException- if aJPanelcould not be found.ComponentLookupException- if more than oneJPanelis found.
-
panel
- Parameters:
matcher- contains the search criteria for finding aJPanel.- Returns:
- a fixture that manages the
JPanelfound. - Throws:
ComponentLookupException- if aJPanelthat matches the given search criteria could not be found.ComponentLookupException- if more than oneJPanelthat matches the given search criteria is found.
-
panel
- Parameters:
name- the name to match.- Returns:
- a fixture that manages the
JPanelfound. - Throws:
ComponentLookupException- if aJPanelhaving a matching name could not be found.
-
progressBar
JProgressBarFixture progressBar()Returns afound in this fixture'sJProgressBar.Container- Returns:
- a fixture that manages the
JProgressBarfound. - Throws:
ComponentLookupException- if aJProgressBarcould not be found.ComponentLookupException- if more than oneJProgressBaris found.
-
progressBar
Finds ain 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
JProgressBarfound. - Throws:
ComponentLookupException- if aJProgressBarthat matches the given search criteria could not be found.ComponentLookupException- if more than oneJProgressBarthat matches the given search criteria is found.
-
progressBar
Finds ain this fixture'sJProgressBar, which name matches the specified one.Container- Parameters:
name- the name to match.- Returns:
- a fixture that manages the
JProgressBarfound. - Throws:
ComponentLookupException- if aJProgressBarhaving a matching name could not be found.
-
radioButton
JRadioButtonFixture radioButton()Returns afound in this fixture'sJRadioButton.Container- Returns:
- a fixture that manages the
JRadioButtonfound. - Throws:
ComponentLookupException- if aJRadioButtoncould not be found.ComponentLookupException- if more than oneJRadioButtonis found.
-
radioButton
Finds ain 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
JRadioButtonfound. - Throws:
ComponentLookupException- if aJRadioButtonthat matches the given search criteria could not be found.ComponentLookupException- if more than oneJRadioButtonthat matches the given search criteria is found.
-
radioButton
Finds ain this fixture'sJRadioButton, which name matches the specified one.Container- Parameters:
name- the name to match.- Returns:
- a fixture that manages the
JRadioButtonfound. - Throws:
ComponentLookupException- if aJRadioButtonhaving a matching name could not be found.ComponentLookupException- if more than oneJRadioButtonhaving a matching name is found.
-
scrollBar
JScrollBarFixture scrollBar()Returns afound in this fixture'sJScrollBar.Container- Returns:
- a fixture that manages the
JScrollBarfound. - Throws:
ComponentLookupException- if aJScrollBarcould not be found.ComponentLookupException- if more than oneJScrollBaris found.
-
scrollBar
Finds ain 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
JScrollBarfound. - Throws:
ComponentLookupException- if aJScrollBarthat matches the given search criteria could not be found.ComponentLookupException- if more than oneJScrollBarthat matches the given search criteria is found.
-
scrollBar
Finds ain this fixture'sJScrollBar, which name matches the specified one.Container- Parameters:
name- the name to match.- Returns:
- a fixture that manages the
JScrollBarfound. - Throws:
ComponentLookupException- if aJScrollBarhaving a matching name could not be found.ComponentLookupException- if more than oneJScrollBarhaving a matching name is found.
-
scrollPane
JScrollPaneFixture scrollPane()Returns afound in this fixture'sJScrollPane.Container- Returns:
- a fixture that manages the
JScrollPanefound. - Throws:
ComponentLookupException- if aJScrollPanecould not be found.ComponentLookupException- if more than oneJScrollPaneis found.
-
scrollPane
Finds ain 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
JScrollPanefound. - Throws:
ComponentLookupException- if aJScrollPanethat matches the given search criteria could not be found.ComponentLookupException- if more than oneJScrollPanethat matches the given search criteria is found.
-
scrollPane
Finds ain this fixture'sJScrollPane, which name matches the specified one.Container- Parameters:
name- the name to match.- Returns:
- a fixture that manages the
JScrollPanefound. - Throws:
ComponentLookupException- if aJScrollPanehaving a matching name could not be found.ComponentLookupException- if more than oneJScrollPanehaving a matching name is found.
-
slider
JSliderFixture slider()- Returns:
- a fixture that manages the
JSliderfound. - Throws:
ComponentLookupException- if aJSlidercould not be found.ComponentLookupException- if more than oneJSlideris found.
-
slider
- Parameters:
matcher- contains the search criteria for finding aJSlider.- Returns:
- a fixture that manages the
JSliderfound. - Throws:
ComponentLookupException- if aJSliderthat matches the given search criteria could not be found.ComponentLookupException- if more than oneJSliderthat matches the given search criteria is found.
-
slider
- Parameters:
name- the name to match.- Returns:
- a fixture that manages the
JSliderfound. - Throws:
ComponentLookupException- if aJSliderhaving a matching name could not be found.ComponentLookupException- if more than oneJSliderhaving a matching name is found.
-
spinner
JSpinnerFixture spinner()- Returns:
- a fixture that manages the
JSpinnerfound. - Throws:
ComponentLookupException- if aJSpinnercould not be found.ComponentLookupException- if more than oneJSpinneris found.
-
spinner
- Parameters:
matcher- contains the search criteria for finding aJSpinner.- Returns:
- a fixture that manages the
JSpinnerfound. - Throws:
ComponentLookupException- if aJSpinnerthat matches the given search criteria could not be found.ComponentLookupException- if more than oneJSpinnerthat matches the given search criteria is found.
-
spinner
- Parameters:
name- the name to match.- Returns:
- a fixture that manages the
JSpinnerfound. - Throws:
ComponentLookupException- if aJSpinnerhaving a matching name could not be found.ComponentLookupException- if more than oneJSpinnerhaving a matching name is found.
-
splitPane
JSplitPaneFixture splitPane()Returns thefound in this fixture'sJSplitPane.Container- Returns:
- a fixture that manages the
JSplitPanefound. - Throws:
ComponentLookupException- if aJSplitPanecould not be found.ComponentLookupException- if more than oneJSplitPaneis found.
-
splitPane
Finds ain 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
JSplitPanefound. - Throws:
ComponentLookupException- if aJSplitPanethat matches the given search criteria could not be found.ComponentLookupException- if more than oneJSplitPanethat matches the given search criteria is found.
-
splitPane
Finds ain this fixture'sJSplitPane, which name matches the specified one.Container- Parameters:
name- the name to match.- Returns:
- a fixture that manages the
JSplitPanefound. - Throws:
ComponentLookupException- if aJSplitPanehaving a matching name could not be found.ComponentLookupException- if more than oneJSplitPanehaving a matching name is found.
-
tabbedPane
JTabbedPaneFixture tabbedPane()Returns afound in this fixture'sJTabbedPane.Container- Returns:
- a fixture that manages the
JTabbedPanefound. - Throws:
ComponentLookupException- if aJTabbedPanecould not be found.ComponentLookupException- if more than oneJTabbedPaneis found.
-
tabbedPane
Finds ain 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
JTabbedPanefound. - Throws:
ComponentLookupException- if aJTabbedPanethat matches the given search criteria could not be found.ComponentLookupException- if more than oneJTabbedPanethat matches the given search criteria is found.
-
tabbedPane
Finds ain this fixture'sJTabbedPane, which name matches the specified one.Container- Parameters:
name- the name to match.- Returns:
- a fixture that manages the
JTabbedPanefound. - Throws:
ComponentLookupException- if aJTabbedPanehaving a matching name could not be found.ComponentLookupException- if more than oneJTabbedPanehaving a matching name is found.
-
table
JTableFixture table()- Returns:
- a fixture that manages the
JTablefound. - Throws:
ComponentLookupException- if aJTablehaving a matching name could not be found.ComponentLookupException- if more than oneJTablehaving a matching name is found.
-
table
- Parameters:
matcher- contains the search criteria for finding aJTable.- Returns:
- a fixture that manages the
JTablefound. - Throws:
ComponentLookupException- if aJTablethat matches the given search criteria could not be found.ComponentLookupException- if more than oneJTablethat matches the given search criteria is found.
-
table
- Parameters:
name- the name to match.- Returns:
- a fixture that manages the
JTablefound. - Throws:
ComponentLookupException- if aJTablehaving a matching name could not be found.ComponentLookupException- if more than oneJTablehaving a matching name is found.
-
textBox
JTextComponentFixture textBox()Returns afound in this fixture'sJTextComponent.Container- Returns:
- a fixture that manages the
JTextComponentfound. - Throws:
ComponentLookupException- if aJTextComponenthaving a matching name could not be found.ComponentLookupException- if more than oneJTextComponenthaving a matching name is found.
-
textBox
Finds ain this fixture'sJTextComponentmanaged 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
JTextComponentfound. - Throws:
ComponentLookupException- if aJTextComponentthat matches the given search criteria could not be found.ComponentLookupException- if more than oneJTextComponentthat matches the given search criteria is found.
-
textBox
Finds ain this fixture'sJTextComponentmanaged by this fixture, which name matches the specified one.Container- Parameters:
name- the name to match.- Returns:
- a fixture that manages the
JTextComponentfound. - Throws:
ComponentLookupException- if aJTextComponenthaving a matching name could not be found.ComponentLookupException- if more than oneJTextComponenthaving a matching name is found.
-
toggleButton
JToggleButtonFixture toggleButton()Returns afound in this fixture'sJToggleButton.Container- Returns:
- a fixture that manages the
JToggleButtonfound. - Throws:
ComponentLookupException- if aJToggleButtoncould not be found.ComponentLookupException- if more than oneJToggleButtonis found.
-
toggleButton
Finds ain 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
JToggleButtonfound. - Throws:
ComponentLookupException- if aJToggleButtonthat matches the given search criteria could not be found.ComponentLookupException- if more than oneJToggleButtonthat matches the given search criteria is found.
-
toggleButton
Finds ain this fixture'sJToggleButton, which name matches the specified one.Container- Parameters:
name- the name to match.- Returns:
- a fixture that manages the
JToggleButtonfound. - Throws:
ComponentLookupException- if aJToggleButtonhaving a matching name could not be found.ComponentLookupException- if more than oneJToggleButtonhaving a matching name is found.
-
toolBar
JToolBarFixture toolBar()- Returns:
- a fixture that manages the
JToolBarfound. - Throws:
ComponentLookupException- if aJToolBarhaving a matching name could not be found.ComponentLookupException- if more than oneJToolBarhaving a matching name could is found.
-
toolBar
- Parameters:
matcher- contains the search criteria for finding aJToolBar.- Returns:
- a fixture that manages the
JToolBarfound. - Throws:
ComponentLookupException- if aJToolBarthat matches the given search criteria could not be found.ComponentLookupException- if more than oneJToolBarthat matches the given search criteria is found.
-
toolBar
- Parameters:
name- the name to match.- Returns:
- a fixture that manages the
JToolBarfound. - Throws:
ComponentLookupException- if aJToolBarhaving a matching name could not be found.ComponentLookupException- if more than oneJToolBarhaving a matching name is found.
-
tree
JTreeFixture tree()- Returns:
- a fixture that manages the
JTreefound. - Throws:
ComponentLookupException- if aJTreehaving a matching name could not be found.ComponentLookupException- if more than oneJTreehaving a matching name is found.
-
tree
- Parameters:
matcher- contains the search criteria for finding aJTree.- Returns:
- a fixture that manages the
JTreefound. - Throws:
ComponentLookupException- if aJTreethat matches the given search criteria could not be found.ComponentLookupException- if more than oneJTreethat matches the given search criteria is found.
-
tree
- Parameters:
name- the name to match.- Returns:
- a fixture that manages the
JTreefound. - Throws:
ComponentLookupException- if aJTreehaving a matching name could not be found.ComponentLookupException- if more than oneJTreehaving a matching name is found.
-
with
<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- 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.
-