/* Uiml.Net: a .Net UIML renderer (http://lumumba.uhasselt.be/kris/research/uiml.net) Copyright (C) 2003 Kris Luyten (kris.luyten@uhasselt.be) Expertise Centre for Digital Media (http://edm.uhasselt.be) Hasselt University This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ namespace Uiml{ using System; using System.Xml; using System.IO; using System.Collections; using Uiml.LayoutManagement; /// ///Represents the interface element: /// <!ELEMENT interface (structure|style|content|behavior)*> /// <!ATTLIST interface id NMTOKEN #IMPLIED /// source CDATA #IMPLIED /// how (union|cascade|replace) "replace" /// export (hidden|optional|required) "optional"> /// public class Interface : UimlAttributes, IUimlElement, ICloneable{ //private Structure m_structure; private ArrayList m_structure = new ArrayList(); //private Style m_style; private ArrayList m_style = new ArrayList(); //private Behavior m_behavior; private ArrayList m_behavior = new ArrayList(); //private Content m_content private ArrayList m_content = new ArrayList(); private ArrayList m_layout = new ArrayList(); public Interface(XmlNode nTopStructure) { Process(nTopStructure); } /// ///private constructor for clone operation /// private Interface() { } public void Process(XmlNode n) { if(n.Name == IAM){ ReadAttributes(n); if(n.HasChildNodes){ XmlNodeList xnl = n.ChildNodes; int i = 0; for(i=0; i