Package org.fest.swing.fixture
Interface TextInputFixture
- All Superinterfaces:
EditableComponentFixture
,TextDisplayFixture
- All Known Implementing Classes:
JTextComponentFixture
Understands simulation of user events on GUI components that accept text input from the user.
-
Method Summary
Modifier and TypeMethodDescriptionSimulates a user deleting all the text in the
managed by this fixture.Component
Simulates a user entering the given text in the
managed by this fixture.Component
Simulates a user selecting the given text contained in the
managed by this fixture.Component
Simulates a user selecting all the text contained in the
managed by this fixture.Component
selectText
(int start, int end) Simulates a user selecting a portion of the text contained in the
managed by this fixture.Component
Methods inherited from interface org.fest.swing.fixture.EditableComponentFixture
requireEditable, requireNotEditable
Methods inherited from interface org.fest.swing.fixture.TextDisplayFixture
requireText, requireText, text
-
Method Details
-
enterText
Simulates a user entering the given text in the
managed by this fixture.Component
- Parameters:
text
- the text to enter.- Returns:
- this fixture.
-
deleteText
TextInputFixture deleteText()Simulates a user deleting all the text in the
managed by this fixture.Component
- Returns:
- this fixture.
-
selectAll
TextInputFixture selectAll()Simulates a user selecting all the text contained in the
managed by this fixture.Component
- Returns:
- this fixture.
-
selectText
Simulates a user selecting a portion of the text contained in the
managed by this fixture.Component
- Parameters:
start
- index where selection should start.end
- index where selection should end.- Returns:
- this fixture.
-
select
Simulates a user selecting the given text contained in the
managed by this fixture.Component
- Parameters:
text
- the text to select.- Returns:
- this fixture.
-