1 10 11 package org.enhydra.jawe.xml.elements; 12 13 import org.enhydra.jawe.xml.*; 14 import org.enhydra.jawe.xml.panels.*; 15 import org.w3c.dom.*; 16 17 22 public class Performer extends XMLSimpleElement { 23 29 public void toXML(Node parent) throws DOMException { 30 Object realValue=value; 33 if (value instanceof Participant) { 34 value=((Participant)value).getID(); 36 } else { 37 if (value.toString().trim().length()==0) { 38 return; 39 } 40 } 41 super.toXML(parent); 42 value=realValue; 43 } 44 45 49 public XMLPanel getPanel () { 50 return new XMLTextPanel(this) { 51 public void setElements () { 52 if (value instanceof Participant) { 53 return; 54 } else { 55 super.setElements(); 56 } 57 }}; 58 } 59 60 67 public Object clone () { 68 Performer p=(Performer)super.clone(); 69 p.setValue(this.toValue()); 71 return p; 72 } 73 74 } 75 | Popular Tags |