org.appcelerator.titanium.view
Class TiUIView

java.lang.Object
  extended by org.appcelerator.titanium.view.TiUIView
All Implemented Interfaces:
View.OnFocusChangeListener, KrollProxyListener

public abstract class TiUIView
extends Object
implements KrollProxyListener, View.OnFocusChangeListener

This class is for Titanium View implementations, that correspond with TiViewProxy. A TiUIView is responsible for creating and maintaining a native Android View instance.


Constructor Summary
TiUIView(TiViewProxy proxy)
          Constructs a TiUIView object with the associated proxy.
 
Method Summary
protected  boolean allowRegisterForKeyPress()
           
 TiCompositeLayout.LayoutParams getLayoutParams()
           
 View getNativeView()
           
 TiViewProxy getProxy()
           
protected  void setNativeView(View view)
          Sets the nativeView to view.
 void setProxy(TiViewProxy proxy)
          Sets the view proxy.
 

Constructor Detail

TiUIView

public TiUIView(TiViewProxy proxy)
Constructs a TiUIView object with the associated proxy.

Parameters:
proxy - the associated proxy.
Method Detail

getProxy

public TiViewProxy getProxy()
Returns:
the view proxy.

setProxy

public void setProxy(TiViewProxy proxy)
Sets the view proxy.

Parameters:
proxy - the proxy to set.

getLayoutParams

public TiCompositeLayout.LayoutParams getLayoutParams()
Returns:
the view's layout params.

getNativeView

public View getNativeView()
Returns:
the Android native view.

setNativeView

protected void setNativeView(View view)
Sets the nativeView to view.

Parameters:
view - the view to set

allowRegisterForKeyPress

protected boolean allowRegisterForKeyPress()


Copyright © 2010-2012 Appcelerator, Inc. Licensed under the Apache License 2.0