/**============================================================
* 版权: 久其软件 版权所有 (c)
* 包: com.jiuqi.njt.widget
* 修改记录:
* 日期 作者 内容
* =============================================================
* 2013-6-27 liyue
* ============================================================*/
package com.jiuqi.njt.widget;
import android.view.View;
import com.jiuqi.njt.util.Constants;
/**
* <p>创建标题栏的参数</p>
*
* <p>Copyright: 版权所有 (c)<br>
* Company: 久其</p>
*
* @author liyue
* @version 2013-6-27
*/
public abstract class NjtTitleBarParam{
/**
* 左侧按钮点击回调函数
* @param v
*/
public abstract void onClickBtnLeft(View v);
/**
* 右侧按钮点击回调函数需要的话重写此方法
* @param v
*/
public void onClickBtnRight(View v){
}
/**
* 返回页面标题,默认为空字符串
* @return String
*/
public String getTitle(){
return "";
}
/**
* 左按钮显示的文字,默认为“返回”
* @return String
*/
public String getBtnLeftText(){
return Constants.BTN_BACK_TEXT;
}
/**
* 右侧按钮显示的文字,默认为空字符串
* @return String
*/
public String getBtnRightText(){
return "";
}
/**
* 返回View.GONE | View.VISIBLE | View.INVISIBLE
* 默认为View.GONE
* @return int
*/
public int getBtnRightVisibility(){
return View.GONE;
}
/**
* 返回View.GONE | View.VISIBLE | View.INVISIBLE
* 默认为View.VISIBLE
* @return int
*/
public int getBtnLeftVisibility(){
return View.VISIBLE;
}
/**
* 返回左按钮的图片
* @return
*/
public int getBtnLeftDraw(){
return 0;
}
/**
* 返回右按钮的图片
* @return
*/
public int getBtnRightDraw(){
return 0;
}
}