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 themanaged by this fixture.ComponentSimulates a user entering the given text in themanaged by this fixture.ComponentSimulates a user selecting the given text contained in themanaged by this fixture.ComponentSimulates a user selecting all the text contained in themanaged by this fixture.ComponentselectText(int start, int end) Simulates a user selecting a portion of the text contained in themanaged by this fixture.ComponentMethods inherited from interface org.fest.swing.fixture.EditableComponentFixture
requireEditable, requireNotEditableMethods inherited from interface org.fest.swing.fixture.TextDisplayFixture
requireText, requireText, text
-
Method Details
-
enterText
Simulates a user entering the given text in themanaged by this fixture.Component- Parameters:
text- the text to enter.- Returns:
- this fixture.
-
deleteText
TextInputFixture deleteText()Simulates a user deleting all the text in themanaged by this fixture.Component- Returns:
- this fixture.
-
selectAll
TextInputFixture selectAll()Simulates a user selecting all the text contained in themanaged by this fixture.Component- Returns:
- this fixture.
-
selectText
Simulates a user selecting a portion of the text contained in themanaged 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 themanaged by this fixture.Component- Parameters:
text- the text to select.- Returns:
- this fixture.
-