Package org.jsurveylib.model

Examples of org.jsurveylib.model.Label


                Element elementNode = (Element) elementNodes.item(i);
                if (elementNode.getTagName().equals("question")) {
                    Question question = buildQuestion(elementNode);
                    page.addQuestion(question);
                } else {
                    Label label = new Label(elementNode.getTextContent());
                    page.addLabel(label);
                }
            }
        }
View Full Code Here


    private void listenToLinks() {
        for (Page page : pages) {
            for (SurveyElement se : page.getSurveyElements()) {
                if (se instanceof Label) {
                    Label label = (Label) se;
                    label.addLinkListener(this);
                } else if (se instanceof Question) {
                    Question q = (Question) se;
                    q.getLabel().addLinkListener(this);
                }
            }
View Full Code Here

TOP

Related Classes of org.jsurveylib.model.Label

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.