Пример #1
0
  @Override
  protected void populateParams() {
    super.populateParams();
    TabGroup tg = (TabGroup) component;
    tg.setId(id);
    tg.setTabs(tabs);

    JxLoadResource.loadTable(req);
  }
Пример #2
0
 @Override
 protected void populateParams() {
   Tablecol col = (Tablecol) component;
   col.setId(id);
   col.setType(type);
   col.setMxevent_desc(mxevent_desc);
   col.setMxevent(mxevent);
   col.setMxevent_disabled(mxevent_disabled);
   col.setDataattribute(dataattribute);
   col.setLookup(lookup);
   col.setLookupWidth(lookupWidth);
   col.setLookupHeight(lookupHeight);
   col.setLookupWrite(lookupWrite);
   col.setLinkedcontrolid(linkedcontrolid);
   col.setMxevent_icon(mxevent_icon);
   col.setFilterable(filterable);
   col.setFiltername(filtername);
   col.setSortable(sortable);
   col.setSortname(sortname);
   col.setStartHtml(startHtml);
   col.setHtml(html);
   col.setRender(render);
   col.setVisibleHead(visibleHead);
   col.setFormat(format);
   col.setTable(table);
   col.setInputsize(inputsize);
   col.setMaxlength(maxlength);
   col.setWidth(width);
   col.setHeight(height);
   col.setNote(note);
   col.setReadonly(readonly);
   col.setSecondAttributes(secondAttributes);
   col.setDataname(dataname);
   JxParams jparam = BeanUtil.getJxParams();
   if (jparam != null) {
     if ("comtop".equalsIgnoreCase(urlType)) {
       col.setUrlType(jparam.getComtopUrl());
     } else if ("report".equalsIgnoreCase(urlType)) {
       col.setUrlType(jparam.getReportUrl());
     } else {
       col.setUrlType(urlType);
     }
   } else {
     col.setUrlType(urlType);
   }
   col.setUrlParamName(urlParamName);
   col.setUrlParamValue(urlParamValue);
   transformUrlParams(); // 转换所有参数的值
   col.setAllUrlParams(allUrlParams);
   col.setUrlTarget(urlTarget);
   col.setTitle(title);
   col.setAlign(align);
   col.setDataDisplay(dataDisplay);
   col.setVisible(visible);
   col.setDescdataattribute(descdataattribute);
   Tag tag = findAncestorWithClass(this, TableTag.class);
   if (tag != null && dataattribute != null) {
     TableTag ttag = (TableTag) tag;
     JboSetIFace jboset = ttag.getJboset();
     if (jboset != null) {
       try {
         Object jo = jboset.getJxAttribute(dataattribute.toUpperCase());
         if (jo != null) {
           jxattribute = (JxAttribute) jo;
           col.setJxattribute(jxattribute);
           for (JboIFace jbo : jboset.getJbolist()) {
             if (null != jbo) {
               if (!"TRUE".equalsIgnoreCase(required)) {
                 required = String.valueOf(jbo.isRequired(dataattribute));
               } else {
                 jbo.setRequired(dataattribute, true);
               }
             }
           }
         }
       } catch (Exception e) {
         LOG.error(e.getMessage(), e);
       }
     }
   }
   super.populateParams();
 }
Пример #3
0
 @Override
 public Component getBean(
     ValueStack stack, HttpServletRequest request, HttpServletResponse response) {
   super.initPropertiesValue(false);
   return new Tablecol(stack, request, response);
 }