Package org.richfaces.model

Examples of org.richfaces.model.SwingTreeNodeDataModelImpl


            TreeNodeParser parser = new TreeNodeParser();
            parser.parse(TreeBean.class.getResource("plants.xml"));
            rootNodes = parser.getRootNodes();
            lazyRootNodes = createLazyNodes(rootNodes);
            classicTreeNode = createRootClassicNode(rootNodes);
            treeDataModel = new SwingTreeNodeDataModelImpl();
            treeDataModel.setWrappedData(rootNodes);
        } catch (Exception e) {
            LOGGER.error(e.getMessage(), e);
        }
    }
View Full Code Here


            } else {
                throw new IllegalArgumentException(MessageFormat.format(
                        "TreeDataModel implementation {0} is not a subclass of ExtendedDataModel", value.getClass().getName()));
            }
        } else {
            dataModel = new SwingTreeNodeDataModelImpl();
            dataModel.setWrappedData(value);
        }

        return dataModel;
    }
View Full Code Here

            } else {
                throw new IllegalArgumentException(MessageFormat.format(
                        "TreeDataModel implementation {0} is not a subclass of ExtendedDataModel", value.getClass().getName()));
            }
        } else {
            dataModel = new SwingTreeNodeDataModelImpl();
            dataModel.setWrappedData(value);
        }

        return dataModel;
    }
View Full Code Here

TOP

Related Classes of org.richfaces.model.SwingTreeNodeDataModelImpl

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.