-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
TiUITextWidget.h
42 lines (28 loc) · 973 Bytes
/
TiUITextWidget.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/**
* Appcelerator Titanium Mobile
* Copyright (c) 2009-2010 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the Apache Public License
* Please see the LICENSE included with this distribution for details.
*/
#if defined(USE_TI_UITEXTWIDGET) || defined(USE_TI_UITEXTAREA) || defined(USE_TI_UITEXTFIELD)
#import "TiUIView.h"
@protocol TiUITextWidget
#pragma mark Factory methods
-(UIView<UITextInputTraits>*)textWidgetView;
#pragma mark Public APIs
-(BOOL)hasText;
@end
@interface TiUITextWidget : TiUIView<TiUITextWidget> {
@protected
UIView<UITextInputTraits>* textWidgetView;
BOOL suppressReturn;
NSInteger maxLength;
TiUIView<TiScrolling> * parentScrollView;
@private
}
-(void)textWidget:(UIView<UITextInputTraits>*)tw didFocusWithText:(NSString *)value;
-(void)textWidget:(UIView<UITextInputTraits>*)tw didBlurWithText:(NSString *)value;
-(void)setValue_:(id)text;
-(void)setSelectionFrom:(id)start to:(id)end;
@end
#endif