19 package org.turro.dossier.zul.www;
21 import org.turro.dossier.entity.DescriptorDefinition;
22 import org.turro.dossier.entity.DescriptorValue;
23 import org.turro.zkoss.text.WikiEditor;
24 import org.zkoss.zk.ui.event.EventListener;
25 import org.zkoss.zk.ui.event.Events;
26 import org.zkoss.zk.ui.event.InputEvent;
27 import org.zkoss.zk.ui.ext.AfterCompose;
38 return descriptorDefinition;
42 this.descriptorDefinition = descriptorDefinition;
52 if(descriptorDefinition.
getValue() !=
null) {
59 addEventListener(Events.ON_CHANGE,
new EventListener<InputEvent>() {
61 public void onEvent(InputEvent event) throws Exception {
62 DescriptorValue dv = descriptorDefinition.getValue();
64 dv = new DescriptorValue();
65 descriptorDefinition.setValue(dv);
67 dv.setWiki(getValue());
68 dv.setText(getHtml());
Dossier getAssignedDossier()
DescriptorValue getValue()
DescriptorDefinition getDescriptorDefinition()
void setDescriptorDefinition(DescriptorDefinition descriptorDefinition)
void setImageFolder(String folder)
void setValue(String value)
void setFileFolder(String folder)
void setReadOnlyRepository(boolean readOnlyRepository)