|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot<Text> org.eclipse.swtbot.swt.finder.widgets.SWTBotText
public class SWTBotText
This represents a Text
widget.
Field Summary |
---|
Fields inherited from class org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot |
---|
description, display, log, widget |
Constructor Summary | |
---|---|
SWTBotText(Text w)
Constructs a new instance of this object. |
|
SWTBotText(Text w,
SelfDescribing description)
Constructs a new instance of this object. |
Method Summary | |
---|---|
void |
notifyKeyboardEvent(int modificationKeys,
char c)
Deprecated. use AbstractSWTBot.pressShortcut(int, char) instead. This api will be removed. |
void |
notifyKeyboardEvent(int modificationKeys,
char c,
int keyCode)
Deprecated. use AbstractSWTBot.pressShortcut(int, int, char) instead. This api will be removed. |
SWTBotText |
selectAll()
Select the contents of the entire widget. |
SWTBotText |
setText(String text)
Sets the text of the widget. |
SWTBotText |
typeText(String text)
Types the string in the text box. |
SWTBotText |
typeText(String text,
int interval)
Types the string in the text box. |
Methods inherited from class org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot |
---|
absoluteLocation, assertEnabled, asyncExec, backgroundColor, click, click, clickXY, contextMenu, contextMenu, createEvent, createMouseEvent, createSelectionEvent, doubleClickXY, foregroundColor, getId, getText, getToolTipText, hasStyle, isActive, isEnabled, isEnabledInternal, isVisible, keyboard, notify, notify, notify, pressShortcut, pressShortcut, pressShortcut, rightClick, rightClick, setFocus, sleep, syncExec, syncExec, syncExec, syncExec, syncExec, syncExec, syncExec, syncExec, toString, traverse, waitForEnabled |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SWTBotText(Text w) throws WidgetNotFoundException
w
- the widget.
WidgetNotFoundException
- if the widget is null
or widget has been disposed.public SWTBotText(Text w, SelfDescribing description) throws WidgetNotFoundException
w
- the widget.description
- the description of the widget, this will be reported by AbstractSWTBot.toString()
WidgetNotFoundException
- if the widget is null
or widget has been disposed.Method Detail |
---|
public SWTBotText setText(String text)
text
- the text to be set.
public SWTBotText typeText(String text)
text
- the text to be typed.
public SWTBotText typeText(String text, int interval)
text
- the text to be typed.interval
- the interval between consecutive key strokes.
@Deprecated public void notifyKeyboardEvent(int modificationKeys, char c)
AbstractSWTBot.pressShortcut(int, char)
instead. This api will be removed.
FIXME need some work for CTRL|SHIFT + 1 the 1 is to be sent as '!' in this case.
modificationKeys
- the modification keys.c
- the character.Event.character
,
Event.stateMask
@Deprecated public void notifyKeyboardEvent(int modificationKeys, char c, int keyCode)
AbstractSWTBot.pressShortcut(int, int, char)
instead. This api will be removed.
modificationKeys
- the modification key.c
- the character.keyCode
- any special keys (function keys, arrow or navigation keys etc.)Event.keyCode
,
Event.character
,
Event.stateMask
public SWTBotText selectAll()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |