1 package discRack.presentation.delements; 2 3 import discRack.presentation.dpanels.DPanel; 4 5 import java.util.*; 6 7 14 public class DCollectionElement extends DComplexElement { 15 16 protected DSimpleElement attrId=new DSimpleElement("Id"); protected DCollection myCollection; 18 19 public DCollectionElement (String name,DCollection myCollection) { 22 super(name); 23 24 this.myCollection=myCollection; 25 } 26 27 public String getID() { 28 return attrId.value.toString(); 29 } 30 31 public DCollection getCollection () { 32 return myCollection; 33 } 34 35 protected void fillStructure () { 36 attrId.setRequired(true); 37 attrId.setReadOnly(true); 38 39 complexStructure.add(attrId); 40 } 41 42 } | Popular Tags |