public void createScenario(ModelStoryline storyline) throws ThinklabException { browser.setVisible(false); sceditor.setVisible(true); sceditor.setStoryline(storyline); sceditor.setLocation(map.getZoom(), (ArealExtent) storyline.getContext().getSpace()); }
// temp - this should be passed what the editor created, or null public void addScenario(IContext editor) throws ThinklabException { /* * if editor is not null, do something */ sceditor.setVisible(false); browser.setVisible(true); }
// 判断信息状态,控制界面显示,初始化信息值 public void initInfo(WkTDistribute dis) { this.dis = dis; WkTInfo info = newsService.getWkTInfo(dis.getKiId()); String state = dis.getKbStatus().trim(); if (info.getKiType().trim().equals("1")) { ljnews.setVisible(false); bdnews.setVisible(false); initInfocnt(newsService.getChildNewsContent(info.getKiId())); kitype.setValue("输入"); sep1.setVisible(true); sep2.setVisible(true); } else if (info.getKiType().trim().equals("2")) { ljnews.setVisible(false); wdnews.setVisible(false); wd.setVisible(false); tupian.setVisible(false); kitype.setValue("上传文件"); } else if (info.getKiType().trim().equals("3")) { wdnews.setVisible(false); wd.setVisible(false); bdnews.setVisible(false); tupian.setVisible(false); kiaddress.setContent( "<a href=\"" + info.getKiAddress() + "\" target=\"_blank\">" + info.getKiAddress() + "</a>"); kitype.setValue("外部链接"); } kititle.setValue(info.getKiTitle()); kititle2.setValue(info.getKiTitle2()); kbtitle.setValue(dis.getKbTitle()); // 初始化显示图片 if (info.getKiImage() != null && info.getKiImage().trim().length() > 0) { kiimage.setSrc("/upload/info/" + info.getKiImage().trim()); } // 加载附件 List flist = newsService.getFile(dis.getKiId()); modelListbox.addAll(flist); upList.setModel(modelListbox); }