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 18 24 public class ExtendedAttributes extends XMLCollection { 25 31 public ExtendedAttributes (XMLComplexElement myOwner) { 32 super(myOwner,"ExtendedAttributes"); 33 } 34 35 41 public XMLElement generateNewElement() { 42 ExtendedAttribute ea=new ExtendedAttribute(this); 43 ea.setRequired(true); 44 return ea; 45 } 46 47 public ExtendedAttribute getExtendedAttribute (String name) { 48 return (ExtendedAttribute)super.getCollectionElement(name); 49 } 50 51 58 public Object clone () { 59 ExtendedAttributes eas=(ExtendedAttributes)super.clone(); 60 eas.myOwner=this.myOwner; 61 return eas; 62 } 63 64 public int[] getInvisibleTableFieldOrdinals () { 65 int[] itfo=new int[2]; 66 itfo[0]=2; 67 itfo[1]=3; 68 return itfo; 69 } 70 71 public XMLPanel getPanel () { 73 controlledPanel=new XMLTablePanel(this,"",false,false,true); 74 controlPanel=new XMLTableControlPanel(this,"",true,false); 75 return new XMLGroupPanel(this,new XMLPanel[]{ 76 controlledPanel,controlPanel},toLabel(),XMLPanel.BOX_LAYOUT, 77 false,true); 78 } 79 80 } 81 | Popular Tags |