Android Open Source - Skeleton Skeleton Dialog






From Project

Back to project page Skeleton.

License

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.

Java Source Code

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;
    }
}




Java Source Code List

com.gordon.skeleton.ApplicationTest.java
com.gordon.skeleton.SkeletonActivity.java
com.gordon.skeleton.annotations.AnnotationHelper.java
com.gordon.skeleton.annotations.LayoutHelper.java
com.gordon.skeleton.annotations.MenuLayout.java
com.gordon.skeleton.containers.Container.java
com.gordon.skeleton.flow.FlowBundler.java
com.gordon.skeleton.flow.GsonParcer.java
com.gordon.skeleton.presenters.Presenter.java
com.gordon.skeleton.screens.ScreenManager.java
com.gordon.skeleton.screens.ScreenSwitcher.java
com.gordon.skeleton.screens.Screen.java
com.gordon.skeleton.utils.SkeletonDialog.java