Back to project page Skeleton.
The source code is released under:
Apache License
If you think the Android project Skeleton listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.gordon.skeleton.utils; /*from ww w . j a v a2s. co m*/ import java.util.HashMap; import java.util.Map; /** * Created by kg on 12/21/14. */ public class SkeletonDialog { public interface OnClickListener { public boolean onDialogClick(SkeletonDialog dialog); } public enum ButtonType { POSITIVE, NEGATIVE, NEUTRAL } public int key; public int title; public int message; public boolean cancelable = true; public Map<ButtonType, Integer> buttons = new HashMap<>(); public SkeletonDialog() { this(0); } public SkeletonDialog(int key) { this.key = key; } public SkeletonDialog setTitle(int title) { this.title = title; return this; } public SkeletonDialog setMessage(int message) { this.message = message; return this; } public void setCancelable(boolean cancelable) { this.cancelable = cancelable; } public SkeletonDialog setButton(ButtonType buttonType, int text) { buttons.put(buttonType, text); return this; } }