de.jaret.util.ui.timebars.model
Class AbstractTimeBarNode

java.lang.Object
  extended by de.jaret.util.ui.timebars.model.AbstractTimeBarRowModel
      extended by de.jaret.util.ui.timebars.model.AbstractTimeBarNode
All Implemented Interfaces:
TimeBarNode, TimeBarRow, java.beans.PropertyChangeListener, java.util.EventListener

public abstract class AbstractTimeBarNode
extends AbstractTimeBarRowModel
implements TimeBarNode

Abstract base implementation for a timebar node.

Version:
$Id: AbstractTimeBarNode.java 802 2008-12-28 12:30:41Z kliem $
Author:
Peter Kliem

Field Summary
protected  java.util.List<TimeBarNodeListener> _nodeListeners
          list of registered listeners.
 
Fields inherited from class de.jaret.util.ui.timebars.model.AbstractTimeBarRowModel
_header, _listenerList, _maxDate, _minDate
 
Constructor Summary
AbstractTimeBarNode()
          Default constructor.
AbstractTimeBarNode(TimeBarRowHeader header)
          Constructor supplying a header.
 
Method Summary
 void addTimeBarNodeListener(TimeBarNodeListener tbnl)
          Add a listener to listen for node changes.
protected  void fireNodeAdded(TimeBarNode newNode)
          Inform listeners about a new node.
protected  void fireNodeRemoved(TimeBarNode removedNode)
          Inform listeners about a removed node.
 void removeTimeBarNodeListener(TimeBarNodeListener tbnl)
          Remove a listener registered for node changes.
 
Methods inherited from class de.jaret.util.ui.timebars.model.AbstractTimeBarRowModel
addTimeBarRowListener, fireElementAdded, fireElementChanged, fireElementRemoved, fireHeaderChanged, fireRowDataChanged, getIntervals, getIntervals, getIntervals, getMaxDate, getMinDate, getRowHeader, propertyChange, remTimeBarRowListener, setRowHeader, updateMinMax
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.jaret.util.ui.timebars.model.TimeBarNode
addNode, getChildren, getLevel, remNode, setLevel
 
Methods inherited from interface de.jaret.util.ui.timebars.model.TimeBarRow
addTimeBarRowListener, getIntervals, getIntervals, getIntervals, getMaxDate, getMinDate, getRowHeader, remTimeBarRowListener
 

Field Detail

_nodeListeners

protected java.util.List<TimeBarNodeListener> _nodeListeners
list of registered listeners.

Constructor Detail

AbstractTimeBarNode

public AbstractTimeBarNode()
Default constructor. Do not forget to set a headre when using this constructor.


AbstractTimeBarNode

public AbstractTimeBarNode(TimeBarRowHeader header)
Constructor supplying a header.

Parameters:
header - the header for teh node
Method Detail

addTimeBarNodeListener

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

Specified by:
addTimeBarNodeListener in interface TimeBarNode
Parameters:
tbnl - listener to add

removeTimeBarNodeListener

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

Specified by:
removeTimeBarNodeListener in interface TimeBarNode
Parameters:
tbnl - listener to remove

fireNodeAdded

protected void fireNodeAdded(TimeBarNode newNode)
Inform listeners about a new node.

Parameters:
newNode - the added node

fireNodeRemoved

protected void fireNodeRemoved(TimeBarNode removedNode)
Inform listeners about a removed node.

Parameters:
removedNode - the node that has been removed


Copyright © 2012. All Rights Reserved.