메뉴 기본 속성의 솔리드 클래스 정보

2615 단어 토대
메뉴 기본 속성의 솔리드 클래스 정보
 
 
코드에서 메뉴를 자주 사용하는데 사용하기 편리하도록 메뉴 실체 클래스를 만들어 메뉴를 정의합니다.
 
코드:
 
package com.zhouzijing.android.util;


/**
 *         .
 * @author stephen
 *
 */
public class MenuEntity{
	
	
	/**
	 *     .
	 * @param groupId
	 * @param itemId
	 * @param order
	 * @param title
	 * @param iconRes
	 */
	public MenuEntity(int groupId, int itemId, int order, CharSequence title,int iconRes) {
		this(groupId,itemId,order,title);
		this.iconRes = iconRes;
	}
	
	/**
	 *     .
	 * @param groupId
	 * @param itemId
	 * @param order
	 * @param title
	 */
	public MenuEntity(int groupId, int itemId, int order, CharSequence title) {
		super();
		this.groupId = groupId;
		this.itemId = itemId;
		this.order = order;
		this.title = title;
	}
	
	/**
	 *  .
	 */
	private int groupId;
	/**
	 *     .
	 */
	private int itemId;
	/**
	 *      .
	 */
	private int order;
	/**
	 *       .
	 */
	private CharSequence title;
	/**
	 *     .
	 */
	private int iconRes;
	/**
	 * @return the groupId
	 */
	public int getGroupId() {
		return groupId;
	}
	/**
	 * @param groupId the groupId to set
	 */
	public void setGroupId(int groupId) {
		this.groupId = groupId;
	}
	/**
	 * @return the itemId
	 */
	public int getItemId() {
		return itemId;
	}
	/**
	 * @param itemId the itemId to set
	 */
	public void setItemId(int itemId) {
		this.itemId = itemId;
	}
	/**
	 * @return the order
	 */
	public int getOrder() {
		return order;
	}
	/**
	 * @param order the order to set
	 */
	public void setOrder(int order) {
		this.order = order;
	}
	/**
	 * @return the title
	 */
	public CharSequence getTitle() {
		return title;
	}
	/**
	 * @param title the title to set
	 */
	public void setTitle(CharSequence title) {
		this.title = title;
	}
	/**
	 * @return the iconRes
	 */
	public int getIconRes() {
		return iconRes;
	}
	/**
	 * @param iconRes the iconRes to set
	 */
	public void setIconRes(int iconRes) {
		this.iconRes = iconRes;
	}
	
	
	
}
 

좋은 웹페이지 즐겨찾기