// // // Generated by StarUML(tm) Java Add-In // // @ Project : Untitled // @ File Name : Section.java // @ Date : 20/01/2008 // @ Author : // // package Documents; import java.util.ArrayList; public class Section extends Element { public String titre; public ArrayList Elements; public Section(int ID, String title) { this.titre = title; this.reference = ID; this.Elements = new ArrayList(); this.type = "section"; } public void addElement(Element el) { el.Conteneur = this; Elements.add(el); } public void removeElement(Element el) { Elements.remove(el); } public int getOrdre() { if(this.Conteneur == null) { return 1; } else { return this.Conteneur.Elements.indexOf(this); } } public int getPoids() { int poids = 0; for(int i = 0; i