/**
 * Appcelerator Titanium Mobile
 * Copyright (c) 2009-2011 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.
 * 
 * WARNING: This is generated code. Modify at your own risk and without support.
 */
#ifdef USE_TI_UIIPAD

#import "TiUIiPadProxy.h"
#import "TiUtils.h"

#if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_3_2

@implementation TiUIiPadProxy


#ifdef USE_TI_UIIPADPOPOVER

MAKE_SYSTEM_PROP_IPAD(POPOVER_ARROW_DIRECTION_UP,UIPopoverArrowDirectionUp);
MAKE_SYSTEM_PROP_IPAD(POPOVER_ARROW_DIRECTION_DOWN,UIPopoverArrowDirectionDown);
MAKE_SYSTEM_PROP_IPAD(POPOVER_ARROW_DIRECTION_LEFT,UIPopoverArrowDirectionLeft);
MAKE_SYSTEM_PROP_IPAD(POPOVER_ARROW_DIRECTION_RIGHT,UIPopoverArrowDirectionRight);
MAKE_SYSTEM_PROP_IPAD(POPOVER_ARROW_DIRECTION_ANY,UIPopoverArrowDirectionAny);
MAKE_SYSTEM_PROP_IPAD(POPOVER_ARROW_DIRECTION_UNKNOWN,UIPopoverArrowDirectionUnknown);
			
-(id)createPopover:(id)args
{
	if ([TiUtils isIPad])
	{
		return [[[TiUIiPadPopoverProxy alloc] _initWithPageContext:[self executionContext] args:args] autorelease];
	}
	[self throwException:@"this API is not available on non iPad devices" subreason:nil location:CODELOCATION];
}
#endif

#ifdef USE_TI_UIIPADSPLITWINDOW
-(id)createSplitWindow:(id)args
{
	if ([TiUtils isIPad])
	{
		return [[[TiUIiPadSplitWindowProxy alloc] _initWithPageContext:[self executionContext] args:args] autorelease];
	}
	[self throwException:@"this API is not available on non iPad devices" subreason:nil location:CODELOCATION];
}
#endif

#ifdef USE_TI_UIIPADDOCUMENTVIEWER
-(id)createDocumentViewer:(id)args
{
	if ([TiUtils isIPad])
	{
		return [[[TiUIiPadDocumentViewerProxy alloc] _initWithPageContext:[self executionContext] args:args] autorelease];
	}
	[self throwException:@"this API is not available on non iPad devices" subreason:nil location:CODELOCATION];
}
#endif

@end

#endif

#endif