首页 > 代码库 > Android带参数的BUTTON

Android带参数的BUTTON

public class ParamButton extends Button
{
	// com.ts.factoryset.ParamButton
	private int  mParam;
	
	public ParamButton(Context context)
	{
		super(context);
	}
	
    public ParamButton(Context context, AttributeSet attributeSet)
    {  
        super(context, attributeSet);  
        // TODO Auto-generated constructor stub  
    }  
	
	void setIntParam(int p)
	{
		mParam = p;
	}
	
	int getIntParam()
	{
		return mParam;
	}
}

Android带参数的BUTTON