Hujations.java :  » JBoss » richfaces-ui-3.3.2 » org » docs » richfaces » tree » Java Open Source

Java Open Source » JBoss » richfaces ui 3.3.2 
richfaces ui 3.3.2 » org » docs » richfaces » tree » Hujations.java
package org.docs.richfaces.tree;

import org.richfaces.model.TreeNode;
import org.richfaces.component.xml.XmlTreeDataBuilder;
import org.xml.sax.InputSource;
import org.xml.sax.SAXException;
import java.io.IOException;

public class Hujations {

    private TreeNode data;

    public Hujations() throws SAXException, IOException {
      data = XmlTreeDataBuilder.build(new InputSource(getClass().getResourceAsStream("hujations.xml")));
    }

    public void setData(TreeNode data) {
      this.data = data;
    }

    public TreeNode getData() {
      return data;
    }
  }
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.