aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/miz_hi/smileessence/notification/Notice.java
blob: 5b7c61ef592786cf8d7baf88bae33193dca0bb20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
package net.miz_hi.smileessence.notification;

import de.keyboardsurfer.android.widget.crouton.Style;

public class Notice
{

    String text;
    Style style;

    public Notice(String text)
    {
        this.text = text;
        this.style = Style.INFO;
    }

    public Notice setStyle(Style style)
    {
        this.style = style;
        return this;
    }

    public String getText()
    {
        return text;
    }

    public Style getStyle()
    {
        return style;
    }

    public void raise()
    {
        Notificator.crouton(this);
    }

    public static Notice getNullEvent()
    {
        return new NullEvent();
    }

    public static class NullEvent extends Notice
    {

        private NullEvent()
        {
            super("");
        }

        @Override
        public void raise()
        {
            //Null Operation
        }
    }
}