All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.woodwhales.common.example.model.business.tree.MyTreeNodeGenerator Maven / Gradle / Ivy

There is a newer version: 3.8.3
Show newest version
package cn.woodwhales.common.example.model.business.tree;

import cn.woodwhales.common.business.tree.TreeNodeGenerator;

/**
 * @author woodwhales on 2021-07-25 12:26
 */
public class MyTreeNodeGenerator implements TreeNodeGenerator {
    @Override
    public Integer getId(TreeToolTempMenu data) {
        return data.getId();
    }

    @Override
    public Integer getParentId(TreeToolTempMenu data) {
        return data.getParentId();
    }

    @Override
    public String getName(TreeToolTempMenu data) {
        return data.getCityName();
    }

    @Override
    public boolean isRootNode(TreeToolTempMenu data) {
        return data.getParentId() == null;
    }

    @Override
    public int getSort(TreeToolTempMenu data) {
        return data.getSort();
    }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy