net.sourceforge.rssowl.controller
Class TreeNode

java.lang.Object
  extended by net.sourceforge.rssowl.controller.TreeNode

public class TreeNode
extends java.lang.Object

Helper class for Tree Traversal wrapping a TreeItem.

Version:
1.2.4
Author:
bpasero

Field Summary
private  boolean filterRead
           
private  boolean isUnread
           
private  TreeItem item
           
 
Constructor Summary
TreeNode(TreeItem item, boolean filterRead)
          Create a new TreeNode wrapping a TreeItem.
 
Method Summary
private  boolean exclude()
          Check wether this Node is to be exlucded because of applied filter rules.
 TreeNode getFirstChild()
          Get the first child of this Node or NULL if no childs at all.
 TreeItem getItem()
          Get the wrapped TreeItem.
 TreeNode getNextSibling()
          Get the next Sibling of this Node or NULL if no next Sibling at all.
 TreeNode getParent()
          Get the parent Node of this Node or NULL if no parent at all.
 boolean hasChildNodes()
          Check wether this Node contains any child Nodes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

filterRead

private boolean filterRead

isUnread

private boolean isUnread

item

private TreeItem item
Constructor Detail

TreeNode

public TreeNode(TreeItem item,
                boolean filterRead)
Create a new TreeNode wrapping a TreeItem.

Parameters:
item - The Item to wrap inside this helper.
filterRead - If TRUE, filter read Items.
Method Detail

getFirstChild

public TreeNode getFirstChild()
Get the first child of this Node or NULL if no childs at all.

Returns:
TreeNode The first child of this Node or NULL if no childs at all.

getItem

public TreeItem getItem()
Get the wrapped TreeItem.

Returns:
TreeItem The wrapped TreeItem.

getNextSibling

public TreeNode getNextSibling()
Get the next Sibling of this Node or NULL if no next Sibling at all.

Returns:
TreeNode The next Sibling of this Mode or NULL if no next Sibling at all.

getParent

public TreeNode getParent()
Get the parent Node of this Node or NULL if no parent at all.

Returns:
TreeNode The parent Node of this Node or NULL if no parent at all.

hasChildNodes

public boolean hasChildNodes()
Check wether this Node contains any child Nodes.

Returns:
boolean TRUE if this Node contains any child Nodes, FALSE otherwise.

exclude

private boolean exclude()
Check wether this Node is to be exlucded because of applied filter rules.

Returns:
boolean TRUE if this Node is to be exlucded because of applied filter rules. FALSE otherwise.


RSSOwl - RSS / RDF / Atom Newsreader

SourceForge.net Logo