super();
}
public String getHtmlCode(DOIModel iModel) {
DOFormModel property = (DOFormModel) iModel;
StringBuffer buffer = new StringBuffer();
if (property.getLinkService() != null) {
for (Iterator it = property.getLinkService().invokeSelect()
.iterator(); it.hasNext();) {
BOInstance instance = (BOInstance) it.next();
buffer.append("<input name=\"").append(
property.getFullColName());
buffer.append("\" value=\"").append(instance.getUid());
buffer.append("\" type=\"checkbox\"");
buffer.append(getDecoration(property));
if (DOStaticList.isChecked(instance.getUid(), property
.getValue())) {
buffer.append(" checked ");
}
if (isReadOnly(property)) {
buffer.append(" DISABLED ");
}
buffer.append("/>");
//buffer.append(instance.getAjaxLink("_opener", null));
buffer.append(instance.getName());
}
} else if(property.getInputConfig()!=null){
List list = StringUtil.getStaticList(property.getInputConfig());
for (Iterator it = list.iterator(); it.hasNext();) {
String[] half = (String[]) it.next();
buffer.append("<input name=\"").append(
property.getFullColName());
buffer.append("\" value=\"").append(half[0]);
buffer.append("\" type=\"checkbox\"");
buffer.append(getDecoration(property));
if (DOStaticList.isChecked(half[0], property.getValue())) {
buffer.append(" checked ");
}
// if (isReadOnly(property)) {
// buffer.append(" disable ");
// }