Advertisement
radityakurnianto

NavDrawerItem

Aug 30th, 2014
368
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.97 KB | None | 0 0
  1. public class NavDrawerItem {
  2.     private String title;
  3.     private int icon;
  4.     private boolean isCounterVisible = false;
  5.  
  6.     // Constructor class
  7.     public NavDrawerItem(){}
  8.  
  9.     public NavDrawerItem(String title, int icon){
  10.         this.title = title;
  11.         this.icon = icon;
  12.     }
  13.  
  14.     public NavDrawerItem(String title, int icon, boolean isCounterVisible){
  15.         this.title = title;
  16.         this.icon = icon;
  17.         this.isCounterVisible = isCounterVisible;
  18.     }
  19.  
  20.     public String getTitle(){
  21.         return this.title;
  22.     }
  23.  
  24.     public int getIcon(){
  25.         return this.icon;
  26.     }
  27.  
  28.     public boolean getCounterVisibility(){
  29.         return this.isCounterVisible;
  30.     }
  31.  
  32.     public void setTitle(String title){
  33.         this.title = title;
  34.     }
  35.  
  36.     public void setIcon(int icon){
  37.         this.icon = icon;
  38.     }
  39.  
  40.     public void setCounterVisible(boolean isCounterVisible){
  41.         this.isCounterVisible = isCounterVisible;
  42.     }
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement