1 10 11 package org.enhydra.jawe.xml.elements; 12 13 import org.enhydra.jawe.xml.*; 14 import org.enhydra.jawe.xml.panels.*; 15 16 import java.util.*; 17 import org.w3c.dom.*; 18 19 23 public class Tools extends XMLCollection { 24 29 public Tools (Activity act){ 30 super(act); 31 } 32 33 40 public XMLElement generateNewElement() { 41 Tool t=new Tool(this,((Activity)myOwner).getOwnerProcess()); 42 t.setRequired(true); 43 return t; 44 } 45 46 55 public void toXML (Node parent) throws DOMException { 56 if (refCollectionElements.size()>0) { 57 for (Iterator it=refCollectionElements.iterator(); it.hasNext();) { 58 ((XMLElement)it.next()).toXML(parent); 59 } 60 } 61 } 62 63 66 protected void afterImporting () { 67 Iterator it=refCollectionElements.iterator(); 68 while (it.hasNext()) { 69 Tool t=(Tool)it.next(); 70 t.afterImporting(); 71 } 72 } 73 74 public int[] getInvisibleTableFieldOrdinals () { 75 int[] itfo=new int[4]; 76 itfo[0]=0; 77 itfo[1]=3; 78 itfo[2]=4; 79 itfo[3]=5; 80 return itfo; 81 } 82 83 90 public Object clone () { 91 Tools t=(Tools)super.clone(); 92 return t; 93 } 94 95 } 96 | Popular Tags |