Package org.apache.click.examples.domain

Examples of org.apache.click.examples.domain.StudentHouse


    private void loadStudentHouses(final DataContext dataContext) throws IOException {
        loadFile("student-houses.txt", dataContext, new LineProcessor() {
            public void processLine(String line, DataContext context) {
                StringTokenizer tokenizer = new StringTokenizer(line, ",");

                StudentHouse studentHouse = new StudentHouse();

                studentHouse.setName(next(tokenizer));

                context.registerNewObject(studentHouse);
            }
        });
    }
View Full Code Here


    private void loadStudentHouses(final DataContext dataContext) throws IOException {
        loadFile("student-houses.txt", dataContext, new LineProcessor() {
            public void processLine(String line, DataContext context) {
                StringTokenizer tokenizer = new StringTokenizer(line, ",");

                StudentHouse studentHouse = new StudentHouse();

                studentHouse.setName(next(tokenizer));

                context.registerNewObject(studentHouse);
            }
        });
    }
View Full Code Here

TOP

Related Classes of org.apache.click.examples.domain.StudentHouse

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 coftware#gmail.com.