/
TiUITextWidgetProxy.h
38 lines (28 loc) 路 1.22 KB
/
TiUITextWidgetProxy.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
/**
* 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 <TitaniumKit/TiViewProxy.h>
@interface TiUITextWidgetProxy : TiViewProxy <TiKeyboardFocusableView> {
//We can't have this in the view, because it's possible for the view to go away despite there being a reason to hold onto the toolbar
//Read: When a view in the toolbar has focus instead.
//Toolbar properties that are semi-exposed
TiUIView *keyboardTiView;
CGFloat keyboardAccessoryHeight;
NSArray *keyboardToolbarItems;
//Toolbar properties derived from the exposed ones.
UIToolbar *keyboardUIToolbar;
BOOL suppressFocusEvents;
@private
}
//Internal values
- (void)noteValueChange:(NSString *)newValue:(NSNumber *)contentHeight;
@property (nonatomic, readwrite, assign) BOOL suppressFocusEvents;
// workaround bridge layer issue clashing with focused:(id)unused method
// To expose a "focused" property to JS
@property (readonly, getter=isFocused) BOOL focused;
@end
#endif