Back to project page ExampleApp.
The source code is released under:
Copyright (c) 2014, Altinn All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redis...
If you think the Android project ExampleApp listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.altinn.apps.fisher.common; /**/*from w w w . j a va 2 s. c om*/ * This is a model class which will hold menu of HomeActivity * */ public class MenuItem { public static final byte MENU_TYPE_CONTEXT = 1; public static final byte MENU_TYPE_SCREEN = 2; public static final byte MENU_TYPE_CONTEXT_OPTION = 3; private String mMenuTitle; private String mMenuSubTitle; private byte mMenuType; private int mMenuId; private int mImgResId; public MenuItem(byte menuType,String title, String subTitle){ mMenuType = menuType; mMenuTitle = title; mMenuSubTitle = subTitle; } public MenuItem(int menuId, byte menuType,String title, String subTitle){ this(menuType,title,subTitle); this.mMenuId = menuId; } public MenuItem(){ } public String getMenuTitle() { return mMenuTitle; } public void setMenuTitle(String mMenuTitle) { this.mMenuTitle = mMenuTitle; } public String getMenuSubTitle() { return mMenuSubTitle; } public void setMenuSubTitle(String mMenuSubTitle) { this.mMenuSubTitle = mMenuSubTitle; } public byte getMenuType() { return mMenuType; } public void setMenuType(byte mMenuType) { this.mMenuType = mMenuType; } public int getMenuId() { return mMenuId; } public void setMenuId(int mMenuId) { this.mMenuId = mMenuId; } public int getImgResId() { return mImgResId; } public void setImgResId(int mImgResId) { this.mImgResId = mImgResId; } }