翻译rptdesign问题
代码:
<structure name="action">
<property name="linkType">hyperlink</property>
<expression name="uri">row["url"]</expression>
<property name="targetWindow">_blank</property>
</structure>
这段连接我怎么翻译城代码
代码:
if(((Column)cols.get(i)).getAction().getLinkType().equals(DesignChoiceConstants.ACTION_LINK_TYPE_HYPERLINK))
{
List list=new ArrayList();
list=((Column)cols.get(i)).getAction().getParameters();
StringBuffer buffer=new StringBuffer();
if(list!=null)
{
for(int m=0;m<list.size();m++)
{
Parameter parameter=(Parameter) list.get(m);
buffer.append(parameter.getName()+"="+parameter.getValue());
if(m<(list.size()-1))
buffer.append("&");
}
}
if(buffer!=null)
actionHandle.setURI("'"+((Column)cols.get(i)).getAction().getUri()+"?"+buffer.toString()+"'");
else
actionHandle.setHyperlink("'"+((Column)cols.get(i)).getAction().getUri()+"'");
actionHandle.setTargetWindow(((Column)cols.get(i)).getAction().getTargetWindow());//DesignChoiceConstants.TARGET_NAMES_TYPE_BLANK
actionHandle.setLinkType(((Column)cols.get(i)).getAction().getLinkType());
好像不行,上面的被我写乱了
__________________
搞技术是非常耗精力的...需要耐心,细心,再仔细,MSN:zhoujianguo_leo@hotmail.com,需要交流的一起交流
此帖于 2008-7-24 11:27 AM 被 Tianli 编辑.
原因: update to code
|