de.jaret.util.ui.timebars.model
Interface TimeBarNode

All Superinterfaces:
TimeBarRow
All Known Subinterfaces:
IIdentifiableTimeBarNode
All Known Implementing Classes:
AbstractTimeBarNode, AddingTimeBarNode, DefaultTimeBarNode

public interface TimeBarNode
extends TimeBarRow

Interface describing a time bar row in a hierarchy of rows.

Version:
$Id: TimeBarNode.java 800 2008-12-27 22:27:33Z kliem $
Author:
Peter Kliem

Method Summary
 void addNode(TimeBarNode node)
          Add a node as a child.
 void addTimeBarNodeListener(TimeBarNodeListener tbnl)
          Add a listener to listen for node changes.
 java.util.List<TimeBarNode> getChildren()
          Retrieve all children of the node.
 int getLevel()
          Retrieve the level in the tree.
 void remNode(TimeBarNode node)
          Remove a child node.
 void removeTimeBarNodeListener(TimeBarNodeListener tbnl)
          Remove a listener registered for node changes.
 void setLevel(int level)
          Tell the node it's level.
 
Methods inherited from interface de.jaret.util.ui.timebars.model.TimeBarRow
addTimeBarRowListener, getIntervals, getIntervals, getIntervals, getMaxDate, getMinDate, getRowHeader, remTimeBarRowListener
 

Method Detail

getChildren

java.util.List<TimeBarNode> getChildren()
Retrieve all children of the node.

Returns:
chrildren of the node

getLevel

int getLevel()
Retrieve the level in the tree.

Returns:
level in the tree.

setLevel

void setLevel(int level)
Tell the node it's level. Storing the level of the node directly with the node is not an optimal solution. However it is fast and straight forward.

Parameters:
level - level of the node

addNode

void addNode(TimeBarNode node)
Add a node as a child.

Parameters:
node - child to be added.

remNode

void remNode(TimeBarNode node)
Remove a child node.

Parameters:
node - node to remove

addTimeBarNodeListener

void addTimeBarNodeListener(TimeBarNodeListener tbnl)
Add a listener to listen for node changes.

Parameters:
tbnl - listener to add

removeTimeBarNodeListener

void removeTimeBarNodeListener(TimeBarNodeListener tbnl)
Remove a listener registered for node changes.

Parameters:
tbnl - listener to remove


Copyright © 2012. All Rights Reserved.