de.jaret.util.ui.timebars.addon
Interface IHierarchyIdService

All Known Implementing Classes:
DefaultHierarchyIdService, IdentifiableIdService

public interface IHierarchyIdService

For saving the viewstate nodes must be identified by an id and have to be found by the id. This interface describes a service to do this for hierarchical models of the timebarviewer.

Version:
$Id: IHierarchyIdService.java 340 2007-04-02 21:52:03Z olk $
Author:
kliem

Method Summary
 java.lang.String getId(de.jaret.util.ui.timebars.model.HierarchicalTimeBarModel model, de.jaret.util.ui.timebars.model.TimeBarNode node)
          Retrieve an id for a node.
 de.jaret.util.ui.timebars.model.TimeBarNode getNode(de.jaret.util.ui.timebars.model.HierarchicalTimeBarModel model, java.lang.String id)
          Get the node for a given id from the model.
 

Method Detail

getId

java.lang.String getId(de.jaret.util.ui.timebars.model.HierarchicalTimeBarModel model,
                       de.jaret.util.ui.timebars.model.TimeBarNode node)
Retrieve an id for a node.

Parameters:
model - hierarchical model
node - node
Returns:
id for the node

getNode

de.jaret.util.ui.timebars.model.TimeBarNode getNode(de.jaret.util.ui.timebars.model.HierarchicalTimeBarModel model,
                                                    java.lang.String id)
Get the node for a given id from the model.

Parameters:
model - hierarchical model
id - id
Returns:
the node for the id or null if no node could be found


Copyright © 2012. All Rights Reserved.