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 Deadlines extends XMLCollection { 24 29 public Deadlines (Activity act){ 30 super(act); 31 } 32 33 40 public XMLElement generateNewElement() { 41 Deadline d=new Deadline(); 42 d.setRequired(true); 43 return d; 44 } 45 46 57 public XMLPanel getPanel () { 58 controlledPanel=new XMLListPanel(this,"",false,true,false); 59 controlPanel=new XMLListControlPanel(this,"",true,false,true); 60 return new XMLGroupPanel(this,new XMLPanel[]{ 61 controlledPanel,controlPanel},toLabel(),XMLPanel.BOX_LAYOUT, 62 false,true); 63 } 64 65 72 public void toXML (Node parent) throws DOMException { 73 if (refCollectionElements.size()>0) { 74 for (Iterator it=refCollectionElements.iterator(); it.hasNext();) { 75 ((XMLElement)it.next()).toXML(parent); 76 } 77 } 78 } 79 80 88 89 96 public Object clone () { 97 Deadlines d=(Deadlines)super.clone(); 98 return d; 99 } 100 101 105 protected void decrementID () { 106 super.decrementID(); 107 } 108 109 } 110 | Popular Tags |