// Path: androidemu/src/main/java/android/Res.java
// public interface Res extends ClientBundle {
// 	public static final Res R = GWT.create(Res.class);
// 
// 	@Source("Style.gss")
// 	public Style style();
// 
// }
// 
// Path: androidemu/src/main/java/android/content/DialogInterface.java
// public interface DialogInterface {
// 
// 	public static final int BUTTON_NEGATIVE = -2;
// 	public static final int BUTTON_NEUTRAL = -3;
// 	public static final int BUTTON_POSITIVE = -1;
// 
// 	public abstract void cancel();
// 
// 	public abstract void dismiss();
// 
// 	public interface OnClickListener {
// 		public void onClick(DialogInterface dialog, int which);
// 	}
// }


import android.Res;
import android.content.Context;
import android.content.DialogInterface;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.SimplePanel;
import com.google.gwt.user.client.ui.VerticalPanel;
package android.app;



public class ProgressDialog extends Dialog implements DialogInterface {

	private SimplePanel titleLabelContainer, messageLabelContainer;
	private Label titleLabel, messageLabel;

	public static ProgressDialog show(Context context, CharSequence title, CharSequence message, boolean indeterminate) {
		return new ProgressDialog(title, message, false);
	}

	public static ProgressDialog show(Context context, CharSequence title, CharSequence message, boolean indeterminate, boolean cancelable) {
		return new ProgressDialog(title, message, cancelable);
	}

	public ProgressDialog(CharSequence title, CharSequence message, boolean cancelable) {
		super(cancelable);

		VerticalPanel vp = new VerticalPanel();

		titleLabelContainer = new SimplePanel();
		messageLabelContainer = new SimplePanel();

		vp.add(titleLabelContainer);
		vp.add(messageLabelContainer);

		setTitle(title);
		setMessage(message);

		popupPanel.add(vp);
	}

	public void setTitle(CharSequence title) {
		if (titleLabel == null && title != null && !"".equals(title)) {
			titleLabel = new Label();
// Path: androidemu/src/main/java/android/Res.java
// public interface Res extends ClientBundle {
// 	public static final Res R = GWT.create(Res.class);
// 
// 	@Source("Style.gss")
// 	public Style style();
// 
// }
// 
// Path: androidemu/src/main/java/android/content/DialogInterface.java
// public interface DialogInterface {
// 
// 	public static final int BUTTON_NEGATIVE = -2;
// 	public static final int BUTTON_NEUTRAL = -3;
// 	public static final int BUTTON_POSITIVE = -1;
// 
// 	public abstract void cancel();
// 
// 	public abstract void dismiss();
// 
// 	public interface OnClickListener {
// 		public void onClick(DialogInterface dialog, int which);
// 	}
// }


// Path: androidemu/src/main/java/android/app/ProgressDialog.java
import android.Res;
import android.content.Context;
import android.content.DialogInterface;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.SimplePanel;
import com.google.gwt.user.client.ui.VerticalPanel;

package android.app;



public class ProgressDialog extends Dialog implements DialogInterface {

	private SimplePanel titleLabelContainer, messageLabelContainer;
	private Label titleLabel, messageLabel;

	public static ProgressDialog show(Context context, CharSequence title, CharSequence message, boolean indeterminate) {
		return new ProgressDialog(title, message, false);
	}

	public static ProgressDialog show(Context context, CharSequence title, CharSequence message, boolean indeterminate, boolean cancelable) {
		return new ProgressDialog(title, message, cancelable);
	}

	public ProgressDialog(CharSequence title, CharSequence message, boolean cancelable) {
		super(cancelable);

		VerticalPanel vp = new VerticalPanel();

		titleLabelContainer = new SimplePanel();
		messageLabelContainer = new SimplePanel();

		vp.add(titleLabelContainer);
		vp.add(messageLabelContainer);

		setTitle(title);
		setMessage(message);

		popupPanel.add(vp);
	}

	public void setTitle(CharSequence title) {
		if (titleLabel == null && title != null && !"".equals(title)) {
			titleLabel = new Label();
			titleLabel.setStyleName(Res.R.style().dialogTitle());