SLTextField Class Reference
Inherits from | SLElement : SLUIAElement : NSObject |
Declared in | SLTextField.h |
Tasks
-
text
The text displayed by the text field.
property -
– setText:withKeyboard:
-
defaultKeyboard
The default keyboard to be used by
propertysetText:
andsetText:withKeyboard:
.
Properties
defaultKeyboard
The default keyboard to be used by setText:
and setText:withKeyboard:
.
@property (nonatomic) id<SLKeyboard> defaultKeyboard
Discussion
Defaults to SLKeyboard
.
Declared In
SLTextField.h
text
The text displayed by the text field.
@property (nonatomic, copy) NSString *text
Exceptions
- SLUIAElementInvalidException
Raised by both
-text
andsetText:
if the element is not valid by the end of the default timeout.
- SLUIAElementNotTappableException
Raised, only by
setText:
, if the element is not tappable when whatever amount of time remains of the default timeout after the element becomes valid elapses.
Declared In
SLTextField.h
Instance Methods
setText:withKeyboard:
- (void)setText:(NSString *)text withKeyboard:(id<SLKeyboard>)keyboard
Parameters
- text
A string to type into the text field.
- keyboard
An
SLElement
that implements theSLKeyboard
protocol, to be used to type the given string.
Exceptions
- SLUIAElementInvalidException
Raised if the element is not valid by the end of the default timeout.
- SLUIAElementNotTappableException
Raised if the element is not tappable when whatever amount of time remains of the default timeout after the element becomes valid elapses.
Declared In
SLTextField.h