package com.huigou.uasp.builder.jsbutton;

import java.util.ArrayList;
import java.util.List;

import com.huigou.uasp.builder.ButtonTypeInter;
import com.huigou.uasp.builder.vo.ButtonAttributeVO;

import com.huigou.uasp.util.Constant;

public class CustomButtonResult implements ButtonTypeInter {
	
	public List<String> processOutResult(StringBuffer sb,ButtonAttributeVO btnAttributes){
		List <String> list=new ArrayList<String>();
		//sb.append("//").append(btnAttributes.getButtonName()).append("方法").append(Constant.SYSMBOL_LINE);;
		sb.append(" function ").append(btnAttributes.getButtonMethoedName()).append("Handler(){");
	   	sb.append("  } ");

		sb.append(Constant.SYSMBOL_LINE);
   	
		  list.add(sb.toString());
		 // list.add(Integer.toString(fieldAttributes.getCurrCols()));
		return list;
	}
}
