|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.openide.nodes.Children | +--org.openide.nodes.Children.Array | +--org.openide.nodes.Children.Keys | +--org.openide.src.nodes.ClassChildren
Normal implementation of children list for a class element node.
Semantics are similar to those of SourceChildren
.
Inner classes inherited from class org.openide.nodes.Children |
Children.Array, Children.Keys, Children.Map, Children.SortedArray, Children.SortedMap |
Field Summary | |
protected Collection[] |
cpl
Central memory of mankind is used when some elements are changed |
protected ClassElement |
element
The class element whose subelements are represented. |
protected ElementNodeFactory |
factory
Factory for creating new child nodes. |
protected ClassElementFilter |
filter
Filter for elements, or null to disable. |
protected static HashMap |
propToFilter
Converts property names to filter. |
Fields inherited from class org.openide.nodes.Children.Array |
nodes |
Fields inherited from class org.openide.nodes.Children |
LEAF, MUTEX |
Constructor Summary | |
ClassChildren(ClassElement element)
Create class children with the default factory. |
|
ClassChildren(ElementNodeFactory factory,
ClassElement element)
Create class children. |
Method Summary | |
protected void |
addNotify()
Called when children are first asked for nodes. |
protected Node[] |
createNodes(Object key)
Create nodes for a given key. |
Object |
getFilter()
Get the current filter. |
Class |
getFilterClass()
Implementation of filter cookie |
protected Collection |
getKeysOfType(int elementType)
Filters and returns the keys of specified type. |
protected int[] |
getOrder()
Returns order form filter. |
protected void |
refreshAllKeys()
Updates all the keys (elements) according to the current filter & ordering. |
protected void |
refreshKeys(int filter)
Updates all the keys with given filter. |
protected void |
removeNotify()
Called when the list of nodes for this children object is no longer needed by the IDE. |
void |
setFilter(Object filter)
Set the current filter. |
Methods inherited from class org.openide.nodes.Children.Keys |
add, clone, destroyNodes, refreshKey, remove, setBefore, setKeys, setKeys |
Methods inherited from class org.openide.nodes.Children.Array |
initCollection, refresh |
Methods inherited from class org.openide.nodes.Children |
findChild, getNode, getNodes, getNodesCount, isInitialized, nodes |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static HashMap propToFilter
protected ClassElement element
protected ClassElementFilter filter
null
to disable.protected ElementNodeFactory factory
protected Collection[] cpl
Constructor Detail |
public ClassChildren(ClassElement element)
element
- attached class element (non-null
)public ClassChildren(ElementNodeFactory factory, ClassElement element)
factory
- the factory to use to create new childrenelement
- attached class element (non-null
)Method Detail |
public Class getFilterClass()
getFilterClass
in interface FilterCookie
org.openide.cookies.FilterCookie
null
if no filter is currently in usepublic Object getFilter()
FilterCookie
getFilter
in interface FilterCookie
org.openide.cookies.FilterCookie
null
if none is currently in usepublic void setFilter(Object filter)
FilterCookie
setFilter
in interface FilterCookie
org.openide.cookies.FilterCookie
filter
- the filter, or null
if none should be usedprotected void addNotify()
Children
Children.Keys
etc.).addNotify
in class Children
org.openide.nodes.Children
Children.isInitialized()
protected void removeNotify()
Children
Children.Keys
etc.).removeNotify
in class Children
protected Node[] createNodes(Object key)
Children.Keys
createNodes
in class Children.Keys
org.openide.nodes.Children.Keys
key
- the keyprotected void refreshAllKeys()
protected void refreshKeys(int filter)
protected Collection getKeysOfType(int elementType)
protected int[] getOrder()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |