Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
21478 rajender 1
package com.saholic.profittill.navigationdrawer;
2
 
3
/**
4
 * Created by kshitij on 14/1/15.
5
 */
6
public class NavDrawerItem {
7
 
8
    private String title;
9
    private int icon;
10
    private String count = "0";
11
    // boolean to set visiblity of the counter
12
    private boolean isCounterVisible = false;
13
 
14
    public NavDrawerItem(){}
15
 
16
    public NavDrawerItem(String title, int icon){
17
        this.title = title;
18
        this.icon = icon;
19
    }
20
 
21
    public NavDrawerItem(String title, int icon, boolean isCounterVisible, String count){
22
        this.title = title;
23
        this.icon = icon;
24
        this.isCounterVisible = isCounterVisible;
25
        this.count = count;
26
    }
27
 
28
    public String getTitle(){
29
        return this.title;
30
    }
31
 
32
    public int getIcon(){
33
        return this.icon;
34
    }
35
 
36
    public String getCount(){
37
        return this.count;
38
    }
39
 
40
    public boolean getCounterVisibility(){
41
        return this.isCounterVisible;
42
    }
43
 
44
    public void setTitle(String title){
45
        this.title = title;
46
    }
47
 
48
    public void setIcon(int icon){
49
        this.icon = icon;
50
    }
51
 
52
    public void setCount(String count){
53
        this.count = count;
54
    }
55
 
56
    public void setCounterVisibility(boolean isCounterVisible){
57
        this.isCounterVisible = isCounterVisible;
58
    }
59
}