/** * 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*)textWidgetView; #pragma mark Public APIs -(BOOL)hasText; @end @interface TiUITextWidget : TiUIView { @protected UIView* textWidgetView; BOOL suppressReturn; TiUIView * parentScrollView; @private } -(void)textWidget:(UIView*)tw didFocusWithText:(NSString *)value; -(void)textWidget:(UIView*)tw didBlurWithText:(NSString *)value; @end #endif