public class MenuNode extends Object implements Comparable
Constructor and Description |
---|
MenuNode() |
MenuNode(Long id,
Long parentId) |
Modifier and Type | Method and Description |
---|---|
static List<MenuNode> |
buildTitle(List<MenuNode> nodes)
构建页面菜单列表
|
int |
compareTo(Object o)
重写排序比较接口,首先根据等级排序,然后更具排序字段排序
|
static MenuNode |
createRoot() |
List<MenuNode> |
getChildren() |
String |
getIcon() |
Long |
getId() |
Integer |
getIsmenu() |
Integer |
getLevels() |
String |
getName() |
Integer |
getNum() |
Long |
getParentId() |
String |
getUrl() |
void |
setChildren(List<MenuNode> children) |
void |
setIcon(String icon) |
void |
setId(Long id) |
void |
setIsmenu(Integer ismenu) |
void |
setLevels(Integer levels) |
void |
setName(String name) |
void |
setNum(Integer num) |
void |
setParentId(Long parentId) |
void |
setUrl(String url) |
String |
toString() |
public Integer getLevels()
public void setLevels(Integer levels)
public String getIcon()
public void setIcon(String icon)
public static MenuNode createRoot()
public Long getId()
public void setId(Long id)
public Long getParentId()
public void setParentId(Long parentId)
public String getName()
public void setName(String name)
public String getUrl()
public void setUrl(String url)
public Integer getNum()
public void setNum(Integer num)
public Integer getIsmenu()
public void setIsmenu(Integer ismenu)
public int compareTo(Object o)
compareTo
in interface Comparable
o
- Copyright © 2018. All rights reserved.