org.appcelerator.titanium.proxy
Class TiViewProxy

java.lang.Object
  extended by org.appcelerator.kroll.KrollProxy
      extended by org.appcelerator.titanium.proxy.TiViewProxy
All Implemented Interfaces:
Handler.Callback, org.appcelerator.kroll.KrollProxySupport

@Kroll.proxy(propertyAccessors={"backgroundImage","backgroundRepeat","backgroundSelectedImage","backgroundFocusedImage","backgroundDisabledImage","backgroundColor","backgroundSelectedColor","backgroundFocusedColor","backgroundDisabledColor","backgroundPadding","backgroundGradient","borderColor","borderRadius","borderWidth","left","top","right","bottom","layout","zIndex","accessibilityHint","accessibilityLabel","accessibilityValue","accessibilityHidden","focusable","touchEnabled","visible","enabled","opacity","softKeyboardOnFocus","transform"})
public abstract class TiViewProxy
extends KrollProxy
implements Handler.Callback

The parent class of view proxies.


Constructor Summary
TiViewProxy()
          Constructs a new TiViewProxy instance.
 
Method Summary
 void add(TiViewProxy child)
          Adds a child to this view proxy.
abstract  TiUIView createView(Activity activity)
          Implementing classes should use this method to create and return the appropriate view.
 TiViewProxy[] getChildren()
           
 TiUIView getOrCreateView()
          Creates or retrieves the view associated with this proxy.
 TiViewProxy getParent()
           
 TiUIView peekView()
           
 void remove(TiViewProxy child)
          Removes a view from this view proxy, releasing the underlying native view if it exists.
 
Methods inherited from class org.appcelerator.kroll.KrollProxy
fireSyncEvent, getActivity, getCreationUrl, getKrollObject, getLangConversionTable, getProperties, getProperty, handleCreationArgs, handleDefaultValues, hasListeners, hasProperty, release, resolveUrl, setModelListener, setProperty, setPropertyAndFire
 

Constructor Detail

TiViewProxy

public TiViewProxy()
Constructs a new TiViewProxy instance.

Method Detail

peekView

public TiUIView peekView()
Returns:
the TiUIView associated with this proxy.

getOrCreateView

public TiUIView getOrCreateView()
Creates or retrieves the view associated with this proxy.

Returns:
a TiUIView instance.

createView

public abstract TiUIView createView(Activity activity)
Implementing classes should use this method to create and return the appropriate view.

Parameters:
activity - the context activity.
Returns:
a TiUIView instance.

add

@Kroll.method
public void add(TiViewProxy child)
Adds a child to this view proxy.

Parameters:
child - The child view proxy to add.

remove

@Kroll.method
public void remove(TiViewProxy child)
Removes a view from this view proxy, releasing the underlying native view if it exists.

Parameters:
child - The child to remove.

getParent

@Kroll.getProperty
@Kroll.method
public TiViewProxy getParent()
Returns:
The parent view proxy of this view proxy.

getChildren

@Kroll.getProperty
@Kroll.method
public TiViewProxy[] getChildren()
Returns:
An array of the children view proxies of this view.


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