de.jaret.util.ui.timebars.addon
Class IdentifiableIdService

java.lang.Object
  extended by de.jaret.util.ui.timebars.addon.IdentifiableIdService
All Implemented Interfaces:
IHierarchyIdService

public class IdentifiableIdService
extends java.lang.Object
implements IHierarchyIdService

Id service for use with models that contain IIdentifiableTimeBarNodes.

Version:
$Id: $
Author:
kliem

Constructor Summary
IdentifiableIdService()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdentifiableIdService

public IdentifiableIdService()
Method Detail

getId

public 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.

Specified by:
getId in interface IHierarchyIdService
Parameters:
model - hierarchical model
node - node
Returns:
id for the node

getNode

public 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.

Specified by:
getNode in interface IHierarchyIdService
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.