org.appcelerator.titanium.view
Class TiUIView

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

public abstract class TiUIView
extends java.lang.Object
implements KrollProxyListener, android.view.View.OnFocusChangeListener


Field Summary
protected  TiAnimationBuilder animBuilder
           
protected  TiBackgroundDrawable background
           
protected  TiCompositeLayout.LayoutParams layoutParams
           
protected  android.view.View nativeView
           
protected  TiViewProxy parent
           
protected  TiViewProxy proxy
           
static int SOFT_KEYBOARD_DEFAULT_ON_FOCUS
           
static int SOFT_KEYBOARD_HIDE_ON_FOCUS
           
static int SOFT_KEYBOARD_SHOW_ON_FOCUS
           
protected  int zIndex
           
 
Constructor Summary
TiUIView(TiViewProxy proxy)
           
 
Method Summary
 void add(TiUIView child)
           
protected  boolean allowRegisterForTouch()
           
 void animate()
           
 void blur()
           
 void clearOpacity(android.view.View view)
           
 void focus()
           
protected  KrollDict getFocusEventObject(boolean hasFocus)
           
protected  android.view.inputmethod.InputMethodManager getIMM()
           
 TiCompositeLayout.LayoutParams getLayoutParams()
           
 android.view.View getNativeView()
           
 TiViewProxy getParent()
           
 TiViewProxy getProxy()
           
 int getZIndex()
           
 void hide()
           
 void listenerAdded(java.lang.String type, int count, KrollProxy proxy)
           
 void listenerRemoved(java.lang.String type, int count, KrollProxy proxy)
           
 void onFocusChange(android.view.View v, boolean hasFocus)
           
 void processProperties(KrollDict d)
           
 void propertiesChanged(java.util.List<KrollPropertyChange> changes, KrollProxy proxy)
           
 void propertyChanged(java.lang.String key, java.lang.Object oldValue, java.lang.Object newValue, KrollProxy proxy)
           
protected  void registerForKeyClick(android.view.View clickable)
           
 void registerForTouch()
           
protected  void registerForTouch(android.view.View touchable)
           
 void release()
           
 void remove(TiUIView child)
           
protected  void setLayoutParams(TiCompositeLayout.LayoutParams layoutParams)
           
protected  void setNativeView(android.view.View view)
           
 void setOpacity(float opacity)
           
protected  void setOpacity(android.view.View view, float opacity)
           
 void setParent(TiViewProxy parent)
           
 void setProxy(TiViewProxy proxy)
           
protected  void setZIndex(int index)
           
 void show()
           
 KrollDict toImage()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SOFT_KEYBOARD_DEFAULT_ON_FOCUS

public static final int SOFT_KEYBOARD_DEFAULT_ON_FOCUS
See Also:
Constant Field Values

SOFT_KEYBOARD_HIDE_ON_FOCUS

public static final int SOFT_KEYBOARD_HIDE_ON_FOCUS
See Also:
Constant Field Values

SOFT_KEYBOARD_SHOW_ON_FOCUS

public static final int SOFT_KEYBOARD_SHOW_ON_FOCUS
See Also:
Constant Field Values

nativeView

protected android.view.View nativeView

proxy

protected TiViewProxy proxy

parent

protected TiViewProxy parent

layoutParams

protected TiCompositeLayout.LayoutParams layoutParams

zIndex

protected int zIndex

animBuilder

protected TiAnimationBuilder animBuilder

background

protected TiBackgroundDrawable background
Constructor Detail

TiUIView

public TiUIView(TiViewProxy proxy)
Method Detail

add

public void add(TiUIView child)

remove

public void remove(TiUIView child)

getProxy

public TiViewProxy getProxy()

setProxy

public void setProxy(TiViewProxy proxy)

getParent

public TiViewProxy getParent()

setParent

public void setParent(TiViewProxy parent)

getLayoutParams

public TiCompositeLayout.LayoutParams getLayoutParams()

getZIndex

public int getZIndex()

getNativeView

public android.view.View getNativeView()

setNativeView

protected void setNativeView(android.view.View view)

setLayoutParams

protected void setLayoutParams(TiCompositeLayout.LayoutParams layoutParams)

setZIndex

protected void setZIndex(int index)

animate

public void animate()

listenerAdded

public void listenerAdded(java.lang.String type,
                          int count,
                          KrollProxy proxy)
Specified by:
listenerAdded in interface KrollProxyListener

listenerRemoved

public void listenerRemoved(java.lang.String type,
                            int count,
                            KrollProxy proxy)
Specified by:
listenerRemoved in interface KrollProxyListener

propertyChanged

public void propertyChanged(java.lang.String key,
                            java.lang.Object oldValue,
                            java.lang.Object newValue,
                            KrollProxy proxy)
Specified by:
propertyChanged in interface KrollProxyListener

processProperties

public void processProperties(KrollDict d)
Specified by:
processProperties in interface KrollProxyListener

propertiesChanged

public void propertiesChanged(java.util.List<KrollPropertyChange> changes,
                              KrollProxy proxy)
Specified by:
propertiesChanged in interface KrollProxyListener

onFocusChange

public void onFocusChange(android.view.View v,
                          boolean hasFocus)
Specified by:
onFocusChange in interface android.view.View.OnFocusChangeListener

getFocusEventObject

protected KrollDict getFocusEventObject(boolean hasFocus)

getIMM

protected android.view.inputmethod.InputMethodManager getIMM()

focus

public void focus()

blur

public void blur()

release

public void release()

show

public void show()

hide

public void hide()

allowRegisterForTouch

protected boolean allowRegisterForTouch()

registerForTouch

public void registerForTouch()

registerForTouch

protected void registerForTouch(android.view.View touchable)

setOpacity

public void setOpacity(float opacity)

setOpacity

protected void setOpacity(android.view.View view,
                          float opacity)

clearOpacity

public void clearOpacity(android.view.View view)

registerForKeyClick

protected void registerForKeyClick(android.view.View clickable)

toImage

public KrollDict toImage()


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