@Override public void doAfterCompose(Component comp) throws Exception { super.doAfterCompose(comp); Params params = (Params) arg; this.test = (TestItem) params.get(0); radFacility.setLabel(VistAUtil.getSysParam("Caption-Facility", radFacility.getLabel(), null)); loadForm(); }
public void render(Component comp, Writer out) throws IOException { final SmartWriter wh = new SmartWriter(out); final Radio self = (Radio)comp; final String uuid = self.getUuid(); wh.write("<span id=\"").write(uuid).write("\" z.type=\"zul.btn.Radio\"") .write(self.getOuterAttrs()).write(">").write("<input type=\"radio\" id=\"") .write(uuid).write("!real\"").write(self.getInnerAttrs()) .write("/><label for=\"").write(uuid).write("!real\"") .write(self.getLabelAttrs()) .write(" class=\""+self.getZclass()+"-cnt\"") .write(">") .write(self.getImgTag()).write(self.getLabel()) .write("</label>"); if(self.getRadiogroup() != null && self.getRadiogroup().getOrient().equals("vertical")) wh.writeln("<br/>"); wh.write("</span>"); } }