public static class JQNode.QNode
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
protected int |
checkState |
protected boolean |
hasChildren |
protected java.lang.String |
id |
protected boolean |
isExpand |
protected java.lang.String |
parentId |
protected boolean |
showCheck |
protected java.lang.String |
text |
protected java.lang.String |
value |
构造器和说明 |
---|
JQNode.QNode(java.lang.String id,
java.lang.String parentId) |
JQNode.QNode(java.lang.String id,
java.lang.String parentId,
java.lang.String value,
java.lang.String text) |
JQNode.QNode(java.lang.String id,
java.lang.String parentId,
java.lang.String value,
java.lang.String text,
boolean showCheck,
int checkState,
boolean isExpand,
boolean hasChildren) |
限定符和类型 | 方法和说明 |
---|---|
static JSONArray |
createTreeNode(java.util.List list)
构建树节点
|
static JSONArray |
createTreeNode(java.util.List list,
boolean isAjax)
构建树节点
when ajax==false should put all list items to tree data
|
java.lang.String |
getParentID() |
boolean |
isExpand()
是否展开
|
void |
setCheckState(int checkState) |
void |
setExpand(boolean expand) |
protected java.lang.String id
protected java.lang.String parentId
protected java.lang.String text
protected java.lang.String value
protected boolean showCheck
protected int checkState
protected boolean isExpand
protected boolean hasChildren
public JQNode.QNode(java.lang.String id, java.lang.String parentId)
public JQNode.QNode(java.lang.String id, java.lang.String parentId, java.lang.String value, java.lang.String text)
public JQNode.QNode(java.lang.String id, java.lang.String parentId, java.lang.String value, java.lang.String text, boolean showCheck, int checkState, boolean isExpand, boolean hasChildren)
public boolean isExpand()
public void setExpand(boolean expand)
expand
- public void setCheckState(int checkState)
checkState
- public java.lang.String getParentID()
public static JSONArray createTreeNode(java.util.List list) throws java.lang.Exception
list
- 数据java.lang.Exception
public static JSONArray createTreeNode(java.util.List list, boolean isAjax) throws java.lang.Exception
list
- 数据isAjax
- 是否是异步加载java.lang.Exception