/**
 * 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.
 */
package ti.modules.titanium.ui;

import org.appcelerator.kroll.KrollDict;
import org.appcelerator.kroll.annotations.Kroll;
import org.appcelerator.titanium.TiC;
import org.appcelerator.titanium.TiContext;
import org.appcelerator.titanium.proxy.TiViewProxy;
import org.appcelerator.titanium.view.TiUIView;

import ti.modules.titanium.ui.widget.TiUIActivityIndicator;
import ti.modules.titanium.ui.widget.TiUIProgressDialog;
import android.app.Activity;

@Kroll.proxy(creatableInModule=UIModule.class, propertyAccessors = {
	TiC.PROPERTY_MESSAGE,
	TiC.PROPERTY_MESSAGEID,
	TiC.PROPERTY_COLOR,
	TiC.PROPERTY_FONT,
	TiC.PROPERTY_STYLE
})
@Kroll.dynamicApis(methods = {
	"hide", "show"
})
public class ActivityIndicatorProxy extends TiViewProxy
{
	public ActivityIndicatorProxy()
	{
		super();
	}

	public ActivityIndicatorProxy(TiContext tiContext)
	{
		this();
	}

	@Override
	public TiUIView createView(Activity activity)
	{
		return new TiUIActivityIndicator(this);
	}

	@Override
	protected void handleShow(KrollDict options)
	{
		if (view == null) {
			TiUIActivityIndicator ai = (TiUIActivityIndicator) getOrCreateView();
			ai.show();
			return;
		}
		super.handleShow(options);
	}

	@Override
	protected void handleHide(KrollDict options)
	{
		if (view == null) {
			TiUIActivityIndicator ai = (TiUIActivityIndicator) getOrCreateView();
			ai.hide();
			return;
		}
		super.handleHide(options);
	}
}

@@ -1192,32 +1192,207 @@
 ator(this);%0A%09%7D%0A%0A
+%09@Override%0A%09protected KrollDict getLangConversionTable() %7B%0A%09%09KrollDict table = new KrollDict();%0A%09%09table.put(TiC.PROPERTY_MESSAGE, TiC.PROPERTY_MESSAGEID);%0A%09%09return table;%0A%09%7D%0A%0A
 %09@Override%0A%09prot

add getLangConversionTable() in ActivityIndicatorProxy.java