/* Copyright (c) 2002-2011 by XMLVM.org * * Project Info: http://www.xmlvm.org * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 2.1 of the License, or * (at your option) any later version. * * This library is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public * License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, * USA. */ package android.content; public interface DialogInterface { public static final int BUTTON1 = -1; public static final int BUTTON2 = -2; public static final int BUTTON3 = -3; public static final int BUTTON_POSITIVE = BUTTON1; public static final int BUTTON_NEGATIVE = BUTTON2; public static final int BUTTON_NEUTRAL = BUTTON3; public interface OnClickListener { public abstract void onClick(DialogInterface dialog, int which); } public abstract void cancel(); public abstract void dismiss(); }