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 20 public class Join extends XMLComplexElement { 21 22 public XMLAttribute attrType=new XMLAttribute("Type", 23 new String [] { 24 "", 25 "AND", 26 "XOR" 27 },0); 28 29 32 public Join () { 33 super(); 34 35 attrType.setLabelName(XMLUtil.getLanguageDependentString("JoinTypeKey")); 36 37 fillStructure(); 38 } 39 40 44 protected void fillStructure () { 45 attributes.add(attrType); 46 complexStructure.add(attrType); 47 } 48 49 52 public boolean isEmpty() { 53 return (attrType.getChoosen().toString().length()==0); 54 } 55 56 57 63 public XMLPanel getPanel () { 64 return attrType.getPanel(); 65 } 66 67 68 72 73 80 public Object clone () { 81 Join j=(Join)super.clone(); 82 83 j.attrType=(XMLAttribute)this.attrType.clone(); 84 j.fillStructure(); 85 86 return j; 87 } 88 89 public void refreshLabelName () { 90 super.refreshLabelName(); 91 attrType.setLabelName(XMLUtil.getLanguageDependentString("JoinTypeKey")); 92 } 93 94 } 95 | Popular Tags |