org.fest.swing.fixture
Interface TextInputFixture

All Superinterfaces:
EditableComponentFixture, TextDisplayFixture
All Known Implementing Classes:
JTextComponentFixture

public interface TextInputFixture
extends TextDisplayFixture, EditableComponentFixture

Understands simulation of user events on GUI components that accept text input from the user.

Author:
Alex Ruiz

Method Summary
 TextInputFixture deleteText()
          Simulates a user deleting all the text in the Component managed by this fixture.
 TextInputFixture enterText(String text)
          Simulates a user entering the given text in the Component managed by this fixture.
 TextInputFixture select(String text)
          Simulates a user selecting the given text contained in the Component managed by this fixture.
 TextInputFixture selectAll()
          Simulates a user selecting all the text contained in the Component managed by this fixture.
 TextInputFixture selectText(int start, int end)
          Simulates a user selecting a portion of the text contained in the Component managed by this fixture.
 
Methods inherited from interface org.fest.swing.fixture.TextDisplayFixture
requireText, requireText, text
 
Methods inherited from interface org.fest.swing.fixture.EditableComponentFixture
requireEditable, requireNotEditable
 

Method Detail

enterText

TextInputFixture enterText(String text)
Simulates a user entering the given text in the Component managed by this fixture.

Parameters:
text - the text to enter.
Returns:
this fixture.

deleteText

TextInputFixture deleteText()
Simulates a user deleting all the text in the Component managed by this fixture.

Returns:
this fixture.

selectAll

TextInputFixture selectAll()
Simulates a user selecting all the text contained in the Component managed by this fixture.

Returns:
this fixture.

selectText

TextInputFixture selectText(int start,
                            int end)
Simulates a user selecting a portion of the text contained in the Component managed by this fixture.

Parameters:
start - index where selection should start.
end - index where selection should end.
Returns:
this fixture.

select

TextInputFixture select(String text)
Simulates a user selecting the given text contained in the Component managed by this fixture.

Parameters:
text - the text to select.
Returns:
this fixture.


Copyright © 2007-2011 FEST (Fixtures for Easy Software Testing). All Rights Reserved.