dispaly中各条记录间加一条横线分割
程序员文章站
2022-04-01 22:07:05
...
public class SysParaWrapper extends Decorator{
public String getEdit(){
SysInfoForm sf=(SysInfoForm)getCurrentRowObject();
String name=sf.getParaName();
String value=sf.getParaValue();
String dsc=sf.getParaDsc();
return "<a href=\""+sf.getContextPath()+"/sysInfoProc.do?method=findSysPara¶Name=" + name+"¶Value=" + value+"¶Dsc=" + dsc+"\"><img title="+"\"编辑"
+"\"src="+"\"../images/edit.jpg"+"\"/>"+ "</a>";
}
public String getDel()
{
SysInfoForm sf=(SysInfoForm)getCurrentRowObject();
String name=sf.getParaName();
String value=sf.getParaValue();
String dsc=sf.getParaDsc();
return "<a href=\""+sf.getContextPath()+"/sysInfoProc.do?method=delSysPara¶Name=" + name+"¶Value=" + value+"¶Dsc=" + dsc+"\"><img title="+"\"删除"
+"\"src="+"\"../images/delete.jpg"+"\"/>"+ "</a></td></tr><tr ><td colspan=\"9\" bgcolor="+"\"#FF6600"+"\""+" height=\""+"1\""+">";
}
}
public String getEdit(){
SysInfoForm sf=(SysInfoForm)getCurrentRowObject();
String name=sf.getParaName();
String value=sf.getParaValue();
String dsc=sf.getParaDsc();
return "<a href=\""+sf.getContextPath()+"/sysInfoProc.do?method=findSysPara¶Name=" + name+"¶Value=" + value+"¶Dsc=" + dsc+"\"><img title="+"\"编辑"
+"\"src="+"\"../images/edit.jpg"+"\"/>"+ "</a>";
}
public String getDel()
{
SysInfoForm sf=(SysInfoForm)getCurrentRowObject();
String name=sf.getParaName();
String value=sf.getParaValue();
String dsc=sf.getParaDsc();
return "<a href=\""+sf.getContextPath()+"/sysInfoProc.do?method=delSysPara¶Name=" + name+"¶Value=" + value+"¶Dsc=" + dsc+"\"><img title="+"\"删除"
+"\"src="+"\"../images/delete.jpg"+"\"/>"+ "</a></td></tr><tr ><td colspan=\"9\" bgcolor="+"\"#FF6600"+"\""+" height=\""+"1\""+">";
}
}
上一篇: 获取.properties文件
下一篇: Xtext,廉价的IDE