Package Tipos

Examples of Tipos.MisElementos

            List elementos=elems.getChildren("elemento");
            // cogere todos los elementos
            System.out.println("Formada por:"+ elementos.size() + " elementos");
            if (elementos.size()>0){
                MisElementos mise = new MisElementos();
                Iterator elem = elementos.iterator();
                while (elem.hasNext()){
                    Element e= (Element);
                    Element nombre =e.getChild("nombre");
//                    System.out.println("nombre elemento: "+ nombre.getText());
                    Element imagen =e.getChild("imagen");
                    // System.out.println("imagen elemento: "+ imagen.getText());
                    Element sonido =e.getChild("sonido");
                   //  System.out.println("sonido elemento: "+ sonido.getText());
                    mise.Add(new Elemento(nombre.getText(),imagen.getText(),sonido.getText()));

                // almaceno los elementos
                // Muestro todos los elementos
View Full Code Here


Related Classes of Tipos.MisElementos

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact