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 19 public class Namespaces extends XMLCollection { 20 23 public Namespaces (Package owner) { 24 super(owner); 25 } 26 27 28 34 public XMLElement generateNewElement() { 35 Namespace ns=new Namespace(); 36 ns.setRequired(true); 37 return ns; 38 } 39 40 47 public Object clone () { 48 Namespaces nss=(Namespaces)super.clone(); 49 nss.myOwner=this.myOwner; 50 return nss; 51 } 52 53 public XMLPanel getPanel () { 55 controlledPanel=new XMLTablePanel(this,"",false,false,true); 56 controlPanel=new XMLTableControlPanel(this,"",true,false); 57 return new XMLGroupPanel(this,new XMLPanel[]{ 58 controlledPanel,controlPanel},toLabel(),XMLPanel.BOX_LAYOUT, 59 false,true); 60 } 61 62 } 63 | Popular Tags |