Android Open Source - AutobusParma Nav Drawer Item






From Project

Back to project page AutobusParma.

License

The source code is released under:

GNU General Public License

If you think the Android project AutobusParma 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

/*
 * ? Copyright 2014 Bartolomeo Lombardi/*  ww  w. j av  a2 s . co  m*/
  This file is part of AutobusParma.

    AutobusParma is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 1 of the License, or
  any later version.

    AutobusParma is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with AutobusParma.  If not, see <http://www.gnu.org/licenses/>.
 */
package it.unipr.informatica.autobusparma.model;

public class NavDrawerItem {
  
  private String title;
  private int icon;
  private String count = "0";
  // boolean to set visiblity of the counter
  private boolean isCounterVisible = false;
  
  public NavDrawerItem(){}

  public NavDrawerItem(String title, int icon){
    this.title = title;
    this.icon = icon;
  }
  
  public NavDrawerItem(String title, int icon, boolean isCounterVisible, String count){
    this.title = title;
    this.icon = icon;
    this.isCounterVisible = isCounterVisible;
    this.count = count;
  }
  
  public String getTitle(){
    return this.title;
  }
  
  public int getIcon(){
    return this.icon;
  }
  
  public String getCount(){
    return this.count;
  }
  
  public boolean getCounterVisibility(){
    return this.isCounterVisible;
  }
  
  public void setTitle(String title){
    this.title = title;
  }
  
  public void setIcon(int icon){
    this.icon = icon;
  }
  
  public void setCount(String count){
    this.count = count;
  }
  
  public void setCounterVisibility(boolean isCounterVisible){
    this.isCounterVisible = isCounterVisible;
  }
}




Java Source Code List

it.unipr.informatica.autobusparma.CalcolaPercorso.java
it.unipr.informatica.autobusparma.InfoNotizie.java
it.unipr.informatica.autobusparma.MainActivity.java
it.unipr.informatica.autobusparma.MappaFragment.java
it.unipr.informatica.autobusparma.OpzioniFragment.java
it.unipr.informatica.autobusparma.OrariFragment.java
it.unipr.informatica.autobusparma.ProntobusFragment.java
it.unipr.informatica.autobusparma.TepFragment.java
it.unipr.informatica.autobusparma.adapter.NavDrawerListAdapter.java
it.unipr.informatica.autobusparma.model.NavDrawerItem.java