| Modifier and Type | Field and Description |
|---|---|
protected EntityTreeFilter |
filter
Filter for checking attributes and relationships
|
protected Entity |
root |
protected Map<Object,Object[]> |
sortedChildren |
| Constructor and Description |
|---|
EntityTreeModel(Entity root) |
| Modifier and Type | Method and Description |
|---|---|
void |
addTreeModelListener(TreeModelListener listener) |
Object |
getChild(Object node,
int index) |
int |
getChildCount(Object node) |
EntityTreeFilter |
getFilter()
Returns filter for attrs and rels
|
int |
getIndexOfChild(Object node,
Object child) |
Object |
getRoot() |
void |
invalidate()
Removes children cache for specified entity.
|
void |
invalidateChildren(Entity entity)
Removes children cache for specified entity.
|
boolean |
isLeaf(Object node) |
void |
removeTreeModelListener(TreeModelListener listener) |
void |
setFilter(EntityTreeFilter filter)
Sets filter for attrs and rels
|
void |
valueForPathChanged(TreePath arg0,
Object arg1) |
protected Entity root
protected EntityTreeFilter filter
public EntityTreeModel(Entity root)
public int getChildCount(Object node)
getChildCount in interface TreeModelpublic void valueForPathChanged(TreePath arg0, Object arg1)
valueForPathChanged in interface TreeModelpublic int getIndexOfChild(Object node, Object child)
getIndexOfChild in interface TreeModelpublic void addTreeModelListener(TreeModelListener listener)
addTreeModelListener in interface TreeModelpublic void removeTreeModelListener(TreeModelListener listener)
removeTreeModelListener in interface TreeModelpublic void invalidate()
public void invalidateChildren(Entity entity)
public void setFilter(EntityTreeFilter filter)
public EntityTreeFilter getFilter()
Copyright © 2001–2015 Apache Cayenne. All rights reserved.