com.alee.extended.tree.sample
Class SampleExDataProvider

java.lang.Object
  extended by com.alee.extended.tree.AbstractExTreeDataProvider<SampleNode>
      extended by com.alee.extended.tree.sample.SampleExDataProvider
All Implemented Interfaces:
ExTreeDataProvider<SampleNode>

public class SampleExDataProvider
extends AbstractExTreeDataProvider<SampleNode>

Author:
Mikle Garin

Field Summary
 
Fields inherited from class com.alee.extended.tree.AbstractExTreeDataProvider
comparator, filter
 
Constructor Summary
SampleExDataProvider()
           
 
Method Summary
 java.util.List<SampleNode> getChilds(SampleNode parent)
          Returns sample child nodes for specified asynchronous tree node.
 SampleNode getRoot()
          Returns asynchronous tree sample root node.
 boolean isLeaf(SampleNode node)
          Returns whether the specified sample node is leaf or not.
 
Methods inherited from class com.alee.extended.tree.AbstractExTreeDataProvider
getChildsComparator, getChildsFilter, setChildsComparator, setChildsFilter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SampleExDataProvider

public SampleExDataProvider()
Method Detail

getRoot

public SampleNode getRoot()
Returns asynchronous tree sample root node.

Returns:
root node

getChilds

public java.util.List<SampleNode> getChilds(SampleNode parent)
Returns sample child nodes for specified asynchronous tree node.

Parameters:
parent - childs parent node
Returns:
sample child nodes for specified asynchronous tree node

isLeaf

public boolean isLeaf(SampleNode node)
Returns whether the specified sample node is leaf or not. Simply checks the node type to determine if it is leaf or not.

Specified by:
isLeaf in interface ExTreeDataProvider<SampleNode>
Overrides:
isLeaf in class AbstractExTreeDataProvider<SampleNode>
Parameters:
node - node
Returns:
true if the specified node is leaf, false otherwise